Skip to contentSkip to conversation

linux-next: build failure after merge of the watchdog tree

DISCUSSION Stephen Rothwell 3 participants 8 messages Sep 26, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Wim,

After merging the watchdog tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/watchdog/meson_wdt.c: In function 'meson_wdt_probe':
drivers/watchdog/meson_wdt.c:178:2: error: implicit declaration of function 'register_restart_handler' [-Werror=implicit-function-declaration]
err = register_restart_handler(&meson_wdt->restart_handler);
^
drivers/watchdog/meson_wdt.c: In function 'meson_wdt_remove':
drivers/watchdog/meson_wdt.c:193:2: error: implicit declaration of function 'unregister_restart_handler' [-Werror=implicit-function-declaration]
unregister_restart_handler(&meson_wdt->restart_handler);
^

Caused by commit 575f4153957b ("ARM: meson: add watchdog driver").

I have reverted that commit for today.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 15 lines · Stephen Rothwell

Hi Wim,

After merging the watchdog tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/watchdog/meson_wdt.c: In function 'meson_wdt_probe':
drivers/watchdog/meson_wdt.c:178:2: error: implicit declaration of function 'register_restart_handler' [-Werror=implicit-function-declaration]

   err = register_restart_handler(&meson_wdt->restart_handler);
   ^
drivers/watchdog/meson_wdt.c: In function 'meson_wdt_remove':
drivers/watchdog/meson_wdt.c:193:2: error: implicit declaration of function 'unregister_restart_handler' [-Werror=implicit-function-declaration]
   unregister_restart_handler(&meson_wdt->restart_handler);
   ^
Quoted 4 lines

Caused by commit 575f4153957b ("ARM: meson: add watchdog driver").

I have reverted that commit for today.

Those functions are defined by patches which reside in Andrew's tree. Is that merged later ?

Guenter

#2 lore raw

Hi Guenter,

Quoted 17 lines · On Thu, 25 Sep 2014 22:51:28 -0700 Guenter Roeck <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell

Hi Wim,

After merging the watchdog tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/watchdog/meson_wdt.c: In function 'meson_wdt_probe':
drivers/watchdog/meson_wdt.c:178:2: error: implicit declaration of function 'register_restart_handler' [-Werror=implicit-function-declaration]

   err = register_restart_handler(&meson_wdt->restart_handler);
   ^
drivers/watchdog/meson_wdt.c: In function 'meson_wdt_remove':
drivers/watchdog/meson_wdt.c:193:2: error: implicit declaration of function 'unregister_restart_handler' [-Werror=implicit-function-declaration]
   unregister_restart_handler(&meson_wdt->restart_handler);
   ^
Quoted 7 lines
Quoted 4 lines

Caused by commit 575f4153957b ("ARM: meson: add watchdog driver").

I have reverted that commit for today.

Those functions are defined by patches which reside in Andrew's tree. Is that merged later ?

Yes, Andrew's tree is merged last and part of it depends on linux-next itself ...

We really don't want these inter tree dependencies (especially with Andrew's tree).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#3 lore raw
Quoted 25 lines · Stephen Rothwell

Hi Guenter,

Quoted 22 lines · On Thu, 25 Sep 2014 22:51:28 -0700 Guenter Roeck <[email protected]> wrote:
Quoted 19 lines · Stephen Rothwell

Hi Wim,

After merging the watchdog tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/watchdog/meson_wdt.c: In function 'meson_wdt_probe':
drivers/watchdog/meson_wdt.c:178:2: error: implicit declaration of function 'register_restart_handler' [-Werror=implicit-function-declaration]

    err = register_restart_handler(&meson_wdt->restart_handler);
    ^
drivers/watchdog/meson_wdt.c: In function 'meson_wdt_remove':
drivers/watchdog/meson_wdt.c:193:2: error: implicit declaration of function 'unregister_restart_handler' [-Werror=implicit-function-declaration]
    unregister_restart_handler(&meson_wdt->restart_handler);
    ^

Caused by commit 575f4153957b ("ARM: meson: add watchdog driver").

I have reverted that commit for today.

Quoted 9 lines
Quoted 2 lines

Those functions are defined by patches which reside in Andrew's tree. Is that merged later ?

