* [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y
@ 2013-01-03 18:27 Sergei Shtylyov
2013-01-04 5:52 ` Sekhar Nori
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2013-01-03 18:27 UTC (permalink / raw)
To: dwmw2, linux-mtd; +Cc: davinci-linux-open-source, hs, nsekhar
Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF
support for davinci nand controller) has never been really build tested with
the driver as a module. When the driver is built-in, the missing semicolon
after structure initializer is "compensated" by MODULE_DEVICE_TABLE() macro
being empty and so the initializer using the trailing semicolon on the next
line; when the driver is built as a module, compilation error ensues, and as
the 'davinci_all_defconfig' has the NAND driver modular, this error prevents
DaVinci family kernel from building...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: stable@vger.kernel.org # 3.7
---
The patch is atop of the recent Linus' tree.
Sekhar, have you build tested at least 3.8-rc1?
drivers/mtd/nand/davinci_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/drivers/mtd/nand/davinci_nand.c
===================================================================
--- linux.orig/drivers/mtd/nand/davinci_nand.c
+++ linux/drivers/mtd/nand/davinci_nand.c
@@ -523,7 +523,7 @@ static struct nand_ecclayout hwecc4_2048
static const struct of_device_id davinci_nand_of_match[] = {
{.compatible = "ti,davinci-nand", },
{},
-}
+};
MODULE_DEVICE_TABLE(of, davinci_nand_of_match);
static struct davinci_nand_pdata
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y
2013-01-03 18:27 [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y Sergei Shtylyov
@ 2013-01-04 5:52 ` Sekhar Nori
2013-01-04 6:40 ` Heiko Schocher
2013-01-11 17:44 ` Sergei Shtylyov
2 siblings, 0 replies; 5+ messages in thread
From: Sekhar Nori @ 2013-01-04 5:52 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mtd, davinci-linux-open-source, hs, dwmw2
Hi Sergei,
On 1/3/2013 11:57 PM, Sergei Shtylyov wrote:
> Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF
> support for davinci nand controller) has never been really build tested with
> the driver as a module. When the driver is built-in, the missing semicolon
> after structure initializer is "compensated" by MODULE_DEVICE_TABLE() macro
> being empty and so the initializer using the trailing semicolon on the next
> line; when the driver is built as a module, compilation error ensues, and as
> the 'davinci_all_defconfig' has the NAND driver modular, this error prevents
> DaVinci family kernel from building...
>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
> Cc: stable@vger.kernel.org # 3.7
>
> ---
> The patch is atop of the recent Linus' tree.
> Sekhar, have you build tested at least 3.8-rc1?
v3.8-rc2 builds and boots fine. 'make modules' needs your patch, of
course. For this patch, FWIW:
Acked-by: Sekhar Nori <nsekhar@ti.com>
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y
2013-01-03 18:27 [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y Sergei Shtylyov
2013-01-04 5:52 ` Sekhar Nori
@ 2013-01-04 6:40 ` Heiko Schocher
2013-01-11 17:44 ` Sergei Shtylyov
2 siblings, 0 replies; 5+ messages in thread
From: Heiko Schocher @ 2013-01-04 6:40 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mtd, davinci-linux-open-source, dwmw2, nsekhar
Hello Sergei
On 03.01.2013 19:27, Sergei Shtylyov wrote:
> Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF
> support for davinci nand controller) has never been really build tested with
> the driver as a module. When the driver is built-in, the missing semicolon
> after structure initializer is "compensated" by MODULE_DEVICE_TABLE() macro
> being empty and so the initializer using the trailing semicolon on the next
> line; when the driver is built as a module, compilation error ensues, and as
> the 'davinci_all_defconfig' has the NAND driver modular, this error prevents
> DaVinci family kernel from building...
>
> Signed-off-by: Sergei Shtylyov<sshtylyov@ru.mvista.com>
> Cc: stable@vger.kernel.org # 3.7
>
> ---
> The patch is atop of the recent Linus' tree.
> Sekhar, have you build tested at least 3.8-rc1?
>
> drivers/mtd/nand/davinci_nand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux/drivers/mtd/nand/davinci_nand.c
> ===================================================================
> --- linux.orig/drivers/mtd/nand/davinci_nand.c
> +++ linux/drivers/mtd/nand/davinci_nand.c
> @@ -523,7 +523,7 @@ static struct nand_ecclayout hwecc4_2048
> static const struct of_device_id davinci_nand_of_match[] = {
> {.compatible = "ti,davinci-nand", },
> {},
> -}
> +};
> MODULE_DEVICE_TABLE(of, davinci_nand_of_match);
>
> static struct davinci_nand_pdata
Acked-by: Heiko Schocher <hs@denx.de>
Thanks for detecting this!
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y
2013-01-11 17:44 ` Sergei Shtylyov
@ 2013-01-11 16:54 ` David Woodhouse
0 siblings, 0 replies; 5+ messages in thread
From: David Woodhouse @ 2013-01-11 16:54 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: davinci-linux-open-source, hs, linux-mtd
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
On Fri, 2013-01-11 at 20:44 +0300, Sergei Shtylyov wrote:
>
> > The patch is atop of the recent Linus' tree.
>
> OK, a week has passed. Anybody going to queue this up for 3.8?
I've just applied it to my tree; I'll send it in a day or so. Thanks for
the reminder.
--
dwmw2
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 6171 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y
2013-01-03 18:27 [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y Sergei Shtylyov
2013-01-04 5:52 ` Sekhar Nori
2013-01-04 6:40 ` Heiko Schocher
@ 2013-01-11 17:44 ` Sergei Shtylyov
2013-01-11 16:54 ` David Woodhouse
2 siblings, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2013-01-11 17:44 UTC (permalink / raw)
To: dwmw2, linux-mtd; +Cc: davinci-linux-open-source, hs
Hello.
On 01/03/2013 09:27 PM, Sergei Shtylyov wrote:
> Commit cdeadd712f52b16a9285386d61ee26fd14eb4085 (mtd: nand: davinci: add OF
> support for davinci nand controller) has never been really build tested with
> the driver as a module. When the driver is built-in, the missing semicolon
> after structure initializer is "compensated" by MODULE_DEVICE_TABLE() macro
> being empty and so the initializer using the trailing semicolon on the next
> line; when the driver is built as a module, compilation error ensues, and as
> the 'davinci_all_defconfig' has the NAND driver modular, this error prevents
> DaVinci family kernel from building...
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
> Cc: stable@vger.kernel.org # 3.7
> ---
> The patch is atop of the recent Linus' tree.
OK, a week has passed. Anybody going to queue this up for 3.8?
WBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-11 16:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 18:27 [PATCH v2] davinci_nand: fix modular build with CONFIG_OF=y Sergei Shtylyov
2013-01-04 5:52 ` Sekhar Nori
2013-01-04 6:40 ` Heiko Schocher
2013-01-11 17:44 ` Sergei Shtylyov
2013-01-11 16:54 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox