Skip to contentSkip to conversation

kprobes: include <asm/sections.h> instead of <asm-generic/sections.h>

PATCH Applied Christoph Hellwig 2 participants 2 messages Sep 11, 2016 – Sep 12, 2016 kprobes

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kprobes: include <asm/sections.h> instead of <asm-generic/sections.h>

asm-generic headers are generic implementations for architecture specific code and should not be included by common code. Thus use the asm/ version of sections.h to get at the linker sections.

---
 kernel/kprobes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/kprobes.c +1 -1
index d10ab6b..d630954 100644
@@ -49,7 +49,7 @@
 #include <linux/cpu.h>
 #include <linux/jump_label.h>
 
-#include <asm-generic/sections.h>
+#include <asm/sections.h>
 #include <asm/cacheflush.h>
 #include <asm/errno.h>
 #include <asm/uaccess.h>
Signature · 1 line
2.1.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Sun, 11 Sep 2016 15:58:22 +0200 Christoph Hellwig <[email protected]> wrote:

asm-generic headers are generic implementations for architecture specific code and should not be included by common code. Thus use the asm/ version of sections.h to get at the linker sections.

OK, I see.

Thanks!

Quoted 21 lines
---
 kernel/kprobes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/kprobes.c +1 -1
index d10ab6b..d630954 100644
@@ -49,7 +49,7 @@
 #include <linux/cpu.h>
 #include <linux/jump_label.h>
 
-#include <asm-generic/sections.h>
+#include <asm/sections.h>
 #include <asm/cacheflush.h>
 #include <asm/errno.h>
 #include <asm/uaccess.h>
Signature · 1 line
2.1.4
Signature · 1 line
Masami Hiramatsu <[email protected]>