Skip to contentSkip to conversation

linux-next: mfd tree build failure

DISCUSSION Applied Stephen Rothwell 3 participants 4 messages Jan 12, 2009 – Jan 14, 2009

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

Hi Samuel,

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "__set_irq_handler" [drivers/mfd/pcf50633-core.ko] undefined!
ERROR: "handle_level_irq" [drivers/mfd/pcf50633-core.ko] undefined!

Immediate cause is clearly commit f52046b14b1e1a8a02ae48d0c69d39c5e204644f ("mfd: PCF50633 core driver") which introduces this code. The above functions don't appear to be exported to modules.

I have dropped the mfd tree for today.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Hi Samuel,

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "__set_irq_handler" [drivers/mfd/pcf50633-core.ko] undefined!
ERROR: "handle_level_irq" [drivers/mfd/pcf50633-core.ko] undefined!

Quoted 6 lines

Immediate cause is clearly commit f52046b14b1e1a8a02ae48d0c69d39c5e204644f ("mfd: PCF50633 core driver") which introduces this code. The above functions don't appear to be exported to modules.

I have dropped the mfd tree for today.

Oh, sorry about this. I can actually do without this. Here's the patch. Sameo, can you please apply it ?

pcf50633: Remove references to non-exported functions

Remove references to set_irq_type and handle_level_irq which are not exported to modules.

drivers/mfd/pcf50633-core.c +0 -1
index 24508e2..ea9488e 100644
@@ -626,7 +626,6 @@ static int __devinit pcf50633_probe(struct i2c_client *client,
 	}
 
 	if (client->irq) {
-		set_irq_handler(client->irq, handle_level_irq);
 		ret = request_irq(client->irq, pcf50633_irq,
 				IRQF_TRIGGER_LOW, "pcf50633", pcf);
 
#2 lore raw

Hi Linus,

Quoted 13 lines · On Mon, 12 Jan 2009 15:37:55 +0530 Balaji Rao <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "__set_irq_handler" [drivers/mfd/pcf50633-core.ko] undefined!
ERROR: "handle_level_irq" [drivers/mfd/pcf50633-core.ko] undefined!

Immediate cause is clearly commit f52046b14b1e1a8a02ae48d0c69d39c5e204644f ("mfd: PCF50633 core driver") which introduces this code. The above functions don't appear to be exported to modules.

Quoted 4 lines
Quoted 1 line

I have dropped the mfd tree for today.

Oh, sorry about this. I can actually do without this. Here's the patch. Sameo, can you please apply it ?

This is now in the upstream kernel tree ...

---------------------------------------------------------------------------
From: Balaji Rao <[email protected]>

pcf50633: Remove references to non-exported functions

Remove references to set_irq_type and handle_level_irq which are not exported to modules.

drivers/mfd/pcf50633-core.c +0 -1
index 24508e2..ea9488e 100644
@@ -626,7 +626,6 @@ static int __devinit pcf50633_probe(struct i2c_client *client,
 	}
 
 	if (client->irq) {
-		set_irq_handler(client->irq, handle_level_irq);
 		ret = request_irq(client->irq, pcf50633_irq,
 				IRQF_TRIGGER_LOW, "pcf50633", pcf);
 
Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
Applied
#3 lore raw
In reply to Balaji Rao
Quoted 13 lines · Balaji Rao
Quoted 12 lines · Stephen Rothwell

Hi Samuel,

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "__set_irq_handler" [drivers/mfd/pcf50633-core.ko] undefined!
ERROR: "handle_level_irq" [drivers/mfd/pcf50633-core.ko] undefined!

Immediate cause is clearly commit f52046b14b1e1a8a02ae48d0c69d39c5e204644f ("mfd: PCF50633 core driver") which introduces this code. The above functions don't appear to be exported to modules.

Quoted 4 lines
Quoted 1 line

I have dropped the mfd tree for today.

Oh, sorry about this. I can actually do without this. Here's the patch. Sameo, can you please apply it ?

Applied to both my for-next and for-linus branches.
If Linus doesnt apply the patch, I'll resend a pull request tomorrow.

Cheers,
Samuel.

Quoted 19 lines

pcf50633: Remove references to non-exported functions

Remove references to set_irq_type and handle_level_irq which are not exported to modules.

drivers/mfd/pcf50633-core.c +0 -1
index 24508e2..ea9488e 100644
@@ -626,7 +626,6 @@ static int __devinit pcf50633_probe(struct i2c_client *client,
 	}
 
 	if (client->irq) {
-		set_irq_handler(client->irq, handle_level_irq);
 		ret = request_irq(client->irq, pcf50633_irq,
 				IRQF_TRIGGER_LOW, "pcf50633", pcf);
 
Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/