Skip to contentSkip to conversation

Don't build arch/powerpc/sysdev/dcr.c for ARCH=ppc kernels

PATCH In review Grant Likely 4 participants 6 messages Oct 4, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't build arch/powerpc/sysdev/dcr.c for ARCH=ppc kernels

From: Grant Likely <[email protected]>

dcr.c is an arch/powerpc only thing.

---

Ben/Paulus,

As far as I can tell this is correct. Having sysdev/dcr.c in the arch/ppc build spits out warnings. Grep doesn't show anything in arch/ppc that is using it.

Cheers,
g.

 arch/powerpc/sysdev/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/sysdev/Makefile +1 -1
index 592c17e..7f88d4e 100644
@@ -6,7 +6,6 @@ mpic-msi-obj-$(CONFIG_PCI_MSI)	+= mpic_msi.o mpic_u3msi.o
 obj-$(CONFIG_MPIC)		+= mpic.o $(mpic-msi-obj-y)
 
 obj-$(CONFIG_PPC_MPC106)	+= grackle.o
-obj-$(CONFIG_PPC_DCR)		+= dcr.o
 obj-$(CONFIG_PPC_DCR_NATIVE)	+= dcr-low.o
 obj-$(CONFIG_PPC_PMI)		+= pmi.o
 obj-$(CONFIG_U3_DART)		+= dart_iommu.o
@@ -31,6 +30,7 @@ endif
 
 # Temporary hack until we have migrated to asm-powerpc
 ifeq ($(ARCH),powerpc)
+obj-$(CONFIG_PPC_DCR)		+= dcr.o
 obj-$(CONFIG_CPM2)		+= cpm2_common.o cpm2_pic.o
 obj-$(CONFIG_8xx)		+= mpc8xx_pic.o commproc.o
 obj-$(CONFIG_UCODE_PATCH)	+= micropatch.o
#1 lore raw
Quoted 4 lines · Grant Likely

From: Grant Likely <[email protected]>

dcr.c is an arch/powerpc only thing.

Quoted 8 lines

---

Ben/Paulus,

As far as I can tell this is correct. Having sysdev/dcr.c in the arch/ppc build spits out warnings. Grep doesn't show anything in arch/ppc that is using it.

Sorry, no. The ibm_emac driver uses it, which is arch/ppc. (Yes, the old one.)

If there are warnings, let's fix those up. Perhaps Michael's recent patches in that area introduced something.

josh

#2 lore raw
Quoted 14 lines · Josh Boyer
Quoted 4 lines · Grant Likely

From: Grant Likely <[email protected]>

dcr.c is an arch/powerpc only thing.

Quoted 8 lines

---

Ben/Paulus,

As far as I can tell this is correct. Having sysdev/dcr.c in the arch/ppc build spits out warnings. Grep doesn't show anything in arch/ppc that is using it.

Quoted 5 lines

Sorry, no. The ibm_emac driver uses it, which is arch/ppc. (Yes, the old one.)

If there are warnings, let's fix those up. Perhaps Michael's recent patches in that area introduced something.

What does it use of dcr.c ? Initially, the 4xx bits where totally inline, but maybe Michael's patches is changing that ?

Ben.

#3 lore raw
Quoted 16 lines · On Thu, 04 Oct 2007 21:08:04 +1000 Benjamin Herrenschmidt…
Quoted 14 lines · Josh Boyer
Quoted 12 lines · Grant Likely

From: Grant Likely <[email protected]>

dcr.c is an arch/powerpc only thing.

---

Ben/Paulus,

As far as I can tell this is correct. Having sysdev/dcr.c in the arch/ppc build spits out warnings. Grep doesn't show anything in arch/ppc that is using it.

Quoted 8 lines
Quoted 5 lines

Sorry, no. The ibm_emac driver uses it, which is arch/ppc. (Yes, the old one.)

If there are warnings, let's fix those up. Perhaps Michael's recent patches in that area introduced something.

What does it use of dcr.c ? Initially, the 4xx bits where totally inline, but maybe Michael's patches is changing that ?

Gah. Sorry, I was thinking of dcr-low.S, not dcr.c. And poor Michael has nothing to do with it.

Drink coffee. Then think.

josh

#4 lore raw
In reply to Josh Boyer
Quoted 14 lines · Josh Boyer
Quoted 4 lines · Grant Likely

From: Grant Likely <[email protected]>

dcr.c is an arch/powerpc only thing.

Quoted 8 lines

---

Ben/Paulus,

As far as I can tell this is correct. Having sysdev/dcr.c in the arch/ppc build spits out warnings. Grep doesn't show anything in arch/ppc that is using it.

Quoted 5 lines

Sorry, no. The ibm_emac driver uses it, which is arch/ppc. (Yes, the old one.)

If there are warnings, let's fix those up. Perhaps Michael's recent patches in that area introduced something.

Hmm, I picked a good time to be away :)

I think it's OK. ibm_emac uses dcr_write() but it should always be using the native one from dcr-native.h. So I think this patch is good.

Just another reason to get rid of arch/ppc :D

cheers

Signature · 8 lines
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
#5 lore raw
Quoted 18 lines · On Fri, 05 Oct 2007 00:34:45 +1000 Michael Ellerman <[email protected]>…
Quoted 17 lines · Josh Boyer
Quoted 4 lines · Grant Likely

From: Grant Likely <[email protected]>

dcr.c is an arch/powerpc only thing.

Quoted 8 lines

---

Ben/Paulus,

As far as I can tell this is correct. Having sysdev/dcr.c in the arch/ppc build spits out warnings. Grep doesn't show anything in arch/ppc that is using it.

Sorry, no. The ibm_emac driver uses it, which is arch/ppc. (Yes, the old one.)

Quoted 7 lines
Quoted 2 lines

If there are warnings, let's fix those up. Perhaps Michael's recent patches in that area introduced something.

Hmm, I picked a good time to be away :)

I think it's OK. ibm_emac uses dcr_write() but it should always be using the native one from dcr-native.h. So I think this patch is good.

Agreed.

Quoted 1 line

Just another reason to get rid of arch/ppc :D

Agreed.

josh