linux/drivers
Greg Kroah-Hartman 75cff725d9 driver core: bus: mark the struct bus_type for sysfs callbacks as constant
struct bus_type should never be modified in a sysfs callback as there is
nothing in the structure to modify, and frankly, the structure is almost
never used in a sysfs callback, so mark it as constant to allow struct
bus_type to be moved to read-only memory.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Cc: Alison Schofield <alison.schofield@intel.com>
Cc: Ben Widawsky <bwidawsk@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Harald Freudenberger <freude@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Hu Haowen <src.res@email.cn>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Stuart Yoder <stuyoder@gmail.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Yanteng Si <siyanteng@loongson.cn>
Acked-by: Ilya Dryomov <idryomov@gmail.com> # rbd
Acked-by: Ira Weiny <ira.weiny@intel.com> # cxl
Reviewed-by: Alex Shi <alexs@kernel.org>
Acked-by: Iwona Winiarska <iwona.winiarska@intel.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>	# pci
Acked-by: Wei Liu <wei.liu@kernel.org>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com> # scsi
Link: https://lore.kernel.org/r/20230313182918.1312597-23-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-23 13:20:40 +01:00
..
accel driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
accessibility
acpi ACPI: LPIT: move to use bus_get_dev_root() 2023-03-22 20:25:18 +01:00
amba
android Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
ata driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
atm
auxdisplay
base driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
bcma
block driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
bluetooth
bus driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
cdrom
char tpm: Fix a possible dereference of ERR_PTR in tpm_init() 2023-03-21 09:00:08 +01:00
clk We have one small patch to the clk core this time around. It fixes a corner 2023-02-25 15:16:23 -08:00
clocksource Updates for timekeeping, timers and clockevent/source drivers: 2023-02-21 09:45:13 -08:00
comedi driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
connector
counter
cpufreq cpufreq: amd-pstate: move to use bus_get_dev_root() 2023-03-17 15:30:07 +01:00
cpuidle cpuidle: move to use bus_get_dev_root() 2023-03-22 20:25:23 +01:00
crypto driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
cxl driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
dax cxl for v6.3 2023-02-25 09:19:23 -08:00
dca driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
devfreq driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
dio
dma dmaengine updates for v6.3 2023-02-24 17:18:54 -08:00
dma-buf driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
edac EDAC/sysfs: move to use bus_get_dev_root() 2023-03-22 09:25:49 +01:00
eisa
extcon driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
firewire Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
firmware ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
fpga driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
fsi
gnss driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
gpio drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
gpu driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
greybus
hid driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
hsi Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
hte
hv driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
hwmon drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
hwspinlock
hwtracing Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
i2c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
i3c I3C for 6.3 2023-02-28 16:05:01 -08:00
idle Power management updates for 6.3-rc1 2023-02-21 12:13:58 -08:00
iio Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
infiniband driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
input ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
interconnect SoC: DT changes for 6.3 2023-02-20 15:49:56 -08:00
iommu ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
ipack Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
irqchip irqchip/mbigen: move to use bus_get_dev_root() 2023-03-17 15:30:12 +01:00
isdn driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
leds driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
macintosh driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
mailbox mailbox: qcom-apcs-ipc: add IPQ5332 APSS clock support 2023-02-23 14:47:13 -06:00
mcb
md flexible-array transformations for 6.3-rc1 2023-02-25 12:53:42 -08:00
media driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
memory ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
memstick MMC core: 2023-02-27 09:47:26 -08:00
message
mfd drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
misc driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
mmc ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
most driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
mtd drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
mux drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
net driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
nfc nfc: fix memory leak of se_io context in nfc_genl_se_io 2023-02-26 14:55:13 +00:00
ntb
nubus
nvdimm driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
nvme driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
nvmem
of IOMMU Updates for Linux v6.3: 2023-02-24 13:40:13 -08:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-02-16 13:48:53 +01:00
parisc
parport Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
pci driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
pcmcia Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
peci driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
perf RISC-V Patches for the 6.3 Merge Window, Part 2 2023-03-03 09:32:51 -08:00
phy driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
pinctrl ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
platform platform/x86: intel-uncore-freq: move to use bus_get_dev_root() 2023-03-17 15:29:12 +01:00
pnp
power driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
powercap More power management updates for 6.3-rc1 2023-03-03 10:30:58 -08:00
pps driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
ps3
ptp driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
pwm drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
rapidio driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
ras
regulator regulator: Fixes for v6.3 2023-03-02 09:21:25 -08:00
remoteproc ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
reset
rpmsg driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
rtc driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
s390 driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
sbus driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
scsi driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
sh sh: intc: move to use bus_get_dev_root() 2023-03-17 15:29:55 +01:00
siox
slimbus
soc drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
soundwire soundwire updates for 6.3 2023-02-24 17:29:52 -08:00
spi driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
spmi
ssb
staging driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
target - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
tc
tee driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
thermal More thermal control updates for 6.3-rc1 2023-03-03 10:41:59 -08:00
thunderbolt Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
tty driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
ufs SCSI misc on 20230303 2023-03-03 14:41:50 -08:00
uio - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
usb driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
vdpa driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
vfio driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
vhost virtio,vhost,vdpa: features, fixes 2023-02-25 11:48:02 -08:00
video driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
virt virt/sev-guest: Return -EIO if certificate buffer is not large enough 2023-03-01 10:17:46 +01:00
virtio virtio,vhost,vdpa: features, fixes 2023-02-25 11:48:02 -08:00
vlynq
w1 Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
watchdog drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
xen Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
zorro
Kconfig
Makefile Kbuild updates for v6.3 2023-02-26 11:53:25 -08:00