From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: David Woodhouse <David.Woodhouse@intel.com>,
Artem Bityutskiy <dedekind1@gmail.com>,
stable@vger.kernel.org, Daniel Mack <zonque@gmail.com>,
linux-mtd@lists.infradead.org,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH] mtd: pxa3xx_nand: fix compilation error
Date: Wed, 25 Sep 2013 11:41:18 -0300 [thread overview]
Message-ID: <20130925144118.GE2418@localhost> (raw)
In-Reply-To: <1380118794-846-1-git-send-email-linus.walleij@linaro.org>
Hi Linus,
On Wed, Sep 25, 2013 at 04:19:54PM +0200, Linus Walleij wrote:
> When building the pxa3xx defconfig without device tree support
> (i.e. the pxa3xx_defconfig) the build fails like this:
>
> drivers/mtd/nand/pxa3xx_nand.c: In function ‘pxa3xx_nand_probe’:
> drivers/mtd/nand/pxa3xx_nand.c:1325:2: error: implicit declaration of function ‘pxa3xx_nand_get_variant’ [-Werror=implicit-function-declaration]
> info->variant = pxa3xx_nand_get_variant(pdev);
> ^
> cc1: some warnings being treated as errors
> make[5]: *** [drivers/mtd/nand/pxa3xx_nand.o] Error 1
> make[4]: *** [drivers/mtd/nand] Error 2
> make[4]: *** Waiting for unfinished jobs....
>
> Fix it up by returning the PXA variant on non-DT boots.
>
> This appears to have been broken since
> commit c0f3b8643a6fa2461d70760ec49d21d2b031d611
> "mtd: nand: pxa3xx: Introduce 'marvell,armada370-nand' compatible string"
>
> Cc: stable@vger.kernel.org
> Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> Cc: Daniel Mack <zonque@gmail.com>
> Cc: Brian Norris <computersforpeace@gmail.com>
> Cc: David Woodhouse <David.Woodhouse@intel.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> drivers/mtd/nand/pxa3xx_nand.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
> index 5db900d..e7a403f 100644
> --- a/drivers/mtd/nand/pxa3xx_nand.c
> +++ b/drivers/mtd/nand/pxa3xx_nand.c
> @@ -1285,6 +1285,12 @@ static int pxa3xx_nand_probe_dt(struct platform_device *pdev)
> return 0;
> }
> #else
> +static enum pxa3xx_nand_variant
> +pxa3xx_nand_get_variant(struct platform_device *pdev)
> +{
> + return PXA3XX_NAND_VARIANT_PXA;
> +}
> +
> static inline int pxa3xx_nand_probe_dt(struct platform_device *pdev)
> {
> return 0;
> --
There's already a fix for this in v3.12-rc2:
commit ab5be58833455dd2f942b9e2e5fcc8d9b4c7c9e6
Author: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Date: Mon Aug 12 14:14:46 2013 -0300
mtd: nand: pxa3xx: Remove unneeded ifdef CONFIG_OF
Thanks,
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
prev parent reply other threads:[~2013-09-25 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 14:19 [PATCH] mtd: pxa3xx_nand: fix compilation error Linus Walleij
2013-09-25 14:41 ` Ezequiel Garcia [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130925144118.GE2418@localhost \
--to=ezequiel.garcia@free-electrons.com \
--cc=David.Woodhouse@intel.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linus.walleij@linaro.org \
--cc=linux-mtd@lists.infradead.org \
--cc=stable@vger.kernel.org \
--cc=zonque@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox