mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
f4f6f40ebc621bc31bee7e5160abda908b798f23
The Android Accessory USB gadget functions use core HID functions. As
such, compiling with CONFIG_HID=m and CONFIG_USB_GADGET=y fails to link:
drivers/usb/gadget/function/f_accessory.o: In function `acc_complete_send_hid_event':
f_accessory.c:(.text+0xd54): undefined reference to `hid_report_raw_event'
drivers/usb/gadget/function/f_accessory.o: In function `acc_hid_work':
f_accessory.c:(.text+0x2a98): undefined reference to `hid_destroy_device'
f_accessory.c:(.text+0x2ad4): undefined reference to `hid_allocate_device'
f_accessory.c:(.text+0x2b64): undefined reference to `hid_add_device'
f_accessory.c:(.text+0x2d04): undefined reference to `hid_destroy_device'
drivers/usb/gadget/function/f_accessory.o: In function `acc_hid_parse':
f_accessory.c:(.text+0x2e24): undefined reference to `hid_parse_report'
drivers/usb/gadget/function/f_accessory.o: In function `acc_function_bind_configfs':
f_accessory.c:(.text+0x2f8c): undefined reference to `__hid_register_driver'
drivers/usb/gadget/function/f_accessory.o: In function `acc_function_unbind':
f_accessory.c:(.text+0x3bc8): undefined reference to `hid_unregister_driver'
drivers/usb/gadget/function/f_accessory.o: In function `acc_hid_probe':
f_accessory.c:(.text+0x3ef4): undefined reference to `hid_open_report'
f_accessory.c:(.text+0x3f18): undefined reference to `hid_hw_start'
Fix this by making the dependency on HID explicit.
Bug: 140224784
Fixes: 483cb5629e ("ANDROID: usb: gadget: f_accessory: Add Android
Accessory function")
Signed-off-by: Quentin Perret <qperret@google.com>
Change-Id: Ibd8640d7766cc7802d8275bfe3adfa007f3318fe
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%