linux/drivers/input/mouse
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
alps.c Input: alps - use standard workqueue when registering supplemental device 2026-03-12 11:16:29 -07:00
alps.h Input: alps - use standard workqueue when registering supplemental device 2026-03-12 11:16:29 -07:00
amimouse.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
appletouch.c Input: appletouch - refactor endpoint lookup 2026-03-30 16:54:41 -07:00
atarimouse.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
bcm5974.c Merge branch 'next' into for-linus 2026-04-19 18:28:57 -07:00
byd.c Input: byd - synchronize timer deletion before freeing private data 2026-07-22 11:53:56 -07:00
byd.h Input: psmouse - drop all unneeded functions from mouse headers 2019-08-20 14:15:36 -07:00
cyapa_gen3.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
cyapa_gen5.c Input: cyapa - remove redundant pm_runtime_mark_last_busy() calls 2025-12-13 01:23:01 -08:00
cyapa_gen6.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
cyapa.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
cyapa.h Input: cyapa - fix for losing events during device power transitions 2016-03-04 11:32:13 -08:00
cypress_ps2.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cypress_ps2.h Input: cypress_ps2 - fix error handling when sending command fails 2024-07-03 13:48:53 -07:00
elan_i2c_core.c Input: elan_i2c - sort include statements 2026-08-12 17:44:06 -07:00
elan_i2c_i2c.c Input: elan_i2c - optimize update speed for IC Type 0x19. 2026-08-12 17:37:45 -07:00
elan_i2c_smbus.c Input: elan_i2c - optimize update speed for IC Type 0x19. 2026-08-12 17:37:45 -07:00
elan_i2c.h Input: elan_i2c - optimize update speed for IC Type 0x19. 2026-08-12 17:37:45 -07:00
elantech.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
elantech.h Input: elantech - fix protocol errors for some trackpoints in SMBus mode 2020-12-11 00:15:05 -08:00
focaltech.c Merge branch 'next' into for-linus 2026-08-14 21:26:07 -07:00
focaltech.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
gpio_mouse.c Input: gpio_mouse - fix typos in comments 2022-06-22 15:29:35 -07:00
Kconfig Input updates for v7.1-rc0 2026-04-22 18:36:40 -07:00
lifebook.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lifebook.h Input: psmouse - drop all unneeded functions from mouse headers 2019-08-20 14:15:36 -07:00
logips2pp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
logips2pp.h Input: psmouse - drop all unneeded functions from mouse headers 2019-08-20 14:15:36 -07:00
Makefile Input updates for v7.1-rc0 2026-04-22 18:36:40 -07:00
maplemouse.c Input: maplemouse - set driver data before registering input device 2026-07-02 22:48:57 -07:00
psmouse-base.c Input: psmouse - use guard() for resource management 2026-08-03 17:06:27 -07:00
psmouse-smbus.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
psmouse.h Input: psmouse - remove dedicated kpsmoused workqueue 2026-03-12 11:16:30 -07:00
rpcmouse.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sentelic.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sentelic.h Input: psmouse - drop all unneeded functions from mouse headers 2019-08-20 14:15:36 -07:00
sermouse.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
synaptics_i2c.c Input: synaptics_i2c - return 0 explicitly on success 2026-08-04 21:27:53 -07:00
synaptics_usb.c Input: synaptics_usb - refactor endpoint lookup 2026-03-30 16:54:41 -07:00
synaptics.c Input: synaptics - enable InterTouch on Dell Inspiron 3521 2026-06-26 11:04:26 -07:00
synaptics.h Input: synaptics - fix crash when enabling pass-through port 2025-01-20 21:27:02 -08:00
touchkit_ps2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
touchkit_ps2.h Input: psmouse - drop all unneeded functions from mouse headers 2019-08-20 14:15:36 -07:00
trackpoint.c input: trackpoint - Enable doubletap by default on capable devices 2026-03-17 15:27:22 +02:00
trackpoint.h input: trackpoint - Enable doubletap by default on capable devices 2026-03-17 15:27:22 +02:00
vmmouse.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmmouse.h Input: psmouse - drop all unneeded functions from mouse headers 2019-08-20 14:15:36 -07:00
vsxxxaa.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00