* [PATCH] powerpc: select MEMORY for FSL_IFC to not break existing .config files @ 2014-02-19 22:07 Paul Gortmaker 2014-02-19 22:19 ` Scott Wood 0 siblings, 1 reply; 7+ messages in thread From: Paul Gortmaker @ 2014-02-19 22:07 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Arnd Bergmann, Paul Gortmaker, linux-next, Paul Mackerras, linuxppc-dev, Prabhakar Kushwaha commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move Freescale IFC driver to a common driver") introduces this build regression into the mpc85xx_defconfig: drivers/built-in.o: In function `fsl_ifc_nand_remove': drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' drivers/built-in.o: In function `fsl_ifc_nand_probe': drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' drivers/built-in.o: In function `match_bank': drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' drivers/built-in.o: In function `fsl_ifc_nand_probe': drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' make: *** [vmlinux] Error 1 This happens because there is nothing to descend us into the drivers/memory directory in the mpc85xx_defconfig. It wasn't selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o even with CONFIG_FSL_IFC=y, and so we have nothing to link against. In order to remain compatible with old config files and to avoid such build failures, make CONFIG_FSL_IFC select CONFIG_MEMORY. Also fix the whitespace issue (spaces vs. a tab) in the Kconfig. Cc: Prabhakar Kushwaha <prabhakar@freescale.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> --- [This probably makes sense to go in via Greg's char-misc/char-misc-next (vs. powerpc-next) since that is where the regression was introduced.] arch/powerpc/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 957bf344c0f5..d2d8d8f50610 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -738,7 +738,8 @@ config FSL_LBC config FSL_IFC bool - depends on FSL_SOC + depends on FSL_SOC + select MEMORY config FSL_GTM bool -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] powerpc: select MEMORY for FSL_IFC to not break existing .config files 2014-02-19 22:07 [PATCH] powerpc: select MEMORY for FSL_IFC to not break existing .config files Paul Gortmaker @ 2014-02-19 22:19 ` Scott Wood 2014-02-19 22:25 ` Paul Gortmaker 2014-02-19 22:46 ` [PATCH v2] " Paul Gortmaker 0 siblings, 2 replies; 7+ messages in thread From: Scott Wood @ 2014-02-19 22:19 UTC (permalink / raw) To: Paul Gortmaker Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-next, Paul Mackerras, linuxppc-dev, Prabhakar Kushwaha On Wed, 2014-02-19 at 17:07 -0500, Paul Gortmaker wrote: > commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move > Freescale IFC driver to a common driver") introduces this build > regression into the mpc85xx_defconfig: > > drivers/built-in.o: In function `fsl_ifc_nand_remove': > drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' > drivers/built-in.o: In function `fsl_ifc_nand_probe': > drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' > drivers/built-in.o: In function `match_bank': > drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' > drivers/built-in.o: In function `fsl_ifc_nand_probe': > drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' > make: *** [vmlinux] Error 1 > > This happens because there is nothing to descend us into the > drivers/memory directory in the mpc85xx_defconfig. It wasn't > selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o > even with CONFIG_FSL_IFC=y, and so we have nothing to link against. > > In order to remain compatible with old config files and to avoid > such build failures, make CONFIG_FSL_IFC select CONFIG_MEMORY. > Also fix the whitespace issue (spaces vs. a tab) in the Kconfig. > > Cc: Prabhakar Kushwaha <prabhakar@freescale.com> > Cc: Arnd Bergmann <arnd@arndb.de> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> > --- > > [This probably makes sense to go in via Greg's char-misc/char-misc-next > (vs. powerpc-next) since that is where the regression was introduced.] > > arch/powerpc/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 957bf344c0f5..d2d8d8f50610 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -738,7 +738,8 @@ config FSL_LBC > > config FSL_IFC > bool > - depends on FSL_SOC > + depends on FSL_SOC > + select MEMORY Why do we still have FSL_IFC in arch/powerpc/Kconfig if the driver has been moved? The NAND driver and other selectors of FSL_IFC can select MEMORY. -Scott ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] powerpc: select MEMORY for FSL_IFC to not break existing .config files 2014-02-19 22:19 ` Scott Wood @ 2014-02-19 22:25 ` Paul Gortmaker 2014-02-19 22:46 ` [PATCH v2] " Paul Gortmaker 1 sibling, 0 replies; 7+ messages in thread From: Paul Gortmaker @ 2014-02-19 22:25 UTC (permalink / raw) To: Scott Wood Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-next, Paul Mackerras, linuxppc-dev, Prabhakar Kushwaha On 14-02-19 05:19 PM, Scott Wood wrote: > On Wed, 2014-02-19 at 17:07 -0500, Paul Gortmaker wrote: >> commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move >> Freescale IFC driver to a common driver") introduces this build >> regression into the mpc85xx_defconfig: >> >> drivers/built-in.o: In function `fsl_ifc_nand_remove': >> drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/built-in.o: In function `fsl_ifc_nand_probe': >> drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/built-in.o: In function `match_bank': >> drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' >> drivers/built-in.o: In function `fsl_ifc_nand_probe': >> drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' >> make: *** [vmlinux] Error 1 >> >> This happens because there is nothing to descend us into the >> drivers/memory directory in the mpc85xx_defconfig. It wasn't >> selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o >> even with CONFIG_FSL_IFC=y, and so we have nothing to link against. >> >> In order to remain compatible with old config files and to avoid >> such build failures, make CONFIG_FSL_IFC select CONFIG_MEMORY. >> Also fix the whitespace issue (spaces vs. a tab) in the Kconfig. >> >> Cc: Prabhakar Kushwaha <prabhakar@freescale.com> >> Cc: Arnd Bergmann <arnd@arndb.de> >> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> >> --- >> >> [This probably makes sense to go in via Greg's char-misc/char-misc-next >> (vs. powerpc-next) since that is where the regression was introduced.] >> >> arch/powerpc/Kconfig | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> index 957bf344c0f5..d2d8d8f50610 100644 >> --- a/arch/powerpc/Kconfig >> +++ b/arch/powerpc/Kconfig >> @@ -738,7 +738,8 @@ config FSL_LBC >> >> config FSL_IFC >> bool >> - depends on FSL_SOC >> + depends on FSL_SOC >> + select MEMORY > > Why do we still have FSL_IFC in arch/powerpc/Kconfig if the driver has > been moved? The NAND driver and other selectors of FSL_IFC can select > MEMORY. At the risk of a slightly larger footprint to the regression fix, I'd agree that is a better overall solution. I'll code that up. Unless folks want the regression fix as-is, and then the move? Paul. -- > > -Scott > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] powerpc: select MEMORY for FSL_IFC to not break existing .config files 2014-02-19 22:19 ` Scott Wood 2014-02-19 22:25 ` Paul Gortmaker @ 2014-02-19 22:46 ` Paul Gortmaker 2014-02-20 6:05 ` Prabhakar Kushwaha 1 sibling, 1 reply; 7+ messages in thread From: Paul Gortmaker @ 2014-02-19 22:46 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Arnd Bergmann, Paul Gortmaker, linux-next, linux-mtd, Scott Wood, Paul Mackerras, linuxppc-dev, David Woodhouse, Prabhakar Kushwaha commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move Freescale IFC driver to a common driver") introduces this build regression into the mpc85xx_defconfig: drivers/built-in.o: In function `fsl_ifc_nand_remove': drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' drivers/built-in.o: In function `fsl_ifc_nand_probe': drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' drivers/built-in.o: In function `match_bank': drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' drivers/built-in.o: In function `fsl_ifc_nand_probe': drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' make: *** [vmlinux] Error 1 This happens because there is nothing to descend us into the drivers/memory directory in the mpc85xx_defconfig. It wasn't selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o and so we have nothing to link the above symbols against. Since the goal of the original commit was to relocate the driver to an arch independent location, it only makes sense to relocate the Kconfig setting there as well. But that alone won't fix the build failure; for that we ensure whoever selects FSL_IFC also selects MEMORY. Cc: Prabhakar Kushwaha <prabhakar@freescale.com> Cc: Scott Wood <scottwood@freescale.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> --- [v2: fix the mislocated FSL_IFC as per Scott's comment. It still probably makes sense to go in via Greg's char-misc/char-misc-next (vs. powerpc-next) since that is where the regression was introduced.] arch/powerpc/Kconfig | 4 ---- drivers/memory/Kconfig | 4 ++++ drivers/mtd/nand/Kconfig | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 957bf344c0f5..b9fcecc706ab 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -736,10 +736,6 @@ config FSL_LBC controller. Also contains some common code used by drivers for specific local bus peripherals. -config FSL_IFC - bool - depends on FSL_SOC - config FSL_GTM bool depends on PPC_83xx || QUICC_ENGINE || CPM2 diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig index 29a11db365bc..a3640fe9852f 100644 --- a/drivers/memory/Kconfig +++ b/drivers/memory/Kconfig @@ -50,4 +50,8 @@ config TEGRA30_MC analysis, especially for IOMMU/SMMU(System Memory Management Unit) module. +config FSL_IFC + bool + depends on FSL_SOC + endif diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 90ff447bf043..a4bee41ad5cb 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -428,6 +428,7 @@ config MTD_NAND_FSL_IFC tristate "NAND support for Freescale IFC controller" depends on MTD_NAND && FSL_SOC select FSL_IFC + select MEMORY help Various Freescale chips e.g P1010, include a NAND Flash machine with built-in hardware ECC capabilities. -- 1.8.5.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] powerpc: select MEMORY for FSL_IFC to not break existing .config files 2014-02-19 22:46 ` [PATCH v2] " Paul Gortmaker @ 2014-02-20 6:05 ` Prabhakar Kushwaha 2014-02-20 14:40 ` Paul Gortmaker 0 siblings, 1 reply; 7+ messages in thread From: Prabhakar Kushwaha @ 2014-02-20 6:05 UTC (permalink / raw) To: Paul Gortmaker, Greg Kroah-Hartman Cc: Arnd Bergmann, linux-next, linux-mtd, Scott Wood, Paul Mackerras, linuxppc-dev, David Woodhouse On 2/20/2014 4:16 AM, Paul Gortmaker wrote: > commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move > Freescale IFC driver to a common driver") introduces this build > regression into the mpc85xx_defconfig: > > drivers/built-in.o: In function `fsl_ifc_nand_remove': > drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' > drivers/built-in.o: In function `fsl_ifc_nand_probe': > drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' > drivers/built-in.o: In function `match_bank': > drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' > drivers/built-in.o: In function `fsl_ifc_nand_probe': > drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' > drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' > make: *** [vmlinux] Error 1 > > This happens because there is nothing to descend us into the > drivers/memory directory in the mpc85xx_defconfig. It wasn't > selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o > and so we have nothing to link the above symbols against. > > Since the goal of the original commit was to relocate the driver to > an arch independent location, it only makes sense to relocate the > Kconfig setting there as well. But that alone won't fix the build > failure; for that we ensure whoever selects FSL_IFC also selects MEMORY. > > Cc: Prabhakar Kushwaha <prabhakar@freescale.com> > Cc: Scott Wood <scottwood@freescale.com> > Cc: Arnd Bergmann <arnd@arndb.de> > Cc: David Woodhouse <dwmw2@infradead.org> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> > --- > > [v2: fix the mislocated FSL_IFC as per Scott's comment. It still > probably makes sense to go in via Greg's char-misc/char-misc-next > (vs. powerpc-next) since that is where the regression was introduced.] > > arch/powerpc/Kconfig | 4 ---- > drivers/memory/Kconfig | 4 ++++ > drivers/mtd/nand/Kconfig | 1 + > 3 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 957bf344c0f5..b9fcecc706ab 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -736,10 +736,6 @@ config FSL_LBC > controller. Also contains some common code used by > drivers for specific local bus peripherals. > > -config FSL_IFC > - bool > - depends on FSL_SOC > - > config FSL_GTM > bool > depends on PPC_83xx || QUICC_ENGINE || CPM2 > diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig > index 29a11db365bc..a3640fe9852f 100644 > --- a/drivers/memory/Kconfig > +++ b/drivers/memory/Kconfig > @@ -50,4 +50,8 @@ config TEGRA30_MC > analysis, especially for IOMMU/SMMU(System Memory Management > Unit) module. > > +config FSL_IFC > + bool > + depends on FSL_SOC > + > endif > diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig > index 90ff447bf043..a4bee41ad5cb 100644 > --- a/drivers/mtd/nand/Kconfig > +++ b/drivers/mtd/nand/Kconfig > @@ -428,6 +428,7 @@ config MTD_NAND_FSL_IFC > tristate "NAND support for Freescale IFC controller" > depends on MTD_NAND && FSL_SOC > select FSL_IFC > + select MEMORY > help > Various Freescale chips e.g P1010, include a NAND Flash machine > with built-in hardware ECC capabilities. Hi All, I am not sure which version of patch is being picked here. Latest version is v8 and it is a "patch set" and it do enable CONFIG_MEMORY in powerpc/configs 1. driver/memory:Move Freescale IFC driver to a common driver http://patchwork.ozlabs.org/patch/315531/ 2. powerpc/config: Enable memory driver http://patchwork.ozlabs.org/patch/315532/ Regards, Prabhakar ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] powerpc: select MEMORY for FSL_IFC to not break existing .config files 2014-02-20 6:05 ` Prabhakar Kushwaha @ 2014-02-20 14:40 ` Paul Gortmaker 2014-02-21 4:00 ` Prabhakar Kushwaha 0 siblings, 1 reply; 7+ messages in thread From: Paul Gortmaker @ 2014-02-20 14:40 UTC (permalink / raw) To: Prabhakar Kushwaha, Greg Kroah-Hartman Cc: Arnd Bergmann, linux-next, linux-mtd, Scott Wood, Paul Mackerras, linuxppc-dev, David Woodhouse On 14-02-20 01:05 AM, Prabhakar Kushwaha wrote: > > On 2/20/2014 4:16 AM, Paul Gortmaker wrote: >> commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move >> Freescale IFC driver to a common driver") introduces this build >> regression into the mpc85xx_defconfig: >> >> drivers/built-in.o: In function `fsl_ifc_nand_remove': >> drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/built-in.o: In function `fsl_ifc_nand_probe': >> drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/built-in.o: In function `match_bank': >> drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' >> drivers/built-in.o: In function `fsl_ifc_nand_probe': >> drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' >> drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' >> make: *** [vmlinux] Error 1 >> >> This happens because there is nothing to descend us into the >> drivers/memory directory in the mpc85xx_defconfig. It wasn't >> selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o >> and so we have nothing to link the above symbols against. >> >> Since the goal of the original commit was to relocate the driver to >> an arch independent location, it only makes sense to relocate the >> Kconfig setting there as well. But that alone won't fix the build >> failure; for that we ensure whoever selects FSL_IFC also selects MEMORY. >> >> Cc: Prabhakar Kushwaha <prabhakar@freescale.com> >> Cc: Scott Wood <scottwood@freescale.com> >> Cc: Arnd Bergmann <arnd@arndb.de> >> Cc: David Woodhouse <dwmw2@infradead.org> >> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> >> --- >> >> [v2: fix the mislocated FSL_IFC as per Scott's comment. It still >> probably makes sense to go in via Greg's char-misc/char-misc-next >> (vs. powerpc-next) since that is where the regression was introduced.] >> >> arch/powerpc/Kconfig | 4 ---- >> drivers/memory/Kconfig | 4 ++++ >> drivers/mtd/nand/Kconfig | 1 + >> 3 files changed, 5 insertions(+), 4 deletions(-) >> >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> index 957bf344c0f5..b9fcecc706ab 100644 >> --- a/arch/powerpc/Kconfig >> +++ b/arch/powerpc/Kconfig >> @@ -736,10 +736,6 @@ config FSL_LBC >> controller. Also contains some common code used by >> drivers for specific local bus peripherals. >> >> -config FSL_IFC >> - bool >> - depends on FSL_SOC >> - >> config FSL_GTM >> bool >> depends on PPC_83xx || QUICC_ENGINE || CPM2 >> diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig >> index 29a11db365bc..a3640fe9852f 100644 >> --- a/drivers/memory/Kconfig >> +++ b/drivers/memory/Kconfig >> @@ -50,4 +50,8 @@ config TEGRA30_MC >> analysis, especially for IOMMU/SMMU(System Memory Management >> Unit) module. >> >> +config FSL_IFC >> + bool >> + depends on FSL_SOC >> + >> endif >> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig >> index 90ff447bf043..a4bee41ad5cb 100644 >> --- a/drivers/mtd/nand/Kconfig >> +++ b/drivers/mtd/nand/Kconfig >> @@ -428,6 +428,7 @@ config MTD_NAND_FSL_IFC >> tristate "NAND support for Freescale IFC controller" >> depends on MTD_NAND && FSL_SOC >> select FSL_IFC >> + select MEMORY >> help >> Various Freescale chips e.g P1010, include a NAND Flash machine >> with built-in hardware ECC capabilities. > > Hi All, > > I am not sure which version of patch is being picked here. > > Latest version is v8 and it is a "patch set" and it do enable > CONFIG_MEMORY in powerpc/configs It really doesn't matter what the latest version is, if the maintainer has already taken an earlier version and merged it. In that case one needs to work with the maintainer to determine whether they want a new version, or a delta/fixup commit on the old one. > > 1. driver/memory:Move Freescale IFC driver to a common driver > http://patchwork.ozlabs.org/patch/315531/ So, this has the Kconfig move part, but the one currently in char-misc does not. And it still needs the "select". > > 2. powerpc/config: Enable memory driver > http://patchwork.ozlabs.org/patch/315532/ Updating the defconfigs is fine, but incomplete in itself. You still need the IFC users to select MEMORY, otherwise you still introduce build failures for anyone else who chooses IFC but does not choose MEMORY. In short, the char-misc tree still needs the v2 patch above. Paul. -- > > Regards, > Prabhakar > > > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] powerpc: select MEMORY for FSL_IFC to not break existing .config files 2014-02-20 14:40 ` Paul Gortmaker @ 2014-02-21 4:00 ` Prabhakar Kushwaha 0 siblings, 0 replies; 7+ messages in thread From: Prabhakar Kushwaha @ 2014-02-21 4:00 UTC (permalink / raw) To: Paul Gortmaker, Greg Kroah-Hartman Cc: Arnd Bergmann, linux-next, linux-mtd, Scott Wood, Paul Mackerras, linuxppc-dev, David Woodhouse On 2/20/2014 8:10 PM, Paul Gortmaker wrote: > On 14-02-20 01:05 AM, Prabhakar Kushwaha wrote: >> On 2/20/2014 4:16 AM, Paul Gortmaker wrote: >>> commit d2ae2e20fbdde5a65f3a5a153044ab1e5c53f7cc ("driver/memory:Move >>> Freescale IFC driver to a common driver") introduces this build >>> regression into the mpc85xx_defconfig: >>> >>> drivers/built-in.o: In function `fsl_ifc_nand_remove': >>> drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/mtd/nand/fsl_ifc_nand.c:1147: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/built-in.o: In function `fsl_ifc_nand_probe': >>> drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/mtd/nand/fsl_ifc_nand.c:1031: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/built-in.o: In function `match_bank': >>> drivers/mtd/nand/fsl_ifc_nand.c:1013: undefined reference to `convert_ifc_address' >>> drivers/built-in.o: In function `fsl_ifc_nand_probe': >>> drivers/mtd/nand/fsl_ifc_nand.c:1059: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/mtd/nand/fsl_ifc_nand.c:1080: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' >>> drivers/mtd/nand/fsl_ifc_nand.c:1069: undefined reference to `fsl_ifc_ctrl_dev' >>> make: *** [vmlinux] Error 1 >>> >>> This happens because there is nothing to descend us into the >>> drivers/memory directory in the mpc85xx_defconfig. It wasn't >>> selecting CONFIG_MEMORY. So we never built drivers/memory/fsl_ifc.o >>> and so we have nothing to link the above symbols against. >>> >>> Since the goal of the original commit was to relocate the driver to >>> an arch independent location, it only makes sense to relocate the >>> Kconfig setting there as well. But that alone won't fix the build >>> failure; for that we ensure whoever selects FSL_IFC also selects MEMORY. >>> >>> Cc: Prabhakar Kushwaha <prabhakar@freescale.com> >>> Cc: Scott Wood <scottwood@freescale.com> >>> Cc: Arnd Bergmann <arnd@arndb.de> >>> Cc: David Woodhouse <dwmw2@infradead.org> >>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >>> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> >>> --- >>> >>> [v2: fix the mislocated FSL_IFC as per Scott's comment. It still >>> probably makes sense to go in via Greg's char-misc/char-misc-next >>> (vs. powerpc-next) since that is where the regression was introduced.] >>> >>> arch/powerpc/Kconfig | 4 ---- >>> drivers/memory/Kconfig | 4 ++++ >>> drivers/mtd/nand/Kconfig | 1 + >>> 3 files changed, 5 insertions(+), 4 deletions(-) >>> >>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >>> index 957bf344c0f5..b9fcecc706ab 100644 >>> --- a/arch/powerpc/Kconfig >>> +++ b/arch/powerpc/Kconfig >>> @@ -736,10 +736,6 @@ config FSL_LBC >>> controller. Also contains some common code used by >>> drivers for specific local bus peripherals. >>> >>> -config FSL_IFC >>> - bool >>> - depends on FSL_SOC >>> - >>> config FSL_GTM >>> bool >>> depends on PPC_83xx || QUICC_ENGINE || CPM2 >>> diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig >>> index 29a11db365bc..a3640fe9852f 100644 >>> --- a/drivers/memory/Kconfig >>> +++ b/drivers/memory/Kconfig >>> @@ -50,4 +50,8 @@ config TEGRA30_MC >>> analysis, especially for IOMMU/SMMU(System Memory Management >>> Unit) module. >>> >>> +config FSL_IFC >>> + bool >>> + depends on FSL_SOC >>> + >>> endif >>> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig >>> index 90ff447bf043..a4bee41ad5cb 100644 >>> --- a/drivers/mtd/nand/Kconfig >>> +++ b/drivers/mtd/nand/Kconfig >>> @@ -428,6 +428,7 @@ config MTD_NAND_FSL_IFC >>> tristate "NAND support for Freescale IFC controller" >>> depends on MTD_NAND && FSL_SOC >>> select FSL_IFC >>> + select MEMORY >>> help >>> Various Freescale chips e.g P1010, include a NAND Flash machine >>> with built-in hardware ECC capabilities. >> Hi All, >> >> I am not sure which version of patch is being picked here. >> >> Latest version is v8 and it is a "patch set" and it do enable >> CONFIG_MEMORY in powerpc/configs > It really doesn't matter what the latest version is, if the > maintainer has already taken an earlier version and merged it. > In that case one needs to work with the maintainer to determine > whether they want a new version, or a delta/fixup commit on the > old one. I think, I got the reason of this issue. I thought this patch will be picked by powerpc.git and updated version were sent on linuxppc-dev mail list after initial version review on both powerpc and linux-kernel mailing list. It should have sent on both the list "always". A learning for future :) I am OK with the current patch and modification because it full fill my requirements. I will sent separate patch to fix other things. >> 1. driver/memory:Move Freescale IFC driver to a common driver >> http://patchwork.ozlabs.org/patch/315531/ > So, this has the Kconfig move part, but the one currently in > char-misc does not. And it still needs the "select". > >> 2. powerpc/config: Enable memory driver >> http://patchwork.ozlabs.org/patch/315532/ > Updating the defconfigs is fine, but incomplete in itself. You > still need the IFC users to select MEMORY, otherwise you still > introduce build failures for anyone else who chooses IFC but > does not choose MEMORY. > > In short, the char-misc tree still needs the v2 patch above. > > Yes, this patch still required. Thanks, Prabhakar ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-02-21 4:00 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-02-19 22:07 [PATCH] powerpc: select MEMORY for FSL_IFC to not break existing .config files Paul Gortmaker 2014-02-19 22:19 ` Scott Wood 2014-02-19 22:25 ` Paul Gortmaker 2014-02-19 22:46 ` [PATCH v2] " Paul Gortmaker 2014-02-20 6:05 ` Prabhakar Kushwaha 2014-02-20 14:40 ` Paul Gortmaker 2014-02-21 4:00 ` Prabhakar Kushwaha
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).