linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kuo, Hsuan-Chi" <hckuo2@illinois.edu>
To: "linux-watchdog@vger.kernel.org" <linux-watchdog@vger.kernel.org>
Subject: watchdog: Missing Kconfig dependency for CONFIG_WATCHDOG_PRETIMEOUT_GOV and CONFIG_WATCHDOG_CORE
Date: Mon, 11 Mar 2019 21:45:24 +0000	[thread overview]
Message-ID: <00e44870397dd49a9c9989d6c22eabe650f5b9ca.camel@illinois.edu> (raw)

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!

             reply	other threads:[~2019-03-11 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 21:45 Kuo, Hsuan-Chi [this message]
2019-03-11 23:53 ` watchdog: Missing Kconfig dependency for CONFIG_WATCHDOG_PRETIMEOUT_GOV and CONFIG_WATCHDOG_CORE Vladimir Zapolskiy

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=00e44870397dd49a9c9989d6c22eabe650f5b9ca.camel@illinois.edu \
    --to=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).