From: Christoph Lameter Date: Fri, 8 Feb 2008 12:18:42 +0000 (-0800) Subject: modules: include sections.h to avoid defining linker variables explicitly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d7623943c905efae327933bc5ee0b2f78e15f56;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git modules: include sections.h to avoid defining linker variables explicitly module.c should not define linker variables on its own. We have an include file for that. Signed-off-by: Christoph Lameter Cc: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/module.c b/kernel/module.c index dc04d4d88d02..676c023c831b 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -46,6 +46,7 @@ #include #include #include +#include #if 0 #define DEBUGP printk @@ -343,9 +344,6 @@ static inline unsigned int block_size(int val) return val; } -/* Created by linker magic */ -extern char __per_cpu_start[], __per_cpu_end[]; - static void *percpu_modalloc(unsigned long size, unsigned long align, const char *name) {