aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@kernel.org>2015-10-27 00:27:20 -0700
committerLuis R. Rodriguez <mcgrof@kernel.org>2016-02-11 08:42:16 -0800
commitaec8258fe48938840accf276e315e542f881ade7 (patch)
tree9478ab4441eb4116eb11c42787f00f46960b4853
parentf12fd4640d7fe0d1de9ab5d7e1969b67f10be11b (diff)
downloadlinker-tables-aec8258fe48938840accf276e315e542f881ade7.tar.gz
rename foo.c to kasan.c
pretend this is kasan stuff. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
-rw-r--r--Makefile2
-rw-r--r--foo.c19
-rw-r--r--kasan.c19
3 files changed, 20 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index a44baa6..d8b0e5e 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ all: main
main: \
sort-init.o \
memory.o \
- foo.o\
+ kasan.o\
init.o \
pci.o \
driver.o \
diff --git a/foo.c b/foo.c
deleted file mode 100644
index adfb015..0000000
--- a/foo.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <stdio.h>
-#include <unistd.h>
-#include "init.h"
-
-static int init_foo(void) {
- sleep(1);
-
- return 0;
-}
-
-static int detect_foo(void) {
- return 1;
-}
-
-struct init_fn foo_init_fn __init_fn(INIT_EARLY) = {
- .detect = detect_foo,
- .early_init = init_foo,
- .name = "Foo thing",
-};
diff --git a/kasan.c b/kasan.c
new file mode 100644
index 0000000..bd5765b
--- /dev/null
+++ b/kasan.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <unistd.h>
+#include "init.h"
+
+static int init_kasan(void) {
+ sleep(1);
+
+ return 0;
+}
+
+static int detect_kasan(void) {
+ return 1;
+}
+
+struct init_fn kasan_init_fn __init_fn(INIT_EARLY) = {
+ .detect = detect_kasan,
+ .early_init = init_kasan,
+ .name = "Kasan",
+};