android_kernel_xiaomi_sm8450/drivers
Lee Jones 40aea038ea ANDROID: HID: Only utilise UHID provided exports if UHID is enabled
Commit "ANDROID: HID; Over-ride default maximum buffer size when using
UHID" provided a means for the UHID driver to offer an alternative
(smaller) report buffer size when dealing with user-space.  The method
used was an Android-only solution designed to prevent the KMI ABI from
being broken (nb: the upstream solution was cleaner, but broke the ABI).

Since this solution involved consuming resources exported by a
subordinate driver, that driver would have to be enabled for the export
to take place.  Since all of our default configs enable UHID, an issue
was not detected.  However, for more specific kernel configs, where HID
is enabled, but UHID is not, this leads to compile-time undefined symbol
errors:

  ld.lld: error: undefined symbol: uhid_hid_driver

This patch relies on the compiler to leave out unutilised sections of
the code if the associated resources are not available.

Bug: 260007429
Reported-by: Paul Lawrence <paullawrence@google.com>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I80b1aa7454c89d5c5e21f0268252ffb666efab97
Signed-off-by: Lee Jones <joneslee@google.com>
2023-06-21 10:56:09 +01:00
..
accessibility speakup: fix a segfault caused by switching consoles 2022-11-25 17:45:50 +01:00
acpi This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
amba
android ANDROID: vendor_hook: add hooks in dm_bufio.c 2023-05-22 10:51:36 +08:00
ata ata: libata: Fix sata_down_spd_limit() when no link speed is reported 2023-02-15 17:22:13 +01:00
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-04-05 11:23:35 +02:00
auxdisplay
base Merge 5.10.166 into android12-5.10-lts 2023-02-17 12:18:56 +00:00
bcma
block This is the 5.10.176 stable release 2023-03-24 16:03:04 +00:00
bluetooth This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
bus bus: imx-weim: fix branch condition evaluates to a garbage value 2023-04-05 11:23:44 +02:00
cdrom
char This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
clk This is the 5.10.176 stable release 2023-03-24 16:03:04 +00:00
clocksource This is the 5.10.163 stable release 2023-02-06 12:30:05 +00:00
connector
counter counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update 2023-01-14 10:15:58 +01:00
cpufreq Merge 5.10.166 into android12-5.10-lts 2023-02-17 12:18:56 +00:00
cpuidle This is the 5.10.176 stable release 2023-03-24 16:03:04 +00:00
crypto This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
dax dax/kmem: Fix leak of memory-hotplug resources 2023-03-11 16:40:04 +01:00
dca
devfreq Revert "PM/devfreq: governor: Add a private governor_data for governor" 2023-02-15 15:00:47 +00:00
dio drivers: dio: fix possible memory leak in dio_init() 2023-01-14 10:15:54 +01:00
dma dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init 2023-02-06 07:56:15 +01:00
dma-buf ANDROID: dma-buf: heaps: Don't lock unused dmabuf_page_pool mutex 2023-03-01 01:18:39 +00:00
edac EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info 2023-02-01 08:23:23 +01:00
eisa
extcon
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-02-15 17:22:09 +01:00
firmware Merge tag 'android12-5.10.177_r00' into android12-5.10 2023-05-26 15:09:40 +00:00
fpga fpga: stratix10-soc: Fix return value check in s10_ops_write_init() 2023-02-15 17:22:19 +01:00
fsi WRITE is "data source", not destination... 2023-02-15 17:22:11 +01:00
gnss
gpio This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
gpu Merge tag 'android12-5.10.177_r00' into android12-5.10 2023-05-26 15:09:40 +00:00
greybus
hid ANDROID: HID: Only utilise UHID provided exports if UHID is enabled 2023-06-21 10:56:09 +01:00
hsi HSI: omap_ssi_core: Fix error handling in ssi_init() 2023-01-14 10:16:03 +01:00
hv video: hyperv_fb: Avoid taking busy spinlock on panic path 2023-01-14 10:16:13 +01:00
hwmon This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
hwspinlock hwspinlock: qcom: correct MMIO max register for newer SoCs 2022-11-16 09:57:07 +01:00
hwtracing UPSTREAM: coresight: trbe: remove cpuhp instance node before remove cpuhp state 2023-04-13 18:04:03 +01:00
i2c This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
i3c
ide
idle
iio iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_config_word() 2023-03-11 16:40:17 +01:00
infiniband This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
input Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table 2023-04-05 11:23:49 +02:00
interconnect This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
iommu This is the 5.10.175 stable release 2023-03-24 14:42:30 +00:00
ipack
irqchip This is the 5.10.175 stable release 2023-03-24 14:42:30 +00:00
isdn mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() 2023-01-14 10:16:10 +01:00
leds leds: led-core: Fix refcount leak in of_led_get() 2023-03-11 16:39:40 +01:00
lightnvm
macintosh macintosh: windfarm: Use unsigned type for 1-bit bitfields 2023-03-17 08:45:14 +01:00
mailbox UPSTREAM: mailbox: mailbox-test: fix a locking issue in mbox_test_message_write() 2023-06-12 14:10:29 +01:00
mcb mcb: mcb-parse: fix error handing in chameleon_parse_gdd() 2023-01-14 10:15:59 +01:00
md Merge tag 'android12-5.10.177_r00' into android12-5.10 2023-05-26 15:09:40 +00:00
media UPSTREAM: media: rc: Fix use-after-free bugs caused by ene_tx_irqsim() 2023-04-03 10:46:38 +01:00
memory Merge 5.10.166 into android12-5.10-lts 2023-02-17 12:18:56 +00:00
memstick
message
mfd mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak 2023-03-11 16:40:15 +01:00
misc Merge tag 'android12-5.10.177_r00' into android12-5.10 2023-05-26 15:09:40 +00:00
mmc This is the 5.10.176 stable release 2023-03-24 16:03:04 +00:00
most
mtd This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
mux
net UPSTREAM: net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize 2023-06-13 11:06:54 +00:00
nfc nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition 2023-03-22 13:29:58 +01:00
ntb
nubus
nvdimm
nvme This is the 5.10.176 stable release 2023-03-24 16:03:04 +00:00
nvmem Revert "nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property" 2023-03-03 12:54:35 +00:00
of BACKPORT: of: base: Skip CPU nodes with "fail"/"fail-..." status 2023-03-29 16:45:54 +00:00
opp This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
oprofile
parisc parisc: led: Fix potential null-ptr-deref in start_task() 2023-01-14 10:16:36 +01:00
parport parport_pc: Avoid FIFO port location truncation 2022-11-25 17:45:44 +01:00
pci This is the 5.10.176 stable release 2023-03-24 16:03:04 +00:00
pcmcia
perf perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init() 2023-01-14 10:15:12 +01:00
phy phy: rockchip-typec: Fix unsigned comparison with less than zero 2023-03-11 16:40:18 +01:00
pinctrl This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
platform This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
pnp PNP: fix name memory leak in pnp_alloc_dev() 2023-01-14 10:15:17 +01:00
power This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
powercap This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-05 11:23:47 +02:00
pwm This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2023-01-14 10:15:23 +01:00
ras
regulator This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
remoteproc Merge branch 'android12-5.10' into android12-5.10-lts 2023-03-24 10:32:49 +00:00
reset This is the 5.10.147 stable release 2022-10-05 18:33:23 +02:00
rpmsg This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
rtc rtc: sun6i: Always export the internal oscillator 2023-03-11 16:40:14 +01:00
s390 This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
sbus
scsi Merge tag 'android12-5.10.177_r00' into android12-5.10 2023-05-26 15:09:40 +00:00
sfi
sh
siox siox: fix possible memory leak in siox_device_add() 2022-11-25 17:45:44 +01:00
slimbus slimbus: stream: correct presence rate frequencies 2022-11-25 17:45:50 +01:00
soc Merge 5.10.166 into android12-5.10-lts 2023-02-17 12:18:56 +00:00
soundwire This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
spi This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
spmi spmi: pmic-arb: correct duplicate APID to PPID mapping logic 2022-10-26 13:25:39 +02:00
ssb
staging Merge 5.10.174 into android12-5.10-lts 2023-03-24 14:38:51 +00:00
target This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
tc
tee tee: amdtee: fix race condition in amdtee_open_session 2023-04-05 11:23:41 +02:00
thermal This is the 5.10.173 stable release 2023-03-22 11:21:35 +00:00
thunderbolt thunderbolt: Use const qualifier for ring_interrupt_index 2023-04-05 11:23:37 +02:00
tty This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
uio uio: uio_dmem_genirq: Fix deadlock between irq config and handling 2023-01-14 10:15:55 +01:00
usb UPSTREAM: usb: gadget: f_fs: Add unbind event before functionfs_unbind 2023-06-15 07:57:26 +00:00
vdpa vdpa/mlx5: Don't clear mr struct on destroy MR 2023-03-11 16:39:45 +01:00
vfio vfio/type1: prevent underflow of locked_vm via exec() 2023-03-11 16:40:07 +01:00
vhost Merge 5.10.168 into android12-5.10-lts 2023-02-17 15:23:41 +00:00
video This is the 5.10.177 stable release 2023-04-05 14:11:48 +00:00
virt
virtio
visorbus
vlynq
vme vme: Fix error not catched in fake_init() 2023-01-14 10:16:00 +01:00
w1 w1: fix WARNING after calling w1_process() 2023-02-01 08:23:15 +01:00
watchdog watchdog: pcwd_usb: Fix attempting to access uninitialized memory 2023-03-11 16:40:12 +01:00
xen fix "direction" argument of iov_iter_kvec() 2023-02-15 17:22:12 +01:00
zorro
Kconfig
Makefile