Skip to contentSkip to conversation

sungem: fix compile failure caused by trivial #include consolidation

PATCH James Bottomley 3 participants 5 messages Jul 29, 2011 Network drivers

lore
Share & tools
lore
#0 lore raw

This patch:

commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f

Author: Vitaliy Ivanov <[email protected]>
Date:   Mon Jun 20 16:08:07 2011 +0200

treewide: remove duplicate includes

Causes this compile failure on parisc:

CC [M] drivers/net/sungem.o
drivers/net/sungem.c:49:22: error: asm/prom.h: No such file or directory make[2]: *** [drivers/net/sungem.o] Error 1

Only Sparc and PPC actually have the asm/prom.h include, so you can't consolidate it outside of the ifdefs.

---

This really shouldn't be happening with a trivial patch, since it's an obviously non-trivial transformation ... I assume the duplicate include checker isn't taking #ifdefs into account?

James

commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f

Author: Vitaliy Ivanov <[email protected]>
Date:   Mon Jun 20 16:08:07 2011 +0200

treewide: remove duplicate includes

Many stupid corrections of duplicated includes based on the output of scripts/checkincludes.pl.

drivers/net/sungem.c +1 -2
index ab59300..70f018d 100644
@@ -66,15 +66,14 @@
 #include <asm/byteorder.h>
 #include <asm/uaccess.h>
 #include <asm/irq.h>
+#include <asm/prom.h>
 
 #ifdef CONFIG_SPARC
 #include <asm/idprom.h>
-#include <asm/prom.h>
 #endif
 
 #ifdef CONFIG_PPC_PMAC
 #include <asm/pci-bridge.h>
-#include <asm/prom.h>
 #include <asm/machdep.h>
 #include <asm/pmac_feature.h>
 #endif
#1 lore raw
Quoted 17 lines · James Bottomley

This patch:

commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f

Author: Vitaliy Ivanov <[email protected]>
Date:   Mon Jun 20 16:08:07 2011 +0200

treewide: remove duplicate includes

Causes this compile failure on parisc:

CC [M] drivers/net/sungem.o
drivers/net/sungem.c:49:22: error: asm/prom.h: No such file or directory make[2]: *** [drivers/net/sungem.o] Error 1

Only Sparc and PPC actually have the asm/prom.h include, so you can't consolidate it outside of the ifdefs.

Quoted 7 lines

---

This really shouldn't be happening with a trivial patch, since it's an obviously non-trivial transformation ... I assume the duplicate include checker isn't taking #ifdefs into account?

Ah, right. I am afraid this was simply overlooked. David, do you want me to take this, or will you fix that up in your tree? (I am fine either way).

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
maintainer
#2 lore raw

From: Jiri Kosina <[email protected]>
Date: Fri, 29 Jul 2011 16:11:54 +0200 (CEST)

Quoted 23 lines · James Bottomley
Quoted 22 lines

This patch:

commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f

Author: Vitaliy Ivanov <[email protected]>
Date:   Mon Jun 20 16:08:07 2011 +0200

treewide: remove duplicate includes

Causes this compile failure on parisc:

CC [M] drivers/net/sungem.o
drivers/net/sungem.c:49:22: error: asm/prom.h: No such file or directory make[2]: *** [drivers/net/sungem.o] Error 1

Only Sparc and PPC actually have the asm/prom.h include, so you can't consolidate it outside of the ifdefs.

---

Quoted 7 lines
Quoted 3 lines

This really shouldn't be happening with a trivial patch, since it's an obviously non-trivial transformation ... I assume the duplicate include checker isn't taking #ifdefs into account?

Ah, right. I am afraid this was simply overlooked. David, do you want me to take this, or will you fix that up in your tree? (I am fine either way).

Take what, although James signed off he seemd to simply repost your patch again rather than a fix, unless I'm reading it wrong :-)

But yeah once there is a fix please push it.

#3 lore raw
Quoted 25 lines · David Miller
Quoted 25 lines
Quoted 24 lines

This patch:

commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f

Author: Vitaliy Ivanov <[email protected]>
Date:   Mon Jun 20 16:08:07 2011 +0200

treewide: remove duplicate includes

Causes this compile failure on parisc:

CC [M] drivers/net/sungem.o
drivers/net/sungem.c:49:22: error: asm/prom.h: No such file or directory make[2]: *** [drivers/net/sungem.o] Error 1

Only Sparc and PPC actually have the asm/prom.h include, so you can't consolidate it outside of the ifdefs.

---

This really shouldn't be happening with a trivial patch, since it's an obviously non-trivial transformation ... I assume the duplicate include checker isn't taking #ifdefs into account?

Quoted 6 lines
Quoted 3 lines

Ah, right. I am afraid this was simply overlooked. David, do you want me to take this, or will you fix that up in your tree? (I am fine either way).

Take what, although James signed off he seemd to simply repost your patch again rather than a fix, unless I'm reading it wrong :-)

Well yes, I think that James wanted to actually send a revert of that patch (as otherwise he wouldn't Sign-off on it) instead, right James? :)

Quoted 1 line

But yeah once there is a fix please push it.

So I'll revert that hunk with James' Reported-by, if there are no objections.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#4 lore raw
In reply to David Miller
Quoted 30 lines · David Miller

From: Jiri Kosina <[email protected]>
Date: Fri, 29 Jul 2011 16:11:54 +0200 (CEST)

Quoted 27 lines · James Bottomley
Quoted 25 lines

This patch:

commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f

Author: Vitaliy Ivanov <[email protected]>
Date:   Mon Jun 20 16:08:07 2011 +0200

treewide: remove duplicate includes

Causes this compile failure on parisc:

CC [M] drivers/net/sungem.o
drivers/net/sungem.c:49:22: error: asm/prom.h: No such file or directory make[2]: *** [drivers/net/sungem.o] Error 1

Only Sparc and PPC actually have the asm/prom.h include, so you can't consolidate it outside of the ifdefs.

---

This really shouldn't be happening with a trivial patch, since it's an obviously non-trivial transformation ... I assume the duplicate include checker isn't taking #ifdefs into account?

Quoted 6 lines
Quoted 3 lines

Ah, right. I am afraid this was simply overlooked. David, do you want me to take this, or will you fix that up in your tree? (I am fine either way).

Take what, although James signed off he seemd to simply repost your patch again rather than a fix, unless I'm reading it wrong :-)

Oh, yes ... I applied it with patch -R, since I was finding the bit to revert. Sorry,

James

Quoted 5 lines

But yeah once there is a fix please push it.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html