* drivers/mmc/host/sdhci-of-core.c on sparc64 @ 2011-01-13 23:10 Andrew Morton 2011-01-13 23:38 ` Chris Ball 0 siblings, 1 reply; 5+ messages in thread From: Andrew Morton @ 2011-01-13 23:10 UTC (permalink / raw) To: linux-mmc drivers/mmc/host/sdhci-of-core.c:24:25: asm/machdep.h: No such file or directory drivers/mmc/host/sdhci-of-core.c: In function `sdhci_of_wp_inverted': drivers/mmc/host/sdhci-of-core.c:115: error: implicit declaration of function `machine_is' That code's been there for a while. Did someone change Kconfig? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drivers/mmc/host/sdhci-of-core.c on sparc64 2011-01-13 23:10 drivers/mmc/host/sdhci-of-core.c on sparc64 Andrew Morton @ 2011-01-13 23:38 ` Chris Ball 2011-01-13 23:41 ` Andrew Morton 0 siblings, 1 reply; 5+ messages in thread From: Chris Ball @ 2011-01-13 23:38 UTC (permalink / raw) To: Andrew Morton; +Cc: linux-mmc On Thu, Jan 13, 2011 at 03:10:33PM -0800, Andrew Morton wrote: > drivers/mmc/host/sdhci-of-core.c:24:25: asm/machdep.h: No such file or directory > drivers/mmc/host/sdhci-of-core.c: In function `sdhci_of_wp_inverted': > drivers/mmc/host/sdhci-of-core.c:115: error: implicit declaration of function `machine_is' > > That code's been there for a while. Did someone change Kconfig? Can you attach a .config? <asm/machdep.h> is arch-specific, so I'd suggest that you're building on an unsupported arch. Thanks, -- Chris Ball <cjb@laptop.org> <http://printf.net/> One Laptop Per Child ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drivers/mmc/host/sdhci-of-core.c on sparc64 2011-01-13 23:38 ` Chris Ball @ 2011-01-13 23:41 ` Andrew Morton 2011-01-14 1:12 ` Chris Ball 0 siblings, 1 reply; 5+ messages in thread From: Andrew Morton @ 2011-01-13 23:41 UTC (permalink / raw) To: Chris Ball; +Cc: linux-mmc On Thu, 13 Jan 2011 23:38:28 +0000 Chris Ball <cjb@laptop.org> wrote: > On Thu, Jan 13, 2011 at 03:10:33PM -0800, Andrew Morton wrote: > > drivers/mmc/host/sdhci-of-core.c:24:25: asm/machdep.h: No such file or directory > > drivers/mmc/host/sdhci-of-core.c: In function `sdhci_of_wp_inverted': > > drivers/mmc/host/sdhci-of-core.c:115: error: implicit declaration of function `machine_is' > > > > That code's been there for a while. Did someone change Kconfig? > > Can you attach a .config? <asm/machdep.h> is arch-specific, so I'd > suggest that you're building on an unsupported arch. > sparc64 allmodconfig. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drivers/mmc/host/sdhci-of-core.c on sparc64 2011-01-13 23:41 ` Andrew Morton @ 2011-01-14 1:12 ` Chris Ball 2011-01-14 7:57 ` Grant Likely 0 siblings, 1 reply; 5+ messages in thread From: Chris Ball @ 2011-01-14 1:12 UTC (permalink / raw) To: Andrew Morton Cc: linux-mmc, Rob Herring, Grant Likely, devicetree-discuss, Wolfram Sang Hi, On Thu, Jan 13, 2011 at 03:41:40PM -0800, Andrew Morton wrote: > > > drivers/mmc/host/sdhci-of-core.c:24:25: asm/machdep.h: No such file or directory > > > drivers/mmc/host/sdhci-of-core.c: In function `sdhci_of_wp_inverted': > > > drivers/mmc/host/sdhci-of-core.c:115: error: implicit declaration of function `machine_is' > > > > > > That code's been there for a while. Did someone change Kconfig? > > > > Can you attach a .config? <asm/machdep.h> is arch-specific, so I'd > > suggest that you're building on an unsupported arch. > > > > sparc64 allmodconfig. You're right, Andrew -- Rob (CC'd) changed the MMC Kconfig to build this driver on Sparc. Mainline commit 236cdc7bc71 ("of: make drivers depend on CONFIG_OF instead of CONFIG_PPC_OF"). Rob also posted a patch to devicetree-discuss@, on top of the one above ("mmc: sdhci-of: fix build on non-powerpc platforms"), to fix up the Sparc build by ifdef'ing for PPC inside the driver. Grant merged the first patch but not the second, hence sparc64 allmodconfig is broken now. The reason Grant didn't merge the second patch may be that Wolfram objected to #ifdef proliferation inside the driver. Options, as I see it: * revert the commit such that MMC_SDHCI_OF once again depends on PPC_OF * take the second patch as-is * come up with a less-#ifdeffy second patch Wolfram, would appreciate your input on what we should do here. Thanks, -- Chris Ball <cjb@laptop.org> <http://printf.net/> One Laptop Per Child ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: drivers/mmc/host/sdhci-of-core.c on sparc64 2011-01-14 1:12 ` Chris Ball @ 2011-01-14 7:57 ` Grant Likely 0 siblings, 0 replies; 5+ messages in thread From: Grant Likely @ 2011-01-14 7:57 UTC (permalink / raw) To: Chris Ball Cc: Andrew Morton, linux-mmc, Rob Herring, devicetree-discuss, Wolfram Sang On Thu, Jan 13, 2011 at 6:12 PM, Chris Ball <cjb@laptop.org> wrote: > Hi, > > On Thu, Jan 13, 2011 at 03:41:40PM -0800, Andrew Morton wrote: >> > > drivers/mmc/host/sdhci-of-core.c:24:25: asm/machdep.h: No such file or directory >> > > drivers/mmc/host/sdhci-of-core.c: In function `sdhci_of_wp_inverted': >> > > drivers/mmc/host/sdhci-of-core.c:115: error: implicit declaration of function `machine_is' >> > > >> > > That code's been there for a while. Did someone change Kconfig? >> > >> > Can you attach a .config? <asm/machdep.h> is arch-specific, so I'd >> > suggest that you're building on an unsupported arch. >> > >> >> sparc64 allmodconfig. > > You're right, Andrew -- Rob (CC'd) changed the MMC Kconfig to build this > driver on Sparc. Mainline commit 236cdc7bc71 ("of: make drivers depend > on CONFIG_OF instead of CONFIG_PPC_OF"). > > Rob also posted a patch to devicetree-discuss@, on top of the one above > ("mmc: sdhci-of: fix build on non-powerpc platforms"), to fix up the > Sparc build by ifdef'ing for PPC inside the driver. Grant merged the > first patch but not the second, hence sparc64 allmodconfig is broken > now. The reason Grant didn't merge the second patch may be that Wolfram > objected to #ifdef proliferation inside the driver. > > Options, as I see it: > * revert the commit such that MMC_SDHCI_OF once again depends on PPC_OF > * take the second patch as-is > * come up with a less-#ifdeffy second patch > > Wolfram, would appreciate your input on what we should do here. Thanks, I've applied the 2nd patch. I had applied it to my test tree, and indeed I replied saying I did, but I had a corrupt git tree event shortly after applying it to my test branch and evidently lost track of it. It's been pushed out to my next-devicetree branch: git://git.secretlab.ca/git/linux-2.6.git next-devicetree I'll ask Linus to pull after doing some sanity testing. g. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-01-14 7:57 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-01-13 23:10 drivers/mmc/host/sdhci-of-core.c on sparc64 Andrew Morton 2011-01-13 23:38 ` Chris Ball 2011-01-13 23:41 ` Andrew Morton 2011-01-14 1:12 ` Chris Ball 2011-01-14 7:57 ` Grant Likely
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.