All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog: change ITCO_WDT type from tristate to bool
       [not found] <0038B620BAC72941BCBF48AEB892976C02CADE91@shsmsx102.ccr.corp.intel.com>
@ 2018-07-02  8:18 ` Tian, Baofeng
  2018-07-02 13:16   ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Tian, Baofeng @ 2018-07-02  8:18 UTC (permalink / raw)
  To: wim, linux, linux-watchdog, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

From: "Tian, Baofeng" <baofeng.tian@intel.com<mailto:baofeng.tian@intel.com>>
Subject: [PATCH] watchdog: change ITCO_WDT type from tristate to bool

tristate will allow kernel config it to M and build ko file,
this will cause build allmodconfig errors as necessary
symbols have not been exported.
change it to bool, only allow config ITCO_WDT to yes/no.

Signed-off-by: Tian, Baofeng <baofeng.tian@intel.com<mailto:baofeng.tian@intel.com>>
---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 9af07fd..f991e93 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1049,7 +1049,7 @@ config INTEL_MID_WATCHDOG
        To compile this driver as a module, choose M here.

 config ITCO_WDT
-     tristate "Intel TCO Timer/Watchdog"
+     bool "Intel TCO Timer/Watchdog"
      depends on (X86 || IA64) && PCI
      select WATCHDOG_CORE
      depends on I2C || I2C=n
--
2.7.4


[-- Attachment #2: Type: text/html, Size: 3813 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] watchdog: change ITCO_WDT type from tristate to bool
  2018-07-02  8:18 ` [PATCH] watchdog: change ITCO_WDT type from tristate to bool Tian, Baofeng
@ 2018-07-02 13:16   ` Guenter Roeck
  2018-07-05  6:21     ` Tian, Baofeng
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2018-07-02 13:16 UTC (permalink / raw)
  To: Tian, Baofeng, wim, linux-watchdog, linux-kernel

On 07/02/2018 01:18 AM, Tian, Baofeng wrote:
> From: "Tian, Baofeng" <baofeng.tian@intel.com <mailto:baofeng.tian@intel.com>>
> Subject: [PATCH] watchdog: change ITCO_WDT type from tristate to bool
> 
> tristate will allow kernel config it to M and build ko file,
> this will cause build allmodconfig errors as necessary
> symbols have not been exported.
> change it to bool, only allow config ITCO_WDT to yes/no.
> 
> Signed-off-by: Tian, Baofeng <baofeng.tian@intel.com <mailto:baofeng.tian@intel.com>>

This works today. I don't see a point changing it, and I am wary doing so.
There are systems where the iTCO watchdog doesn't work (I own one of those),
even though it instantiates, and I am wary of force-loading it.

Besides, you don't explain which "necessary symbols have not been exported".
I do not plan to spend time trying to find out what those symbols are, and
why this would suddenly be a problem.

Guenter

> ---
>   drivers/watchdog/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index 9af07fd..f991e93 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -1049,7 +1049,7 @@ config INTEL_MID_WATCHDOG
>          To compile this driver as a module, choose M here.
> 
>   config ITCO_WDT
> -     tristate "Intel TCO Timer/Watchdog"
> +     bool "Intel TCO Timer/Watchdog"
>        depends on (X86 || IA64) && PCI
>        select WATCHDOG_CORE
>        depends on I2C || I2C=n
> -- 
> 2.7.4
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] watchdog: change ITCO_WDT type from tristate to bool
  2018-07-02 13:16   ` Guenter Roeck
@ 2018-07-05  6:21     ` Tian, Baofeng
  0 siblings, 0 replies; 3+ messages in thread
From: Tian, Baofeng @ 2018-07-05  6:21 UTC (permalink / raw)
  To: Guenter Roeck, wim, linux-watchdog, linux-kernel

Hi, Roeck

Yes, this patch submitted more than 1 year ago in our internal tree, I just tested latest 4.18 kernel, even without this patch, there is no error.
So I am ok to reject this patch.

Thanks
Tim

-----Original Message-----
From: Guenter Roeck [mailto:groeck7@gmail.com] On Behalf Of Guenter Roeck
Sent: Monday, July 2, 2018 9:17 PM
To: Tian, Baofeng <baofeng.tian@intel.com>; wim@linux-watchdog.org; linux-watchdog@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH] watchdog: change ITCO_WDT type from tristate to bool

On 07/02/2018 01:18 AM, Tian, Baofeng wrote:
> From: "Tian, Baofeng" <baofeng.tian@intel.com 
> <mailto:baofeng.tian@intel.com>>
> Subject: [PATCH] watchdog: change ITCO_WDT type from tristate to bool
> 
> tristate will allow kernel config it to M and build ko file, this will 
> cause build allmodconfig errors as necessary symbols have not been 
> exported.
> change it to bool, only allow config ITCO_WDT to yes/no.
> 
> Signed-off-by: Tian, Baofeng <baofeng.tian@intel.com 
> <mailto:baofeng.tian@intel.com>>

This works today. I don't see a point changing it, and I am wary doing so.
There are systems where the iTCO watchdog doesn't work (I own one of those), even though it instantiates, and I am wary of force-loading it.

Besides, you don't explain which "necessary symbols have not been exported".
I do not plan to spend time trying to find out what those symbols are, and why this would suddenly be a problem.

Guenter

> ---
>   drivers/watchdog/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 
> 9af07fd..f991e93 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -1049,7 +1049,7 @@ config INTEL_MID_WATCHDOG
>          To compile this driver as a module, choose M here.
> 
>   config ITCO_WDT
> -     tristate "Intel TCO Timer/Watchdog"
> +     bool "Intel TCO Timer/Watchdog"
>        depends on (X86 || IA64) && PCI
>        select WATCHDOG_CORE
>        depends on I2C || I2C=n
> --
> 2.7.4
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-05  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0038B620BAC72941BCBF48AEB892976C02CADE91@shsmsx102.ccr.corp.intel.com>
2018-07-02  8:18 ` [PATCH] watchdog: change ITCO_WDT type from tristate to bool Tian, Baofeng
2018-07-02 13:16   ` Guenter Roeck
2018-07-05  6:21     ` Tian, Baofeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.