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 <corbe...
Showing
- Documentation/driver-api/driver-model/bus.rst 2 additions, 2 deletionsDocumentation/driver-api/driver-model/bus.rst
- Documentation/filesystems/sysfs.rst 2 additions, 2 deletionsDocumentation/filesystems/sysfs.rst
- Documentation/translations/zh_CN/filesystems/sysfs.txt 2 additions, 2 deletionsDocumentation/translations/zh_CN/filesystems/sysfs.txt
- Documentation/translations/zh_TW/filesystems/sysfs.txt 2 additions, 2 deletionsDocumentation/translations/zh_TW/filesystems/sysfs.txt
- arch/powerpc/platforms/pseries/ibmebus.c 2 additions, 2 deletionsarch/powerpc/platforms/pseries/ibmebus.c
- arch/powerpc/platforms/pseries/vio.c 4 additions, 4 deletionsarch/powerpc/platforms/pseries/vio.c
- drivers/ata/pata_parport/pata_parport.c 2 additions, 4 deletionsdrivers/ata/pata_parport/pata_parport.c
- drivers/base/bus.c 4 additions, 4 deletionsdrivers/base/bus.c
- drivers/block/rbd.c 15 additions, 19 deletionsdrivers/block/rbd.c
- drivers/bus/fsl-mc/fsl-mc-bus.c 3 additions, 3 deletionsdrivers/bus/fsl-mc/fsl-mc-bus.c
- drivers/cxl/core/port.c 1 addition, 1 deletiondrivers/cxl/core/port.c
- drivers/hv/vmbus_drv.c 1 addition, 1 deletiondrivers/hv/vmbus_drv.c
- drivers/net/netdevsim/bus.c 2 additions, 2 deletionsdrivers/net/netdevsim/bus.c
- drivers/pci/pci-sysfs.c 1 addition, 1 deletiondrivers/pci/pci-sysfs.c
- drivers/pci/pci.c 2 additions, 2 deletionsdrivers/pci/pci.c
- drivers/peci/sysfs.c 1 addition, 1 deletiondrivers/peci/sysfs.c
- drivers/rapidio/rio-sysfs.c 1 addition, 1 deletiondrivers/rapidio/rio-sysfs.c
- drivers/s390/crypto/ap_bus.c 21 additions, 21 deletionsdrivers/s390/crypto/ap_bus.c
- drivers/scsi/fcoe/fcoe_sysfs.c 4 additions, 4 deletionsdrivers/scsi/fcoe/fcoe_sysfs.c
- drivers/scsi/fcoe/fcoe_transport.c 2 additions, 4 deletionsdrivers/scsi/fcoe/fcoe_transport.c
Please register or sign in to comment