From: Vladimir Zapolskiy <vz@mleia.com>
To: "Kuo, Hsuan-Chi" <hckuo2@illinois.edu>,
"linux-watchdog@vger.kernel.org" <linux-watchdog@vger.kernel.org>
Subject: Re: watchdog: Missing Kconfig dependency for CONFIG_WATCHDOG_PRETIMEOUT_GOV and CONFIG_WATCHDOG_CORE
Date: Tue, 12 Mar 2019 01:53:52 +0200 [thread overview]
Message-ID: <3d9b307e-74a3-7f6d-9a50-946b3319a5bc@mleia.com> (raw)
In-Reply-To: <00e44870397dd49a9c9989d6c22eabe650f5b9ca.camel@illinois.edu>
Hi,
On 03/11/2019 11:45 PM, Kuo, Hsuan-Chi wrote:
> Hi,
>
> I compiled my kernel with CONFIG_WATCHDOG_PRETIMEOUT_GOV=y and
> CONFIG_WATCHDOG_CORE=n and encountered compilation errors. I later
> found in the Makefile that it's because CONFIG_WATCHDOG_CORE is not
> enabled hence watchdog.o is not compiled, however, the Kconfig misses
> this dependency. I sent this email to confirm if this is a bug and
> hopfully someone can fix it.
>
> Snippet for the Makefile
> ```
> # Makefile for the WatchDog device drivers.
> #
>
> # The WatchDog Timer Driver Core.
> obj-$(CONFIG_WATCHDOG_CORE) += watchdog.o
>
> watchdog-objs += watchdog_core.o watchdog_dev.o
>
> watchdog-$(CONFIG_WATCHDOG_PRETIMEOUT_GOV) += watchdog_pretimeout.o
>
> obj-$(CONFIG_WATCHDOG_PRETIMEOUT_GOV_NOOP) += pretimeout_noop.o
> obj-$(CONFIG_WATCHDOG_PRETIMEOUT_GOV_PANIC) += pretimeout_panic.o
> ```
>
> Snippet for the Kconfig
> ```
> config WATCHDOG_PRETIMEOUT_GOV
> bool "Enable watchdog pretimeout governors"
> help
> The option allows to select watchdog pretimeout governors.
> ```
>
> Compilation errors
> ```
> ld: drivers/watchdog/pretimeout_noop.o: in function
> `watchdog_gov_noop_unregister':
> pretimeout_noop.c:(.exit.text+0x8): undefined reference to
> `watchdog_unregister_governor'
> ld: drivers/watchdog/pretimeout_noop.o: in function
> `watchdog_gov_noop_register':
> pretimeout_noop.c:(.init.text+0xd): undefined reference to
> `watchdog_register_governor'
> ld: drivers/watchdog/pretimeout_panic.o: in function
> `watchdog_gov_panic_unregister':
> pretimeout_panic.c:(.exit.text+0x8): undefined reference to
> `watchdog_unregister_governor'
> ld: drivers/watchdog/pretimeout_panic.o: in function
> `watchdog_gov_panic_register':
> pretimeout_panic.c:(.init.text+0xd): undefined reference to
> `watchdog_register_governor'
> ```
>
> Thank you!
>
this is a valid bug report, thank you for the finding!
I'll send a fix shortly.
--
Best wishes,
Vladimir
prev parent reply other threads:[~2019-03-11 23:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-11 21:45 watchdog: Missing Kconfig dependency for CONFIG_WATCHDOG_PRETIMEOUT_GOV and CONFIG_WATCHDOG_CORE Kuo, Hsuan-Chi
2019-03-11 23:53 ` Vladimir Zapolskiy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3d9b307e-74a3-7f6d-9a50-946b3319a5bc@mleia.com \
--to=vz@mleia.com \
--cc=hckuo2@illinois.edu \
--cc=linux-watchdog@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).