]> www.infradead.org Git - linux.git/commit
ocxl: make ocxl_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2023 11:49:04 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:09:04 +0000 (11:09 +0200)
commitcf3c415d7d2c21288fc85d7ed5da9b9af36d0de9
tree31fcace2d71d332f25b25e7e72f069b3a78720a2
parentd223192634ffac3182cc38fda3cca0a8814276ea
ocxl: make ocxl_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.

Cc: Andrew Donnellan <ajd@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@lists.ozlabs.org
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Link: https://lore.kernel.org/r/2023102403-squirt-defraud-6c0c@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ocxl/file.c