From: Paul Gortmaker Date: Sun, 31 Jul 2011 05:50:31 +0000 (-0400) Subject: sparc: Add module.h to files previously implicitly using it. X-Git-Tag: next-20110826~3^2~142 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=978438830793fa41ede72f5ffac041ba81217df3;p=karo-tx-linux.git sparc: Add module.h to files previously implicitly using it. The file mm/extable.c needs module.h for within_module_init(), and also for search_exception_tables [which arguably could be living somewhere more appropriate than module.h] - eventually causing this: arch/sparc/mm/extable.c: In function 'trim_init_extable': arch/sparc/mm/extable.c:74: error: dereferencing pointer to incomplete type arch/sparc/mm/extable.c:75: error: dereferencing pointer to incomplete type arch/sparc/mm/extable.c:77: error: implicit declaration of function 'within_module_init' arch/sparc/mm/extable.c:77: error: dereferencing pointer to incomplete type arch/sparc/mm/extable.c:78: error: dereferencing pointer to incomplete type arch/sparc/mm/extable.c:80: error: dereferencing pointer to incomplete type arch/sparc/mm/extable.c: In function 'search_extables_range': arch/sparc/mm/extable.c:93: error: implicit declaration of function 'search_exception_tables' The file kernel/pmc.c is using MODULE_DEVICE_TABLE. Signed-off-by: Paul Gortmaker sparc: another implicit module user Signed-off-by: Paul Gortmaker --- diff --git a/arch/sparc/kernel/pmc.c b/arch/sparc/kernel/pmc.c index 6a585d393580..0e3202239ff5 100644 --- a/arch/sparc/kernel/pmc.c +++ b/arch/sparc/kernel/pmc.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include diff --git a/arch/sparc/mm/extable.c b/arch/sparc/mm/extable.c index 7131eacc120f..a61c349448e1 100644 --- a/arch/sparc/mm/extable.c +++ b/arch/sparc/mm/extable.c @@ -2,6 +2,7 @@ * linux/arch/sparc/mm/extable.c */ +#include #include void sort_extable(struct exception_table_entry *start,