]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: switchtec: Make switchtec_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2024 08:20:53 +0000 (10:20 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 10 Jun 2024 20:03:30 +0000 (15:03 -0500)
commit8a74e4eaa72c14f997df6d820effb6aac400d470
tree2a50deb46848ba635da1f690a8e6e1813b5252de
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
PCI: switchtec: Make switchtec_class constant

Now that the driver core allows for struct class to be in read-only memory,
we should make all 'class' structures declared at build time placing them
into read-only memory, instead of having to be dynamically allocated at
runtime.

Link: https://lore.kernel.org/r/2024061053-online-unwound-b173@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-By: Logan Gunthorpe <logang@deltatee.com>
Cc: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Allen Hubbe <allenbh@gmail.com>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c
drivers/pci/switch/switchtec.c
include/linux/switchtec.h