Yes, Andrew's tree is merged last and part of it depends on linux-next itself ...

We really don't want these inter tree dependencies (especially with Andrew's tree).

Me not either. Question was how to get the restart handler patch set upstream. Pushing it indirectly through merges of an immutable branch sounds like a good idea, especially since there are by now patches in at least three subsystems pending which depend on it.

Guenter

#4 lore raw
In reply to Stephen Rothwell
Quoted 6 lines · Stephen Rothwell

Hi Wim,

After merging the watchdog tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

Quoted 9 lines

drivers/watchdog/meson_wdt.c: In function 'meson_wdt_probe':
drivers/watchdog/meson_wdt.c:178:2: error: implicit declaration of function 'register_restart_handler' [-Werror=implicit-function-declaration]
err = register_restart_handler(&meson_wdt->restart_handler);
^
drivers/watchdog/meson_wdt.c: In function 'meson_wdt_remove':
drivers/watchdog/meson_wdt.c:193:2: error: implicit declaration of function 'unregister_restart_handler' [-Werror=implicit-function-declaration]
unregister_restart_handler(&meson_wdt->restart_handler);
^

This is because Guenter Roeck's restart_notifier mechanism [1] has not yet made it to linux-next.

Oh yes, I checked it now its already pulled in master branch of linux-next.

Quoted 4 lines

Caused by commit 575f4153957b ("ARM: meson: add watchdog driver").

I have reverted that commit for today.

[1]: https://patchwork.kernel.org/patch/4746721/

Thanks
Pramod

#5 lore raw
Quoted 16 lines · Pramod Gurav
Quoted 6 lines · Stephen Rothwell

Hi Wim,

After merging the watchdog tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

Quoted 9 lines

drivers/watchdog/meson_wdt.c: In function 'meson_wdt_probe':
drivers/watchdog/meson_wdt.c:178:2: error: implicit declaration of function 'register_restart_handler' [-Werror=implicit-function-declaration]

   err = register_restart_handler(&meson_wdt->restart_handler);
   ^
drivers/watchdog/meson_wdt.c: In function 'meson_wdt_remove':
drivers/watchdog/meson_wdt.c:193:2: error: implicit declaration of function 'unregister_restart_handler' [-Werror=implicit-function-declaration]
   unregister_restart_handler(&meson_wdt->restart_handler);
   ^
Quoted 3 lines

This is because Guenter Roeck's restart_notifier mechanism [1] has not yet made it to linux-next.

No, that isn't it; it is there, coming from Andrew Morton's tree. I think the problem is that the functions are not in Wim's tree, and neither is ARCH_MESON. For this reason, the driver does not build in Wim's tree, nor in my tree, which in turn explains why we don't see the error. Maybe Stephen merges Andrew's tree after the watchdog tree, and builds the watchdog code immediately after pulling it. If the MESON code is already merged at that time we would see that error.

Question is how to handle that kind of situation. An idea, anyone ?

Someone suggested that I should create an immutable tree with the restart handler patchset, which everyone using the restart handlers could merge. Is that an option ? I could technically do that, but I would want to pick the patches from Andrew's tree to retain his sign-off. Andrew, any thoughts/comments ?

Thanks,
Guenter

#6 lore raw

Hi Guenter,

Quoted 6 lines · On Thu, 25 Sep 2014 23:12:01 -0700 Guenter Roeck <[email protected]> wrote:

Someone suggested that I should create an immutable tree with the restart handler patchset, which everyone using the restart handlers could merge. Is that an option ? I could technically do that, but I would want to pick the patches from Andrew's tree to retain his sign-off. Andrew, any thoughts/comments ?

That is exactly what you should do.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#7 lore raw
Quoted 4 lines · Stephen Rothwell

Hi Guenter,

Quoted 1 line · On Thu, 25 Sep 2014 23:12:01 -0700 Guenter Roeck <[email protected]> wrote:
Quoted 8 lines
Quoted 5 lines

Someone suggested that I should create an immutable tree with the restart handler patchset, which everyone using the restart handlers could merge. Is that an option ? I could technically do that, but I would want to pick the patches from Andrew's tree to retain his sign-off. Andrew, any thoughts/comments ?

That is exactly what you should do.

Ok, I'll do that first thing tomorrow morning.

Guenter