linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] watchdog: iTCO_wdt: Fix unmet dependency in select
@ 2015-09-25  8:10 Jean Delvare
  2015-09-25 13:29 ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2015-09-25  8:10 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Linux I2C, Jim Davis, Matt Fleming, Guenter Roeck, Lee Jones,
	Wim Van Sebroeck

ITCO_WDT selects I2C_I801 but does not select its dependencies (I2C.)
This can result in link-time failures:

drivers/built-in.o: In function `i801_remove':
i2c-i801.c:(.text+0x1a6126): undefined reference to `i2c_del_adapter'
drivers/built-in.o: In function `dmi_check_onboard_devices':
i2c-i801.c:(.text+0x1a7531): undefined reference to `i2c_new_device'
drivers/built-in.o: In function `i801_probe':
i2c-i801.c:(.text+0x1a7aa8): undefined reference to `i2c_add_adapter'
i2c-i801.c:(.text+0x1a7e14): undefined reference to `i2c_new_device'

So we must select I2C as well.

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 2a7a0e9bf7 ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint")
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Wim Van Sebroeck <wim@iguana.be>
---
 drivers/watchdog/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-4.3-rc2.orig/drivers/watchdog/Kconfig	2015-09-24 11:43:29.959432358 +0200
+++ linux-4.3-rc2/drivers/watchdog/Kconfig	2015-09-25 09:56:20.518840112 +0200
@@ -818,6 +818,7 @@ config ITCO_WDT
 	depends on (X86 || IA64) && PCI
 	select WATCHDOG_CORE
 	select LPC_ICH if !EXPERT
+	select I2C if !EXPERT
 	select I2C_I801 if !EXPERT
 	---help---
 	  Hardware driver for the intel TCO timer based watchdog devices.


-- 
Jean Delvare
SUSE L3 Support

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

* Re: [PATCH] watchdog: iTCO_wdt: Fix unmet dependency in select
  2015-09-25  8:10 [PATCH] watchdog: iTCO_wdt: Fix unmet dependency in select Jean Delvare
@ 2015-09-25 13:29 ` Guenter Roeck
       [not found]   ` <56054C2E.9010703-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2015-09-25 13:29 UTC (permalink / raw)
  To: Jean Delvare, linux-watchdog
  Cc: Linux I2C, Jim Davis, Matt Fleming, Lee Jones, Wim Van Sebroeck

On 09/25/2015 01:10 AM, Jean Delvare wrote:
> ITCO_WDT selects I2C_I801 but does not select its dependencies (I2C.)
> This can result in link-time failures:
>
> drivers/built-in.o: In function `i801_remove':
> i2c-i801.c:(.text+0x1a6126): undefined reference to `i2c_del_adapter'
> drivers/built-in.o: In function `dmi_check_onboard_devices':
> i2c-i801.c:(.text+0x1a7531): undefined reference to `i2c_new_device'
> drivers/built-in.o: In function `i801_probe':
> i2c-i801.c:(.text+0x1a7aa8): undefined reference to `i2c_add_adapter'
> i2c-i801.c:(.text+0x1a7e14): undefined reference to `i2c_new_device'
>
> So we must select I2C as well.
>
> Reported-by: Jim Davis <jim.epost@gmail.com>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Fixes: 2a7a0e9bf7 ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint")
> Cc: Matt Fleming <matt.fleming@intel.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Wim Van Sebroeck <wim@iguana.be>
> ---
>   drivers/watchdog/Kconfig |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-4.3-rc2.orig/drivers/watchdog/Kconfig	2015-09-24 11:43:29.959432358 +0200
> +++ linux-4.3-rc2/drivers/watchdog/Kconfig	2015-09-25 09:56:20.518840112 +0200
> @@ -818,6 +818,7 @@ config ITCO_WDT
>   	depends on (X86 || IA64) && PCI
>   	select WATCHDOG_CORE
>   	select LPC_ICH if !EXPERT
> +	select I2C if !EXPERT
>   	select I2C_I801 if !EXPERT
>   	---help---
>   	  Hardware driver for the intel TCO timer based watchdog devices.
>
>

I had fixed the problem differently, similar to other drivers.

http://patchwork.roeck-us.net/patch/239/

Waiting for Wim to apply it.

Guenter

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

