Skip to contentSkip to conversation

ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL

PATCH In review Axel Lin 3 participants 5 messages Oct 7, 2011 – Oct 14, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

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.o
arch/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
index 582333c..7814949 100644
@@ -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
#1 lore raw
Quoted 36 lines · Axel Lin

Fix below build warning:
CC arch/arm/plat-samsung/s3c-dma-ops.o
arch/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- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0 -0

dma-ops.c
index 582333c..7814949 100644

arch/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.

#2 lore raw
In reply to Axel Lin
Quoted 38 lines · Kukjin Kim
Quoted 4 lines · Axel Lin

Fix below build warning:
CC arch/arm/plat-samsung/s3c-dma-ops.o
arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no type

or

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 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- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0 -0

dma-ops.c
index 582333c..7814949 100644

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>
 
Quoted 8 lines
Quoted 3 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?...

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.

author
#3 lore raw

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.o arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no type

or

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 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- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0 -0

dma-ops.c
index 582333c..7814949 100644

arch/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.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?...

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 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.

Cc Paul Gortmaker,
Maybe it is only in Paul's tree now.

Regards,
Axel

#4 lore raw
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.o arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no type

or

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 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- renamed from arch/arm/plat-samsung/s3c-dma-ops.c +0 -0

dma-ops.c
index 582333c..7814949 100644

arch/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.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?...

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 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.

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