cxl: make cxl_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2023 11:48:35 +0000 (13:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:08:54 +0000 (11:08 +0200)
commitd223192634ffac3182cc38fda3cca0a8814276ea
treea38d15c6b7ce2348b610aa82ef7124841112d6f8
parentf6c086ef8417b4c6941628ab043c4688e2fd17c2
cxl: make cxl_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/2023102434-haiku-uphill-0c11@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/file.c