linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: Jiri Kosina <jikos@kernel.org>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	"open list:HID CORE LAYER" <linux-input@vger.kernel.org>,
	kbuild test robot <lkp@intel.com>
Subject: Re: [PATCH] HID: logitech: Add depends on LEDS_CLASS to Logitech Kconfig entry
Date: Fri, 4 Oct 2019 14:04:57 +0200	[thread overview]
Message-ID: <a4342ade-f5c6-f981-3957-8820937f89f2@redhat.com> (raw)
In-Reply-To: <CAO-hwJ+kGmQSJZTO=PHKO6kTpwV6GwkbCkCMTtYV4=LabkUTNQ@mail.gmail.com>

Hi,

On 10/4/19 1:30 PM, Benjamin Tissoires wrote:
> Hi Hans,
> 
> On Fri, Oct 4, 2019 at 3:37 AM Hans de Goede <hdegoede@redhat.com> wrote:
>>
>> Commit 97b741aba918 ("HID: lg-g15: Add keyboard and LCD backlight control")
>> makes the hid-lg15 kernel module, which gets configured through config
>> HID_LOGITECH depends on symbols from the led class. Add a depends on
>> LEDS_CLASS to HID_LOGITECH to avoid undefined reference errors on the
>> led class symbols.
>>
>> Fixes: 97b741aba918 ("HID: lg-g15: Add keyboard and LCD backlight control")
>> Reported-by: kbuild test robot <lkp@intel.com>
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>>   drivers/hid/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
>> index 1ecb5124421c..494a39e74939 100644
>> --- a/drivers/hid/Kconfig
>> +++ b/drivers/hid/Kconfig
>> @@ -525,6 +525,7 @@ config HID_LENOVO
>>   config HID_LOGITECH
>>          tristate "Logitech devices"
>>          depends on HID
>> +       depends on LEDS_CLASS
> 
> My CI failed with this patch. It seems this creates a loop in the
> dependencies and I can not create the config file. Also, it seems
> weird to have a depends on LEDS_CLASS when you surely wants to enable
> it. How about using SELECT instead?

That is weird, there is a whole bunch of other HID_FOO config
symbols in drivers/hid/Kconfig which also have a depends on LEDS_CLASS,
so if this is a problem then it should be a problem for those other ones
too.

I do see that there are others which use select instead of depends
(yeah consistency) so I guess that changing to select is fine here...

Please let me know how you want to proceed with this.

Regards,

Hans


  reply	other threads:[~2019-10-04 12:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-04  7:37 [PATCH] HID: logitech: Add depends on LEDS_CLASS to Logitech Kconfig entry Hans de Goede
2019-10-04 11:30 ` Benjamin Tissoires
2019-10-04 12:04   ` Hans de Goede [this message]
2019-10-04 15:01     ` Benjamin Tissoires
2019-10-04 16:22       ` Benjamin Tissoires
2019-10-04 22:07         ` Hans de Goede

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=a4342ade-f5c6-f981-3957-8820937f89f2@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=sfr@canb.auug.org.au \
    /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).