unicore32: EXPORT_SYMBOL needs export.h
PATCH 1/1 unicore32: EXPORT_SYMBOL needs export.h
Include export.h to fix below warning:
CC arch/unicore32/mm/init.oarch/unicore32/mm/init.c:227: warning: data definition has no type or storage class arch/unicore32/mm/init.c:227: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' arch/unicore32/mm/init.c:227: warning: parameter names (without types) in function declaration
---
This patch is against linux-next 20111014.export.h only exist in Paul's tree now.
I think this patch should route via Paul's module.h splitup tree.
Axel
arch/unicore32/mm/init.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/unicore32/mm/init.c +1 -0
@@ -20,6 +20,7 @@#include <linux/memblock.h> #include <linux/sort.h> #include <linux/dma-mapping.h> +#include <linux/export.h> #include <asm/sections.h> #include <asm/setup.h>
Signature · 1 line
1.7.5.4
It seems the same problem with cross-compiler.
And I can't produce the same warnings.
Thanks Axel.
Guan Xuetao
Quoted 29 lines · Axel Lin
Include
export.hto fix below warning:CC
arch/unicore32/mm/init.oarch/unicore32/mm/init.c:227: warning: data definition has no type or storage classarch/unicore32/mm/init.c:227: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'arch/unicore32/mm/init.c:227: warning: parameter names (without types) in function declarationSigned-off-by Axel Lin <[email protected]>---
This patch is against linux-next 20111014.export.honly exist in Paul's tree now.
I think this patch should route via Paul'smodule.hsplitup tree.Axel
arch/unicore32/mm/init.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/unicore32/mm/init.c +1
-0@@ -20,6 +20,7 @@#include <linux/memblock.h> #include <linux/sort.h> #include <linux/dma-mapping.h> +#include <linux/export.h> #include <asm/sections.h> #include <asm/setup.h>
Quoted 7 lines · Axel Lin
Include
export.hto fix below warning:CC
arch/unicore32/mm/init.oarch/unicore32/mm/init.c:227: warning: data definition has no type or storage classarch/unicore32/mm/init.c:227: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'arch/unicore32/mm/init.c:227: warning: parameter names (without types) in function declaration
Quoted 5 lines
Signed-off-by Axel Lin <[email protected]>---
This patch is against linux-next 20111014.export.honly exist in Paul's tree now.
I think this patch should route via Paul'smodule.hsplitup tree.
Correct. I will add it.
Thanks.
Paul.
Quoted 17 lines
Axel
arch/unicore32/mm/init.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/unicore32/mm/init.c +1
-0@@ -20,6 +20,7 @@#include <linux/memblock.h> #include <linux/sort.h> #include <linux/dma-mapping.h> +#include <linux/export.h> #include <asm/sections.h> #include <asm/setup.h>