ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL
Subsystems (2)
PATCH 1/1 ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL
Fix below build warning:
CC arch/arm/plat-samsung/s3c-dma-ops.oarch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no type or storage class arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: parameter names (without types) in function declaration
And fix the build error:
ERROR: "s3c_dma_get_ops" [drivers/spi/spi-s3c64xx.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
---
This can be reproduced by "make s3c6400_defconfig;make" on linux-next 20111006.
arch/arm/plat-samsung/s3c-dma-ops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/plat-samsung/s3c-dma-ops.c +1 -0
@@ -14,6 +14,7 @@#include <linux/errno.h> #include <linux/slab.h> #include <linux/types.h> +#include <linux/export.h> #include <mach/dma.h>
Signature · 1 line
1.7.4.1
Quoted 36 lines · Axel Lin
Fix below build warning:
CCarch/arm/plat-samsung/s3c-dma-ops.oarch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no type or storage classarch/arm/plat-samsung/s3c-dma-ops.c:130: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: parameter names (without types) in function declarationAnd fix the build error:
ERROR: "s3c_dma_get_ops" [drivers/spi/spi-s3c64xx.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Signed-off-by Axel Lin <[email protected]>---
This can be reproduced by "make s3c6400_defconfig;make" on linux-next 20111006.arch/arm/plat-samsung/s3c-dma-ops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/arm/plat-samsung/s3c- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0
-0
dma-ops.c
index 582333c..7814949 100644arch/arm/plat-samsung/s3c-dma-ops.c +1
-1@@ -14,6 +14,7 @@#include <linux/errno.h> #include <linux/slab.h> #include <linux/types.h> +#include <linux/export.h> #include <mach/dma.h> --
Quoted 2 lines
1.7.4.1
OK, will apply.
BTW, I don't know why the build error/warning was not happened in my tree with s3c6400_defconfig. Probably other file having it?...
Anyway, thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 38 lines · Kukjin Kim
Quoted 4 lines · Axel Lin
Fix below build warning:
CCarch/arm/plat-samsung/s3c-dma-ops.oarch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no typeor
Quoted 31 lines
storage class
arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: parameter names (without types) in function declarationAnd fix the build error:
ERROR: "s3c_dma_get_ops" [drivers/spi/spi-s3c64xx.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Signed-off-by Axel Lin <[email protected]>---
This can be reproduced by "make s3c6400_defconfig;make" on linux-next 20111006.arch/arm/plat-samsung/s3c-dma-ops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/arm/plat-samsung/s3c- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0
-0
dma-ops.c
index 582333c..7814949 100644arch/arm/plat-samsung/s3c-dma-ops.c +1
-0@@ -14,6 +14,7 @@#include <linux/errno.h> #include <linux/slab.h> #include <linux/types.h> +#include <linux/export.h> #include <mach/dma.h>
Quoted 8 lines
Quoted 3 lines
--
1.7.4.1OK, will apply.
BTW, I don't know why the build error/warning was not happened in my tree with
s3c6400_defconfig. Probably other file having it?...
Hi Axel,
When I applied this in my tree, happened following error with s3c6400_defconfig.
arch/arm/plat-samsung/s3c-dma-ops.c:17: fatal error: linux/export.h: No such file or directory
Probably the <linux/export.h> file has been added from other tree. So if required, will fix with this during upcoming merge window maybe at end of.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
2011/10/12 Kukjin Kim <[email protected]>:
Quoted 47 lines
Quoted 38 lines · Kukjin Kim
Quoted 4 lines · Axel Lin
Fix below build warning:
? CC ? ? ?arch/arm/plat-samsung/s3c-dma-ops.oarch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no typeor
Quoted 31 lines
storage class
arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: parameter names (without types) in function declarationAnd fix the build error:
ERROR: "s3c_dma_get_ops" [drivers/spi/spi-s3c64xx.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Signed-off-by Axel Lin <[email protected]>---
This can be reproduced by "make s3c6400_defconfig;make" on linux-next 20111006.
?arch/arm/plat-samsung/s3c-dma-ops.c | ? ?1 +
?1 files changed, 1 insertions(+), 0 deletions(-)arch/arm/plat-samsung/s3c- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0
-0
dma-ops.c
index 582333c..7814949 100644arch/arm/plat-samsung/s3c-dma-ops.c +0
-0@@ -14,6 +14,7 @@?#include <
linux/errno.h>
?#include <linux/slab.h>
?#include <linux/types.h>
+#include <linux/export.h>?#include <
mach/dma.h>Quoted 8 lines
Quoted 3 lines
--
1.7.4.1OK, will apply.
BTW, I don't know why the build error/warning was not happened in my tree with
s3c6400_defconfig. Probably other file having it?...
Quoted 9 lines
Hi Axel,
When I applied this in my tree, happened following error with
s3c6400_defconfig.
arch/arm/plat-samsung/s3c-dma-ops.c:17: fatal error:linux/export.h: No such file or directoryProbably the <
linux/export.h> file has been added from other tree. So if required, will fix with this during upcoming merge window maybe at end of.
Cc Paul Gortmaker,
Maybe it is only in Paul's tree now.
Regards,
Axel
Quoted 52 lines · [Re: [PATCH] ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL] On…
2011/10/12 Kukjin Kim <[email protected]>:
Quoted 51 lines
Quoted 38 lines · Kukjin Kim
Quoted 4 lines · Axel Lin
Fix below build warning:
? CC ? ? ?arch/arm/plat-samsung/s3c-dma-ops.oarch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no typeor
Quoted 31 lines
storage class
arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: parameter names (without types) in function declarationAnd fix the build error:
ERROR: "s3c_dma_get_ops" [drivers/spi/spi-s3c64xx.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2Signed-off-by Axel Lin <[email protected]>---
This can be reproduced by "make s3c6400_defconfig;make" on linux-next 20111006.
?arch/arm/plat-samsung/s3c-dma-ops.c | ? ?1 +
?1 files changed, 1 insertions(+), 0 deletions(-)arch/arm/plat-samsung/s3c- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0
-0
dma-ops.c
index 582333c..7814949 100644arch/arm/plat-samsung/s3c-dma-ops.c +0
-0@@ -14,6 +14,7 @@?#include <
linux/errno.h>
?#include <linux/slab.h>
?#include <linux/types.h>
+#include <linux/export.h>?#include <
mach/dma.h>Quoted 8 lines
Quoted 3 lines
--
1.7.4.1OK, will apply.
BTW, I don't know why the build error/warning was not happened in my tree with
s3c6400_defconfig. Probably other file having it?...Hi Axel,
When I applied this in my tree, happened following error with
s3c6400_defconfig.
Quoted 7 lines
Quoted 5 lines
arch/arm/plat-samsung/s3c-dma-ops.c:17: fatal error:linux/export.h: No such file or directoryProbably the <
linux/export.h> file has been added from other tree. So if required, will fix with this during upcoming merge window maybe at end of.Cc Paul Gortmaker,
Maybe it is only in Paul's tree now.
Correct. The export.h is only in linux-next, which it gets from the module.h splitup tree. I am currently tracking post-merge export.h additions to both s3c-dma-ops and also plat-samsung/dma-ops.c files.
THanks,
Paul.
Quoted 3 lines
Regards,
Axel