mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
Linux kernel source tree
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:
|
||
|---|---|---|
| arch | ||
| block | ||
| certs | ||
| crypto | ||
| Documentation | ||
| drivers | ||
| fs | ||
| include | ||
| init | ||
| ipc | ||
| kernel | ||
| lib | ||
| LICENSES | ||
| mm | ||
| net | ||
| samples | ||
| scripts | ||
| security | ||
| sound | ||
| tools | ||
| usr | ||
| virt | ||
| .clang-format | ||
| .cocciconfig | ||
| .get_maintainer.ignore | ||
| .gitattributes | ||
| .gitignore | ||
| .mailmap | ||
| abi_gki_aarch64.xml | ||
| build.config.aarch64 | ||
| build.config.allmodconfig | ||
| build.config.allmodconfig.aarch64 | ||
| build.config.allmodconfig.x86_64 | ||
| build.config.common | ||
| build.config.gki | ||
| build.config.gki.aarch64 | ||
| build.config.gki.x86_64 | ||
| build.config.x86_64 | ||
| COPYING | ||
| CREDITS | ||
| Kbuild | ||
| Kconfig | ||
| MAINTAINERS | ||
| Makefile | ||
| README | ||
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.