Skip to contentSkip to conversation

ARM: mxs: Export missing symbols from mxs-dma.c

PATCH New Attila Kinali 4 participants 12 messages Jul 6, 2012 – Jul 16, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mxs: Export missing symbols from mxs-dma.c

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/dma/mxs-dma.c +3 -0
index c96ab15..4ea1909 100644
@@ -779,3 +779,6 @@ static int __init mxs_dma_module_init(void)
 	return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe);
 }
 subsys_initcall(mxs_dma_module_init);
+
+EXPORT_SYMBOL(mxs_dma_is_apbh);
+EXPORT_SYMBOL(mxs_dma_is_apbx);
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/1 ARM: mxs: Export missing symbols from mxs-dma.c

Quoted 14 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/dma/mxs-dma.c +0 -0
index c96ab15..4ea1909 100644

drivers/dma/mxs-dma.c static int __init mxs_dma_module_init(void) · line 784

Quoted 6 lines
drivers/dma/mxs-dma.c +3 -0
@@ -779,3 +779,6 @@ static int __init mxs_dma_module_init(void)
 	return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe);
 }
 subsys_initcall(mxs_dma_module_init);
+
+EXPORT_SYMBOL(mxs_dma_is_apbh);
+EXPORT_SYMBOL(mxs_dma_is_apbx);

If i understand correctly, usually we add EXPORT_SYMBOL right below the function exported.
And can we use EXPORT_SYMBOL_GPL?
It seems both driver using this are gpl licensed.

BTW, maybe you also need change the patch title format a bit:
dma: mxs-dma: ...

Regards
Dong Aisheng

#2 lore raw

PATCH 1/1 ARM: dma: mxs-dma: Export missing symbols from mxs-dma.c

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/dma/mxs-dma.c +3 -0
index c96ab15..0437f49 100644
@@ -201,6 +201,7 @@ int mxs_dma_is_apbh(struct dma_chan *chan)
 
 	return dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL(mxs_dma_is_apbh);
 
 int mxs_dma_is_apbx(struct dma_chan *chan)
 {
@@ -209,6 +210,7 @@ int mxs_dma_is_apbx(struct dma_chan *chan)
 
 	return !dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL(mxs_dma_is_apbx);
 
 static void mxs_dma_reset_chan(struct mxs_dma_chan *mxs_chan)
 {
@@ -779,3 +781,4 @@ static int __init mxs_dma_module_init(void)
 	return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe);
 }
 subsys_initcall(mxs_dma_module_init);
+
Signature · 1 line
1.7.10
#3 lore raw

PATCH 1/1 ARM: dma: mxs-dma: Export missing symbols from mxs-dma.c

Quoted 23 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/dma/mxs-dma.c +1 -0
index c96ab15..0437f49 100644
@@ -201,6 +201,7 @@ int mxs_dma_is_apbh(struct dma_chan *chan)
 
 	return dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL(mxs_dma_is_apbh);
 
 
 int mxs_dma_is_apbx(struct dma_chan *chan)

{

drivers/dma/mxs-dma.c int mxs_dma_is_apbx(struct dma_chan *chan) · line 214

Quoted 5 lines
drivers/dma/mxs-dma.c +1 -0
@@ -209,6 +210,7 @@ int mxs_dma_is_apbx(struct dma_chan *chan)
 
 	return !dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL(mxs_dma_is_apbx);
 

Shawn,

Do we need this be EXPORT_SYMBOL_GPL?

drivers/dma/mxs-dma.c static int __init mxs_dma_module_init(void) · line 784

Quoted 7 lines
drivers/dma/mxs-dma.c +1 -0
 static void mxs_dma_reset_chan(struct mxs_dma_chan *mxs_chan)
 {
@@ -779,3 +781,4 @@ static int __init mxs_dma_module_init(void)
 	return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe);
 }
 subsys_initcall(mxs_dma_module_init);
+

This line change is unneeded.

else i'm ok with the patch:

Regards
Dong Aisheng

#4 lore raw

