2021-05-14 18:42:17

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module

On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
> When rt2880_wdt watchdog driver is built as a module, the
> rt_sysc_membase needs to be exported (it is being used via inlined
> rt_sysc_r32):
>
> ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!
>
> Reported-by: kernel test robot <[email protected]>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Acked-by: Guenter Roeck <[email protected]>

I don't see a recent change in the code. Has that problem been there
all along ?

Thanks,
Guenter

> ---
> arch/mips/ralink/of.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
> index 0c5de07da097..b3ce706426c4 100644
> --- a/arch/mips/ralink/of.c
> +++ b/arch/mips/ralink/of.c
> @@ -24,6 +24,8 @@
> #include "common.h"
>
> __iomem void *rt_sysc_membase;
> +EXPORT_SYMBOL_GPL(rt_sysc_membase);
> +
> __iomem void *rt_memc_membase;
>
> __iomem void *plat_of_remap_node(const char *node)
>



2021-05-14 18:57:37

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module

On 14/05/2021 09:48, Guenter Roeck wrote:
> On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
>> When rt2880_wdt watchdog driver is built as a module, the
>> rt_sysc_membase needs to be exported (it is being used via inlined
>> rt_sysc_r32):
>>
>> ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!
>>
>> Reported-by: kernel test robot <[email protected]>
>> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>
> Acked-by: Guenter Roeck <[email protected]>
>
> I don't see a recent change in the code. Has that problem been there
> all along ?

I think the problem was there always but 0-day builder did not hit it
until recently:
https://lore.kernel.org/lkml/[email protected]/


Best regards,
Krzysztof

2021-05-15 02:19:02

by John Crispin

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module


On 14.05.21 15:48, Guenter Roeck wrote:
> On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
>> When rt2880_wdt watchdog driver is built as a module, the
>> rt_sysc_membase needs to be exported (it is being used via inlined
>> rt_sysc_r32):
>>
>>    ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko]
>> undefined!
>>
>> Reported-by: kernel test robot <[email protected]>
>> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>
> Acked-by: Guenter Roeck <[email protected]>
>
> I don't see a recent change in the code. Has that problem been there
> all along ?
>
>
yes it has ...

Acked-by: John Crispin <[email protected]>


2021-07-05 15:16:21

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module

On 14/05/2021 16:04, Krzysztof Kozlowski wrote:
> On 14/05/2021 09:48, Guenter Roeck wrote:
>> On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
>>> When rt2880_wdt watchdog driver is built as a module, the
>>> rt_sysc_membase needs to be exported (it is being used via inlined
>>> rt_sysc_r32):
>>>
>>> ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!
>>>
>>> Reported-by: kernel test robot <[email protected]>
>>> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>>
>> Acked-by: Guenter Roeck <[email protected]>
>>
>> I don't see a recent change in the code. Has that problem been there
>> all along ?
>
> I think the problem was there always but 0-day builder did not hit it
> until recently:
> https://lore.kernel.org/lkml/[email protected]/

Hi Guenter,

It seems that patch was not applied. Anything to fix here?


Best regards,
Krzysztof

2021-07-05 16:12:12

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module

On 7/5/21 8:15 AM, Krzysztof Kozlowski wrote:
> On 14/05/2021 16:04, Krzysztof Kozlowski wrote:
>> On 14/05/2021 09:48, Guenter Roeck wrote:
>>> On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
>>>> When rt2880_wdt watchdog driver is built as a module, the
>>>> rt_sysc_membase needs to be exported (it is being used via inlined
>>>> rt_sysc_r32):
>>>>
>>>> ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!
>>>>
>>>> Reported-by: kernel test robot <[email protected]>
>>>> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>>>
>>> Acked-by: Guenter Roeck <[email protected]>
>>>
>>> I don't see a recent change in the code. Has that problem been there
>>> all along ?
>>
>> I think the problem was there always but 0-day builder did not hit it
>> until recently:
>> https://lore.kernel.org/lkml/[email protected]/
>
> Hi Guenter,
>
> It seems that patch was not applied. Anything to fix here?
>
I see commit fef532ea0cd8 ("MIPS: ralink: export rt_sysc_membase for
rt2880_wdt.c"). Does that not solve the problem ?

Guenter

2021-07-05 16:23:27

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module

On Mon, 5 Jul 2021 at 18:08, Guenter Roeck <[email protected]> wrote:
>
> On 7/5/21 8:15 AM, Krzysztof Kozlowski wrote:
> > On 14/05/2021 16:04, Krzysztof Kozlowski wrote:
> >> On 14/05/2021 09:48, Guenter Roeck wrote:
> >>> On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
> >>>> When rt2880_wdt watchdog driver is built as a module, the
> >>>> rt_sysc_membase needs to be exported (it is being used via inlined
> >>>> rt_sysc_r32):
> >>>>
> >>>> ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!
> >>>>
> >>>> Reported-by: kernel test robot <[email protected]>
> >>>> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> >>>
> >>> Acked-by: Guenter Roeck <[email protected]>
> >>>
> >>> I don't see a recent change in the code. Has that problem been there
> >>> all along ?
> >>
> >> I think the problem was there always but 0-day builder did not hit it
> >> until recently:
> >> https://lore.kernel.org/lkml/[email protected]/
> >
> > Hi Guenter,
> >
> > It seems that patch was not applied. Anything to fix here?
> >
> I see commit fef532ea0cd8 ("MIPS: ralink: export rt_sysc_membase for
> rt2880_wdt.c"). Does that not solve the problem ?

Yes, that fixes it. It was sent later, though. :(

Anyway, thanks!

Best regards,
Krzysztof

2021-07-05 16:34:20

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module

On 7/5/21 9:21 AM, Krzysztof Kozlowski wrote:
> On Mon, 5 Jul 2021 at 18:08, Guenter Roeck <[email protected]> wrote:
>>
>> On 7/5/21 8:15 AM, Krzysztof Kozlowski wrote:
>>> On 14/05/2021 16:04, Krzysztof Kozlowski wrote:
>>>> On 14/05/2021 09:48, Guenter Roeck wrote:
>>>>> On 5/14/21 6:17 AM, Krzysztof Kozlowski wrote:
>>>>>> When rt2880_wdt watchdog driver is built as a module, the
>>>>>> rt_sysc_membase needs to be exported (it is being used via inlined
>>>>>> rt_sysc_r32):
>>>>>>
>>>>>> ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!
>>>>>>
>>>>>> Reported-by: kernel test robot <[email protected]>
>>>>>> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>>>>>
>>>>> Acked-by: Guenter Roeck <[email protected]>
>>>>>
>>>>> I don't see a recent change in the code. Has that problem been there
>>>>> all along ?
>>>>
>>>> I think the problem was there always but 0-day builder did not hit it
>>>> until recently:
>>>> https://lore.kernel.org/lkml/[email protected]/
>>>
>>> Hi Guenter,
>>>
>>> It seems that patch was not applied. Anything to fix here?
>>>
>> I see commit fef532ea0cd8 ("MIPS: ralink: export rt_sysc_membase for
>> rt2880_wdt.c"). Does that not solve the problem ?
>
> Yes, that fixes it. It was sent later, though. :(
>

Happens to me all the time. What is important is that things are getting
fixed. Personally I don't care that much for the credit.

Note though that your patch subject was a bit misleading, and it may well
be possible that the mips maintainers didn't realize that the fix needed
to be applied to the mips tree. The subject line in the applied patch
describes the change much better as it focuses on the change (what is done),
while the subject line in your patch focuses on the impact (what it fixes).

Guenter