LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
@ 2019-05-28 13:32 YueHaibing
2019-05-28 13:41 ` Sven Van Asbroeck
0 siblings, 1 reply; 11+ messages in thread
From: YueHaibing @ 2019-05-28 13:32 UTC (permalink / raw)
To: TheSven73, gregkh; +Cc: linux-kernel, devel, YueHaibing
Fix gcc build error while CONFIG_REGMAP_MMIO is not set
drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
arcx-anybus.c:(.text+0x9d6): undefined reference to `__devm_regmap_init_mmio_clk'
Select REGMAP_MMIO to fix it.
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 2411a336c8ce ("staging: fieldbus: arcx-anybus: change custom -> mmio regmap")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/staging/fieldbus/anybuss/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/fieldbus/anybuss/Kconfig b/drivers/staging/fieldbus/anybuss/Kconfig
index 8bc3d9a..635a0a7 100644
--- a/drivers/staging/fieldbus/anybuss/Kconfig
+++ b/drivers/staging/fieldbus/anybuss/Kconfig
@@ -14,6 +14,7 @@ if HMS_ANYBUSS_BUS
config ARCX_ANYBUS_CONTROLLER
tristate "Arcx Anybus-S Controller"
depends on OF && GPIOLIB && HAS_IOMEM && REGULATOR
+ select REGMAP_MMIO
help
Select this to get support for the Arcx Anybus controller.
It connects to the SoC via a parallel memory bus, and
--
2.7.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 13:32 [PATCH -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO YueHaibing
@ 2019-05-28 13:41 ` Sven Van Asbroeck
2019-05-28 14:10 ` YueHaibing
2019-05-28 14:29 ` [PATCH v2 " YueHaibing
0 siblings, 2 replies; 11+ messages in thread
From: Sven Van Asbroeck @ 2019-05-28 13:41 UTC (permalink / raw)
To: YueHaibing; +Cc: Greg KH, Linux Kernel Mailing List, devel
Hello YueHaibing,
On Tue, May 28, 2019 at 9:33 AM YueHaibing <yuehaibing@huawei.com> wrote:
>
> Fix gcc build error while CONFIG_REGMAP_MMIO is not set
>
> drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
> arcx-anybus.c:(.text+0x9d6): undefined reference to `__devm_regmap_init_mmio_clk'
>
> Select REGMAP_MMIO to fix it.
Thank you for noticing this, I appreciate it !
However, when I run this patch through the scripts/checkpatch.pl
script, it reports
some issues. Could you fix and post v2 please?
checkpatch.pl output follows:
WARNING: Possible unwrapped commit description (prefer a maximum 75
chars per line)
#68:
arcx-anybus.c:(.text+0x9d6): undefined reference to
`__devm_regmap_init_mmio_clk'
ERROR: DOS line endings
#87: FILE: drivers/staging/fieldbus/anybuss/Kconfig:17:
+^Iselect REGMAP_MMIO^M$
total: 1 errors, 1 warnings, 0 checks, 7 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
Your patch has style problems, please review.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 13:41 ` Sven Van Asbroeck
@ 2019-05-28 14:10 ` YueHaibing
2019-05-28 14:29 ` [PATCH v2 " YueHaibing
1 sibling, 0 replies; 11+ messages in thread
From: YueHaibing @ 2019-05-28 14:10 UTC (permalink / raw)
To: Sven Van Asbroeck; +Cc: Greg KH, Linux Kernel Mailing List, devel
On 2019/5/28 21:41, Sven Van Asbroeck wrote:
> Hello YueHaibing,
>
> On Tue, May 28, 2019 at 9:33 AM YueHaibing <yuehaibing@huawei.com> wrote:
>>
>> Fix gcc build error while CONFIG_REGMAP_MMIO is not set
>>
>> drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
>> arcx-anybus.c:(.text+0x9d6): undefined reference to `__devm_regmap_init_mmio_clk'
>>
>> Select REGMAP_MMIO to fix it.
>
> Thank you for noticing this, I appreciate it !
>
> However, when I run this patch through the scripts/checkpatch.pl
> script, it reports
> some issues. Could you fix and post v2 please?
>
> checkpatch.pl output follows:
>
> WARNING: Possible unwrapped commit description (prefer a maximum 75
> chars per line)
> #68:
> arcx-anybus.c:(.text+0x9d6): undefined reference to
> `__devm_regmap_init_mmio_clk'
>
> ERROR: DOS line endings
> #87: FILE: drivers/staging/fieldbus/anybuss/Kconfig:17:
> +^Iselect REGMAP_MMIO^M$
>
> total: 1 errors, 1 warnings, 0 checks, 7 lines checked
>
> NOTE: For some of the reported defects, checkpatch may be able to
> mechanically convert to the typical style using --fix or --fix-inplace.
>
> Your patch has style problems, please review.
Thanks, will fix it in v2.
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 13:41 ` Sven Van Asbroeck
2019-05-28 14:10 ` YueHaibing
@ 2019-05-28 14:29 ` YueHaibing
2019-05-28 14:35 ` Sven Van Asbroeck
2019-05-28 14:36 ` YueHaibing
1 sibling, 2 replies; 11+ messages in thread
From: YueHaibing @ 2019-05-28 14:29 UTC (permalink / raw)
To: TheSven73, gregkh; +Cc: linux-kernel, devel, YueHaibing
Fix gcc build error while CONFIG_REGMAP_MMIO is not set
drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
arcx-anybus.c: undefined reference to `__devm_regmap_init_mmio_clk'
Select REGMAP_MMIO to fix it.
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 2411a336c8ce ("staging: fieldbus: arcx-anybus: change custom -> mmio regmap")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
v2: fix patch style warning
---
drivers/staging/fieldbus/anybuss/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/fieldbus/anybuss/Kconfig b/drivers/staging/fieldbus/anybuss/Kconfig
index 8bc3d9a..635a0a7 100644
--- a/drivers/staging/fieldbus/anybuss/Kconfig
+++ b/drivers/staging/fieldbus/anybuss/Kconfig
@@ -14,6 +14,7 @@ if HMS_ANYBUSS_BUS
config ARCX_ANYBUS_CONTROLLER
tristate "Arcx Anybus-S Controller"
depends on OF && GPIOLIB && HAS_IOMEM && REGULATOR
+ select REGMAP_MMIO
help
Select this to get support for the Arcx Anybus controller.
It connects to the SoC via a parallel memory bus, and
--
2.7.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 14:29 ` [PATCH v2 " YueHaibing
@ 2019-05-28 14:35 ` Sven Van Asbroeck
2019-05-28 15:41 ` YueHaibing
2019-05-28 14:36 ` YueHaibing
1 sibling, 1 reply; 11+ messages in thread
From: Sven Van Asbroeck @ 2019-05-28 14:35 UTC (permalink / raw)
To: YueHaibing; +Cc: Greg KH, Linux Kernel Mailing List, devel
On Tue, May 28, 2019 at 10:31 AM YueHaibing <yuehaibing@huawei.com> wrote:
>
> Fix gcc build error while CONFIG_REGMAP_MMIO is not set
>
checkpatch.pl errors remain:
$ ./scripts/checkpatch.pl < ~/Downloads/YueHaibing.eml
ERROR: DOS line endings
#92: FILE: drivers/staging/fieldbus/anybuss/Kconfig:17:
+^Iselect REGMAP_MMIO^M$
total: 1 errors, 0 warnings, 0 checks, 7 lines checked
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 14:29 ` [PATCH v2 " YueHaibing
2019-05-28 14:35 ` Sven Van Asbroeck
@ 2019-05-28 14:36 ` YueHaibing
1 sibling, 0 replies; 11+ messages in thread
From: YueHaibing @ 2019-05-28 14:36 UTC (permalink / raw)
To: TheSven73, gregkh; +Cc: linux-kernel, devel
Sorry, this is broken, Pls igore this.
On 2019/5/28 22:29, YueHaibing wrote:
> Fix gcc build error while CONFIG_REGMAP_MMIO is not set
>
> drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
> arcx-anybus.c: undefined reference to `__devm_regmap_init_mmio_clk'
>
> Select REGMAP_MMIO to fix it.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Fixes: 2411a336c8ce ("staging: fieldbus: arcx-anybus: change custom -> mmio regmap")
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> v2: fix patch style warning
> ---
> drivers/staging/fieldbus/anybuss/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/fieldbus/anybuss/Kconfig b/drivers/staging/fieldbus/anybuss/Kconfig
> index 8bc3d9a..635a0a7 100644
> --- a/drivers/staging/fieldbus/anybuss/Kconfig
> +++ b/drivers/staging/fieldbus/anybuss/Kconfig
> @@ -14,6 +14,7 @@ if HMS_ANYBUSS_BUS
> config ARCX_ANYBUS_CONTROLLER
> tristate "Arcx Anybus-S Controller"
> depends on OF && GPIOLIB && HAS_IOMEM && REGULATOR
> + select REGMAP_MMIO
> help
> Select this to get support for the Arcx Anybus controller.
> It connects to the SoC via a parallel memory bus, and
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 14:35 ` Sven Van Asbroeck
@ 2019-05-28 15:41 ` YueHaibing
2019-05-28 15:59 ` Greg KH
0 siblings, 1 reply; 11+ messages in thread
From: YueHaibing @ 2019-05-28 15:41 UTC (permalink / raw)
To: Sven Van Asbroeck; +Cc: Greg KH, Linux Kernel Mailing List, devel
On 2019/5/28 22:35, Sven Van Asbroeck wrote:
> On Tue, May 28, 2019 at 10:31 AM YueHaibing <yuehaibing@huawei.com> wrote:
>>
>> Fix gcc build error while CONFIG_REGMAP_MMIO is not set
>>
>
> checkpatch.pl errors remain:
>
> $ ./scripts/checkpatch.pl < ~/Downloads/YueHaibing.eml
> ERROR: DOS line endings
> #92: FILE: drivers/staging/fieldbus/anybuss/Kconfig:17:
> +^Iselect REGMAP_MMIO^M$
This seems text/plain messages have crlf set when saved as .eml file,
I do check my v2 patch is not crlf ending, but when save as eml file in
my thunderbird, it becomes crlf ending.
>
> total: 1 errors, 0 warnings, 0 checks, 7 lines checked
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 15:41 ` YueHaibing
@ 2019-05-28 15:59 ` Greg KH
2019-05-28 17:31 ` Sven Van Asbroeck
0 siblings, 1 reply; 11+ messages in thread
From: Greg KH @ 2019-05-28 15:59 UTC (permalink / raw)
To: YueHaibing; +Cc: Sven Van Asbroeck, devel, Linux Kernel Mailing List
On Tue, May 28, 2019 at 11:41:57PM +0800, YueHaibing wrote:
> On 2019/5/28 22:35, Sven Van Asbroeck wrote:
> > On Tue, May 28, 2019 at 10:31 AM YueHaibing <yuehaibing@huawei.com> wrote:
> >>
> >> Fix gcc build error while CONFIG_REGMAP_MMIO is not set
> >>
> >
> > checkpatch.pl errors remain:
> >
> > $ ./scripts/checkpatch.pl < ~/Downloads/YueHaibing.eml
> > ERROR: DOS line endings
> > #92: FILE: drivers/staging/fieldbus/anybuss/Kconfig:17:
> > +^Iselect REGMAP_MMIO^M$
>
> This seems text/plain messages have crlf set when saved as .eml file,
>
> I do check my v2 patch is not crlf ending, but when save as eml file in
>
> my thunderbird, it becomes crlf ending.
You all need a better email client, mutt handles this just fine, it's
not a problem on my system with my workflow at all :)
So this patch looks fine to me from a formatting point of view. But
does it do what it says it does, that's up to Sven...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 15:59 ` Greg KH
@ 2019-05-28 17:31 ` Sven Van Asbroeck
2019-06-10 12:51 ` Sven Van Asbroeck
0 siblings, 1 reply; 11+ messages in thread
From: Sven Van Asbroeck @ 2019-05-28 17:31 UTC (permalink / raw)
To: Greg KH; +Cc: YueHaibing, devel, Linux Kernel Mailing List
On Tue, May 28, 2019 at 12:00 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> You all need a better email client, mutt handles this just fine, it's
> not a problem on my system with my workflow at all :)
Argh, my bad. I use Google Mail -> Download Message, which does
appear to mess up the endings. Luckily, dos2unix fixes it up just fine.
For the v2 patch:
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Thank you YueHaibing.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-05-28 17:31 ` Sven Van Asbroeck
@ 2019-06-10 12:51 ` Sven Van Asbroeck
2019-06-10 14:09 ` Greg KH
0 siblings, 1 reply; 11+ messages in thread
From: Sven Van Asbroeck @ 2019-06-10 12:51 UTC (permalink / raw)
To: Greg KH; +Cc: YueHaibing, devel, Linux Kernel Mailing List
Hello Greg, just a friendly ping regarding this patch. It got my Reviewed-by tag
two weeks ago, no further feedback from anyone. Is there anything you would
like us to do before queuing this?
Link to v2 that got the Reviewed-by:
https://lkml.org/lkml/2019/5/28/609
On Tue, May 28, 2019 at 1:31 PM Sven Van Asbroeck <thesven73@gmail.com> wrote:
> For the v2 patch:
> Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
2019-06-10 12:51 ` Sven Van Asbroeck
@ 2019-06-10 14:09 ` Greg KH
0 siblings, 0 replies; 11+ messages in thread
From: Greg KH @ 2019-06-10 14:09 UTC (permalink / raw)
To: Sven Van Asbroeck; +Cc: devel, YueHaibing, Linux Kernel Mailing List
On Mon, Jun 10, 2019 at 08:51:10AM -0400, Sven Van Asbroeck wrote:
> Hello Greg, just a friendly ping regarding this patch. It got my Reviewed-by tag
> two weeks ago, no further feedback from anyone. Is there anything you would
> like us to do before queuing this?
>
> Link to v2 that got the Reviewed-by:
> https://lkml.org/lkml/2019/5/28/609
>
> On Tue, May 28, 2019 at 1:31 PM Sven Van Asbroeck <thesven73@gmail.com> wrote:
> > For the v2 patch:
> > Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Odd, sorry, must have fell through the cracks, I'll pick it up now.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2019-06-10 14:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28 13:32 [PATCH -next] staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO YueHaibing
2019-05-28 13:41 ` Sven Van Asbroeck
2019-05-28 14:10 ` YueHaibing
2019-05-28 14:29 ` [PATCH v2 " YueHaibing
2019-05-28 14:35 ` Sven Van Asbroeck
2019-05-28 15:41 ` YueHaibing
2019-05-28 15:59 ` Greg KH
2019-05-28 17:31 ` Sven Van Asbroeck
2019-06-10 12:51 ` Sven Van Asbroeck
2019-06-10 14:09 ` Greg KH
2019-05-28 14:36 ` YueHaibing
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).