PATCH 1/1 ARM: dma: mxs-dma: Export missing symbols from mxs-dma.c

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/dma/mxs-dma.c +2 -0
index c96ab15..96d8b80 100644
@@ -201,6 +201,7 @@ int mxs_dma_is_apbh(struct dma_chan *chan)
 
 	return dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL_GPL(mxs_dma_is_apbh);
 
 int mxs_dma_is_apbx(struct dma_chan *chan)
 {
@@ -209,6 +210,7 @@ int mxs_dma_is_apbx(struct dma_chan *chan)
 
 	return !dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL_GPL(mxs_dma_is_apbx);
 
 static void mxs_dma_reset_chan(struct mxs_dma_chan *mxs_chan)
 {
Signature · 1 line
1.7.10
#5 lore raw

PATCH 1/1 ARM: dma: mxs-dma: Export missing symbols from mxs-dma.c

Quoted 9 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    2 ++
 1 file changed, 2 insertions(+)

Regards
Dong Aisheng

#6 lore raw

PATCH 1/1 ARM: dma: mxs-dma: Export missing symbols from mxs-dma.c

In reply to Attila Kinali

Only the patch touching files under arch/arm/ should have "ARM:" in the patch subject. So you need to drop it from there.

Signature · 2 lines
Regards,
Shawn
Quoted 37 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/dma/mxs-dma.c +2 -0
index c96ab15..96d8b80 100644
@@ -201,6 +201,7 @@ int mxs_dma_is_apbh(struct dma_chan *chan)
 
 	return dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL_GPL(mxs_dma_is_apbh);
 
 int mxs_dma_is_apbx(struct dma_chan *chan)
 {
@@ -209,6 +210,7 @@ int mxs_dma_is_apbx(struct dma_chan *chan)
 
 	return !dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL_GPL(mxs_dma_is_apbx);
 
 static void mxs_dma_reset_chan(struct mxs_dma_chan *mxs_chan)
 {
Signature · 7 lines
1.7.10


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw

PATCH 1/1 dma: mxs-dma: Export missing symbols from mxs-dma.c

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

---
 drivers/dma/mxs-dma.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/dma/mxs-dma.c +2 -0
index c96ab15..96d8b80 100644
@@ -201,6 +201,7 @@ int mxs_dma_is_apbh(struct dma_chan *chan)
 
 	return dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL_GPL(mxs_dma_is_apbh);
 
 int mxs_dma_is_apbx(struct dma_chan *chan)
 {
@@ -209,6 +210,7 @@ int mxs_dma_is_apbx(struct dma_chan *chan)
 
 	return !dma_is_apbh(mxs_dma);
 }
+EXPORT_SYMBOL_GPL(mxs_dma_is_apbx);
 
 static void mxs_dma_reset_chan(struct mxs_dma_chan *mxs_chan)
 {
Signature · 1 line
1.7.10
#8 lore raw

PATCH 1/1 dma: mxs-dma: Export missing symbols from mxs-dma.c

Quoted 5 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

#9 lore raw

PATCH 1/1 dma: mxs-dma: Export missing symbols from mxs-dma.c

In reply to Attila Kinali
Quoted 3 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

Applied thanks.

Please DO NOT forget to CC maintainers, the patch can get lost otherwise. get_maintainer.pl is your friend, use it!

Signature · 1 line
~Vinod
#10 lore raw

PATCH 1/1 dma: mxs-dma: Export missing symbols from mxs-dma.c

Quoted 5 lines · On Mon, 16 Jul 2012 12:00:46 +0530 Vinod Koul <[email protected]>…
Quoted 3 lines · Attila Kinali

mxs-dma.c provides two functions mxs_dma_is_apbh and mxs_dma_is_apbx which are used at least in mxs-mmc.c. Building mxs-mmc as module fails due to those two symbols not being exported.

Applied thanks.

Thanks a lot!

Quoted 2 lines

Please DO NOT forget to CC maintainers, the patch can get lost otherwise. get_maintainer.pl is your friend, use it!

Oki, i'll keep that in mind.

Attila Kinali

Signature · 4 lines
The trouble with you, Shev, is you don't say anything until you've saved
up a whole truckload of damned heavy brick arguments and then you dump
them all out and never look at the bleeding body mangled beneath the heap
		-- Tirin, The Dispossessed, U. Le Guin
#11 lore raw

PATCH 1/1 ARM: dma: mxs-dma: Export missing symbols from mxs-dma.c

In reply to Dong Aisheng
Quoted 1 line · On Fri, 6 Jul 2012 19:10:21 +0800 Dong Aisheng <[email protected]> wrote:

Do we need this be EXPORT_SYMBOL_GPL?

Blub.. sorry.. forgot to change them to GPL... gimme a second.

Attila Kinali

Signature · 4 lines
The trouble with you, Shev, is you don't say anything until you've saved
up a whole truckload of damned heavy brick arguments and then you dump
them all out and never look at the bleeding body mangled beneath the heap
		-- Tirin, The Dispossessed, U. Le Guin