From: Greg KH <gregkh@linuxfoundation.org>
To: Jason Self <jason@bluehome.net>
Cc: stable@vger.kernel.org
Subject: Re: Please revert HID: add hid_is_usb() function to make it simpler for USB detection
Date: Tue, 28 Dec 2021 13:11:41 +0100 [thread overview]
Message-ID: <Ycr+/UJZ18e2o4go@kroah.com> (raw)
In-Reply-To: <YcrBraOFiQN6ZiXC@kroah.com>
On Tue, Dec 28, 2021 at 08:50:05AM +0100, Greg KH wrote:
> On Mon, Dec 27, 2021 at 05:26:18PM -0800, Jason Self wrote:
> > While compiling 5.4.168 for m68k with the attached config I encountered
> > a compile error doing make -j$(nproc) bindeb-pkg.
> >
> > I see that it is also affecting all older current releases too. In
> > addition to the 5.4 series this also affects 4.19, 4.14, 4.9 and 4.4.
> >
> > awk '!x[$0]++' init/modules.order usr/modules.order
> > arch/m68k/kernel/modules.order arch/m68k/mm/modules.order
> > arch/m68k/q40/modules.order arch/m68k/amiga/modules.order
> > arch/m68k/atari/modules.order arch/m68k/mac/modules.order
> > arch/m68k/apollo/modules.order arch/m68k/mvme147/modules.order
> > arch/m68k/mvme16x/modules.order arch/m68k/bvme6000/modules.order
> > arch/m68k/emu/modules.order arch/m68k/fpsp040/modules.order
> > arch/m68k/ifpsp060/modules.order arch/m68k/math-emu/modules.order
> > kernel/modules.order certs/modules.order mm/modules.order
> > fs/modules.order ipc/modules.order security/modules.order
> > crypto/modules.order block/modules.order drivers/modules.order
> > sound/modules.order net/modules.order lib/modules.order
> > arch/m68k/lib/modules.order virt/modules.order > modules.order awk
> > '!x[$0]++' init/modules.builtin usr/modules.builtin
> > arch/m68k/kernel/modules.builtin arch/m68k/mm/modules.builtin
> > arch/m68k/q40/modules.builtin arch/m68k/amiga/modules.builtin
> > arch/m68k/atari/modules.builtin arch/m68k/mac/modules.builtin
> > arch/m68k/apollo/modules.builtin arch/m68k/mvme147/modules.builtin
> > arch/m68k/mvme16x/modules.builtin arch/m68k/bvme6000/modules.builtin
> > arch/m68k/emu/modules.builtin arch/m68k/fpsp040/modules.builtin
> > arch/m68k/ifpsp060/modules.builtin arch/m68k/math-emu/modules.builtin
> > kernel/modules.builtin certs/modules.builtin mm/modules.builtin
> > fs/modules.builtin ipc/modules.builtin security/modules.builtin
> > crypto/modules.builtin block/modules.builtin drivers/modules.builtin
> > sound/modules.builtin net/modules.builtin lib/modules.builtin
> > arch/m68k/lib/modules.builtin virt/modules.builtin > modules.builtin
> > make -f ./scripts/Makefile.modpost sed 's/ko$/o/' modules.order |
> > scripts/mod/modpost -m -o ./Module.symvers -s -T - vmlinux
> > ERROR: "usb_hid_driver" [drivers/hid/hid-asus.ko] undefined!
> > scripts/Makefile.modpost:93: recipe for target '__modpost' failed
> > make[1]: *** [__modpost] Error 1 Makefile:1324: recipe for target
> > 'modules' failed make: *** [modules] Error 2
> >
> > Version 5.4.164 was the last good version. Doing git bisect on the
> > stable kernel tree has given me this:
> >
> > 6e1e0a01425810494ce00d7b800b69482790b198 is the first bad commit
> > commit 6e1e0a01425810494ce00d7b800b69482790b198
> > Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Date: Wed Dec 1 19:35:01 2021 +0100
> >
> > HID: add hid_is_usb() function to make it simpler for USB detection
> >
> > commit f83baa0cb6cfc92ebaf7f9d3a99d7e34f2e77a8a upstream.
> >
> > A number of HID drivers already call hid_is_using_ll_driver() but
> > only for the detection of if this is a USB device or not. Make
> > this more obvious by creating hid_is_usb() and calling the function
> > that way.
> > Also converts the existing hid_is_using_ll_driver() functions to
> > use the new call.
> >
> > Cc: Jiri Kosina <jikos@kernel.org>
> > Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> > Cc: linux-input@vger.kernel.org
> > Cc: stable@vger.kernel.org
> > Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> > Link:
> > https://lore.kernel.org/r/20211201183503.2373082-1-gregkh@linuxfoundation.org
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> >
> > drivers/hid/hid-asus.c | 2 +-
> > drivers/hid/hid-logitech-dj.c | 2 +-
> > drivers/hid/hid-u2fzero.c | 2 +-
> > drivers/hid/hid-uclogic-params.c | 3 +--
> > drivers/hid/wacom_sys.c | 2 +-
> > include/linux/hid.h | 5 +++++
> > 6 files changed, 10 insertions(+), 6 deletions(-)
>
>
> There were follow-on patches to prevent modules from being built if the
> right options were not enabled, so bisection might fail with your config
> at this point. I'll check to see if those were added properly after my
> morning coffee...
Looks like f237d9028f84 ("HID: add USB_HID dependancy on some USB HID
drivers") was properly backported. But maybe the dependancy needs to
also be added for a few more drivers as well, like c4f0126d487f ("HID:
asus: Add depends on USB_HID to HID_ASUS Kconfig option"), right?
If you backport that commit, does that solve this issue?
thanks,
greg k-h
prev parent reply other threads:[~2021-12-28 12:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-28 1:26 Please revert HID: add hid_is_usb() function to make it simpler for USB detection Jason Self
2021-12-28 7:50 ` Greg KH
2021-12-28 12:11 ` Greg KH [this message]
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=Ycr+/UJZ18e2o4go@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=jason@bluehome.net \
--cc=stable@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 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.