Messages in this thread Patch in this message | | | Date | Mon, 26 Aug 2013 18:25:35 +0800 | From | Chen Gang <> | Subject | [PATCH] h8300/kernel/h8300_ksyms.c: add "asm/gpio-internal.h" to pass compiling |
| |
Need add "asm/gpio-internal.h" to pass compiling.
The related error (allmodconfig for h8300):
In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from arch/h8300/kernel/h8300_ksyms.c:1: arch/h8300/kernel/h8300_ksyms.c: At top level: arch/h8300/kernel/h8300_ksyms.c:98:15: error: 'h8300_reserved_gpio' undeclared here (not in a function) EXPORT_SYMBOL(h8300_reserved_gpio); ^ include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ arch/h8300/kernel/h8300_ksyms.c:98:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(h8300_reserved_gpio); ^ arch/h8300/kernel/h8300_ksyms.c:99:15: error: 'h8300_free_gpio' undeclared here (not in a function) EXPORT_SYMBOL(h8300_free_gpio); ^ include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ arch/h8300/kernel/h8300_ksyms.c:99:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(h8300_free_gpio); ^ arch/h8300/kernel/h8300_ksyms.c:100:15: error: 'h8300_set_gpio_dir' undeclared here (not in a function) EXPORT_SYMBOL(h8300_set_gpio_dir); ^ include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ arch/h8300/kernel/h8300_ksyms.c:100:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(h8300_set_gpio_dir); ^ cc1: some warnings being treated as errors make[1]: *** [arch/h8300/kernel/h8300_ksyms.o] Error 1 make: *** [arch/h8300/kernel] Error 2
Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/h8300/kernel/h8300_ksyms.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/h8300/kernel/h8300_ksyms.c b/arch/h8300/kernel/h8300_ksyms.c index 53d7c0e..a21900f 100644 --- a/arch/h8300/kernel/h8300_ksyms.c +++ b/arch/h8300/kernel/h8300_ksyms.c @@ -14,6 +14,7 @@ #include <asm/io.h> #include <asm/checksum.h> #include <asm/current.h> +#include <asm/gpio-internal.h> #include <asm/gpio.h> //asmlinkage long long __ashrdi3 (long long, int); -- 1.7.7.6
| |