* Re: [PATCH] watchdog: iTCO_wdt: Fix unmet dependency in select
       [not found]   ` <56054C2E.9010703-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2015-09-25 14:02     ` Jean Delvare
       [not found]       ` <1443189749.4919.2.camel-H7Kp9ZFCxt/N0uC3ymp8PA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2015-09-25 14:02 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Linux I2C, Jim Davis,
	Matt Fleming, Lee Jones, Wim Van Sebroeck

Hi Guenter,

Le Friday 25 September 2015 à 06:29 -0700, Guenter Roeck a écrit :
> On 09/25/2015 01:10 AM, Jean Delvare wrote:
> > ITCO_WDT selects I2C_I801 but does not select its dependencies (I2C.)
> > This can result in link-time failures:
> >
> > drivers/built-in.o: In function `i801_remove':
> > i2c-i801.c:(.text+0x1a6126): undefined reference to `i2c_del_adapter'
> > drivers/built-in.o: In function `dmi_check_onboard_devices':
> > i2c-i801.c:(.text+0x1a7531): undefined reference to `i2c_new_device'
> > drivers/built-in.o: In function `i801_probe':
> > i2c-i801.c:(.text+0x1a7aa8): undefined reference to `i2c_add_adapter'
> > i2c-i801.c:(.text+0x1a7e14): undefined reference to `i2c_new_device'
> >
> > So we must select I2C as well.
> >
> > Reported-by: Jim Davis <jim.epost-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > Signed-off-by: Jean Delvare <jdelvare-l3A5Bk7waGM@public.gmane.org>
> > Fixes: 2a7a0e9bf7 ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint")
> > Cc: Matt Fleming <matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> > Cc: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > Cc: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
> > ---
> >   drivers/watchdog/Kconfig |    2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- linux-4.3-rc2.orig/drivers/watchdog/Kconfig	2015-09-24 11:43:29.959432358 +0200
> > +++ linux-4.3-rc2/drivers/watchdog/Kconfig	2015-09-25 09:56:20.518840112 +0200
> > @@ -818,6 +818,7 @@ config ITCO_WDT
> >   	depends on (X86 || IA64) && PCI
> >   	select WATCHDOG_CORE
> >   	select LPC_ICH if !EXPERT
> > +	select I2C if !EXPERT
> >   	select I2C_I801 if !EXPERT
> >   	---help---
> >   	  Hardware driver for the intel TCO timer based watchdog devices.
> >
> >
> 
> I had fixed the problem differently, similar to other drivers.
> 
> http://patchwork.roeck-us.net/patch/239/

404 Not Found?

> Waiting for Wim to apply it.

-- 
Jean Delvare
SUSE L3 Support

--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] watchdog: iTCO_wdt: Fix unmet dependency in select
       [not found]       ` <1443189749.4919.2.camel-H7Kp9ZFCxt/N0uC3ymp8PA@public.gmane.org>
@ 2015-09-25 14:45         ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2015-09-25 14:45 UTC (permalink / raw)
  To: Jean Delvare
  Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Linux I2C, Jim Davis,
	Matt Fleming, Lee Jones, Wim Van Sebroeck

On 09/25/2015 07:02 AM, Jean Delvare wrote:
> Hi Guenter,
>
> Le Friday 25 September 2015 à 06:29 -0700, Guenter Roeck a écrit :
>> On 09/25/2015 01:10 AM, Jean Delvare wrote:
>>> ITCO_WDT selects I2C_I801 but does not select its dependencies (I2C.)
>>> This can result in link-time failures:
>>>
>>> drivers/built-in.o: In function `i801_remove':
>>> i2c-i801.c:(.text+0x1a6126): undefined reference to `i2c_del_adapter'
>>> drivers/built-in.o: In function `dmi_check_onboard_devices':
>>> i2c-i801.c:(.text+0x1a7531): undefined reference to `i2c_new_device'
>>> drivers/built-in.o: In function `i801_probe':
>>> i2c-i801.c:(.text+0x1a7aa8): undefined reference to `i2c_add_adapter'
>>> i2c-i801.c:(.text+0x1a7e14): undefined reference to `i2c_new_device'
>>>
>>> So we must select I2C as well.
>>>
>>> Reported-by: Jim Davis <jim.epost-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>> Signed-off-by: Jean Delvare <jdelvare-l3A5Bk7waGM@public.gmane.org>
>>> Fixes: 2a7a0e9bf7 ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint")
>>> Cc: Matt Fleming <matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>>> Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
>>> Cc: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>>> Cc: Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
>>> ---
>>>    drivers/watchdog/Kconfig |    2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> --- linux-4.3-rc2.orig/drivers/watchdog/Kconfig	2015-09-24 11:43:29.959432358 +0200
>>> +++ linux-4.3-rc2/drivers/watchdog/Kconfig	2015-09-25 09:56:20.518840112 +0200
>>> @@ -818,6 +818,7 @@ config ITCO_WDT
>>>    	depends on (X86 || IA64) && PCI
>>>    	select WATCHDOG_CORE
>>>    	select LPC_ICH if !EXPERT
>>> +	select I2C if !EXPERT
>>>    	select I2C_I801 if !EXPERT
>>>    	---help---
>>>    	  Hardware driver for the intel TCO timer based watchdog devices.
>>>
>>>
>>
>> I had fixed the problem differently, similar to other drivers.
>>
>> http://patchwork.roeck-us.net/patch/239/
>
> 404 Not Found?
>

Interesting. WFM. Maybe I don't publish it to the outside world.
Here is a different link:

https://lkml.org/lkml/2015/9/11/343

Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-09-25 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-25  8:10 [PATCH] watchdog: iTCO_wdt: Fix unmet dependency in select Jean Delvare
2015-09-25 13:29 ` Guenter Roeck
     [not found]   ` <56054C2E.9010703-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2015-09-25 14:02     ` Jean Delvare
     [not found]       ` <1443189749.4919.2.camel-H7Kp9ZFCxt/N0uC3ymp8PA@public.gmane.org>
2015-09-25 14:45         ` Guenter Roeck

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).