* [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS
@ 2017-04-27 11:09 Arnd Bergmann
2017-04-27 12:17 ` Ludovic BARRE
2017-04-27 14:46 ` Cyrille Pitchen
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-04-27 11:09 UTC (permalink / raw)
To: Cyrille Pitchen, Marek Vasut
Cc: Arnd Bergmann, David Woodhouse, Brian Norris, Boris Brezillon,
Richard Weinberger, Maxime Coquelin, Alexandre Torgue,
Ludovic Barre, linux-mtd, linux-arm-kernel, linux-kernel
The MODULE_ALIAS statement refers to a macro that has never been defined
in this driver, causing a build error:
drivers/mtd/spi-nor/stm32-quadspi.c:694:150: error: expected ',' or ';' before 'DRIVER_NAME'
Unless there is a specific alias we need other then the driver name,
we don't need an alias here and can simply remove the line to fix the
build.
Fixes: dc5e400611c5 ("mtd: spi-nor: add driver for STM32 quad spi flash controller")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/mtd/spi-nor/stm32-quadspi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/stm32-quadspi.c b/drivers/mtd/spi-nor/stm32-quadspi.c
index 90d9152ddf98..1056e7408d2a 100644
--- a/drivers/mtd/spi-nor/stm32-quadspi.c
+++ b/drivers/mtd/spi-nor/stm32-quadspi.c
@@ -691,7 +691,6 @@ static struct platform_driver stm32_qspi_driver = {
};
module_platform_driver(stm32_qspi_driver);
-MODULE_ALIAS("platform:" DRIVER_NAME);
MODULE_AUTHOR("Ludovic Barre <ludovic.barre@st.com>");
MODULE_DESCRIPTION("STMicroelectronics STM32 quad spi driver");
MODULE_LICENSE("GPL v2");
--
2.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS
2017-04-27 11:09 [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS Arnd Bergmann
@ 2017-04-27 12:17 ` Ludovic BARRE
2017-04-27 14:32 ` Cyrille Pitchen
2017-04-27 14:46 ` Cyrille Pitchen
1 sibling, 1 reply; 4+ messages in thread
From: Ludovic BARRE @ 2017-04-27 12:17 UTC (permalink / raw)
To: Arnd Bergmann, Cyrille Pitchen, Marek Vasut
Cc: David Woodhouse, Brian Norris, Boris Brezillon,
Richard Weinberger, Maxime Coquelin, Alexandre Torgue, linux-mtd,
linux-arm-kernel, linux-kernel
thanks a lot Arnd
Oops, I've not tested in Module :-(.
Just tested in built-in, and used bind/unbind and device tree overlays.
BR
Ludo
On 04/27/2017 01:09 PM, Arnd Bergmann wrote:
> The MODULE_ALIAS statement refers to a macro that has never been defined
> in this driver, causing a build error:
>
> drivers/mtd/spi-nor/stm32-quadspi.c:694:150: error: expected ',' or ';' before 'DRIVER_NAME'
>
> Unless there is a specific alias we need other then the driver name,
> we don't need an alias here and can simply remove the line to fix the
> build.
>
> Fixes: dc5e400611c5 ("mtd: spi-nor: add driver for STM32 quad spi flash controller")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/mtd/spi-nor/stm32-quadspi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/stm32-quadspi.c b/drivers/mtd/spi-nor/stm32-quadspi.c
> index 90d9152ddf98..1056e7408d2a 100644
> --- a/drivers/mtd/spi-nor/stm32-quadspi.c
> +++ b/drivers/mtd/spi-nor/stm32-quadspi.c
> @@ -691,7 +691,6 @@ static struct platform_driver stm32_qspi_driver = {
> };
> module_platform_driver(stm32_qspi_driver);
>
> -MODULE_ALIAS("platform:" DRIVER_NAME);
> MODULE_AUTHOR("Ludovic Barre <ludovic.barre@st.com>");
> MODULE_DESCRIPTION("STMicroelectronics STM32 quad spi driver");
> MODULE_LICENSE("GPL v2");
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS
2017-04-27 12:17 ` Ludovic BARRE
@ 2017-04-27 14:32 ` Cyrille Pitchen
0 siblings, 0 replies; 4+ messages in thread
From: Cyrille Pitchen @ 2017-04-27 14:32 UTC (permalink / raw)
To: Ludovic BARRE, Arnd Bergmann, Marek Vasut
Cc: Boris Brezillon, Alexandre Torgue, Richard Weinberger,
linux-kernel, linux-mtd, Maxime Coquelin, Brian Norris,
David Woodhouse, linux-arm-kernel
Le 27/04/2017 à 14:17, Ludovic BARRE a écrit :
> thanks a lot Arnd
>
Indeed, thanks Arnd!
Since commit ("mtd: spi-nor: add driver for STM32 quad spi flash
controller") was included with the spi-nor PR for 4.12 I've sent
yesterday to Brian, I will check with him to know how he wants us to
proceed:
- If Brian has not started yet to review the PR and if he agrees on
that, I can rework a little bit the history in github/spi-nor to squash
Arnd's patch into Ludovic's one.
Ludovic's patch is already in linux-next but not yet in any release
candiate.
- or I can send an new PR keeping the fixup patch aside.
Best regards,
Cyrille
> Oops, I've not tested in Module :-(.
> Just tested in built-in, and used bind/unbind and device tree overlays.
>
> BR
> Ludo
> On 04/27/2017 01:09 PM, Arnd Bergmann wrote:
>> The MODULE_ALIAS statement refers to a macro that has never been defined
>> in this driver, causing a build error:
>>
>> drivers/mtd/spi-nor/stm32-quadspi.c:694:150: error: expected ',' or
>> ';' before 'DRIVER_NAME'
>>
>> Unless there is a specific alias we need other then the driver name,
>> we don't need an alias here and can simply remove the line to fix the
>> build.
>>
>> Fixes: dc5e400611c5 ("mtd: spi-nor: add driver for STM32 quad spi
>> flash controller")
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> ---
>> drivers/mtd/spi-nor/stm32-quadspi.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/mtd/spi-nor/stm32-quadspi.c
>> b/drivers/mtd/spi-nor/stm32-quadspi.c
>> index 90d9152ddf98..1056e7408d2a 100644
>> --- a/drivers/mtd/spi-nor/stm32-quadspi.c
>> +++ b/drivers/mtd/spi-nor/stm32-quadspi.c
>> @@ -691,7 +691,6 @@ static struct platform_driver stm32_qspi_driver = {
>> };
>> module_platform_driver(stm32_qspi_driver);
>> -MODULE_ALIAS("platform:" DRIVER_NAME);
>> MODULE_AUTHOR("Ludovic Barre <ludovic.barre@st.com>");
>> MODULE_DESCRIPTION("STMicroelectronics STM32 quad spi driver");
>> MODULE_LICENSE("GPL v2");
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS
2017-04-27 11:09 [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS Arnd Bergmann
2017-04-27 12:17 ` Ludovic BARRE
@ 2017-04-27 14:46 ` Cyrille Pitchen
1 sibling, 0 replies; 4+ messages in thread
From: Cyrille Pitchen @ 2017-04-27 14:46 UTC (permalink / raw)
To: Arnd Bergmann, Marek Vasut
Cc: Boris Brezillon, Alexandre Torgue, Richard Weinberger,
linux-kernel, linux-mtd, linux-arm-kernel, Maxime Coquelin,
Brian Norris, David Woodhouse, Ludovic Barre
Le 27/04/2017 à 13:09, Arnd Bergmann a écrit :
> The MODULE_ALIAS statement refers to a macro that has never been defined
> in this driver, causing a build error:
>
> drivers/mtd/spi-nor/stm32-quadspi.c:694:150: error: expected ',' or ';' before 'DRIVER_NAME'
>
> Unless there is a specific alias we need other then the driver name,
> we don't need an alias here and can simply remove the line to fix the
> build.
>
> Fixes: dc5e400611c5 ("mtd: spi-nor: add driver for STM32 quad spi flash controller")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Thanks!
> ---
> drivers/mtd/spi-nor/stm32-quadspi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/stm32-quadspi.c b/drivers/mtd/spi-nor/stm32-quadspi.c
> index 90d9152ddf98..1056e7408d2a 100644
> --- a/drivers/mtd/spi-nor/stm32-quadspi.c
> +++ b/drivers/mtd/spi-nor/stm32-quadspi.c
> @@ -691,7 +691,6 @@ static struct platform_driver stm32_qspi_driver = {
> };
> module_platform_driver(stm32_qspi_driver);
>
> -MODULE_ALIAS("platform:" DRIVER_NAME);
> MODULE_AUTHOR("Ludovic Barre <ludovic.barre@st.com>");
> MODULE_DESCRIPTION("STMicroelectronics STM32 quad spi driver");
> MODULE_LICENSE("GPL v2");
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-27 15:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-27 11:09 [PATCH] mtd: spi-nor: stm32: remove broken MODULE_ALIAS Arnd Bergmann
2017-04-27 12:17 ` Ludovic BARRE
2017-04-27 14:32 ` Cyrille Pitchen
2017-04-27 14:46 ` Cyrille Pitchen
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).