[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a02386a9-041b-a351-643f-ba0b6e91bab3@roeck-us.net>
Date: Sat, 8 Feb 2020 06:22:46 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Marco Felsch <m.felsch@...gutronix.de>
Cc: Wim Van Sebroeck <wim@...ux-watchdog.org>,
linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org,
Adam Thomson <Adam.Thomson.Opensource@...semi.com>,
Stefan Lengfeld <contact@...fanchrist.eu>
Subject: Re: [PATCH] watchdog: da9062: Add dependency on I2C
On 2/8/20 6:01 AM, Marco Felsch wrote:
> Hi,
>
> On 20-02-08 05:08, Guenter Roeck wrote:
>> Since commit 057b52b4b3d58 ("watchdog: da9062: make restart handler atomic
>> safe"), the driver calls i2c functions directly. It now therefore depends
>> on I2C. This is a hard dependency which overrides COMPILE_TEST.
>
> I just wondered why it doesn't complain if no regmap support is on and
> surprise it provides stubs ^^ Is it worth to add i2c stubs too?
>
I'd rather not go there. In practice it doesn't make much of a difference -
it just ensures that COMPILE_TEST can run on architectures which don't
support I2C. I think 0day only finds it because they select COMPILE_TEST
and then selectively disable I2C (and maybe other configuration options)
to catch problems like this.
Guenter
Powered by blists - more mailing lists