linux/drivers/dax
Ricardo B. Marliere 2c720b492c dax: constify the struct device_type usage
Since commit aed65af1cc ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the
dax_mapping_type variable to be a constant structure as well, placing it
into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20240219-device_cleanup-dax-v1-1-6b319ee89dc2@marliere.net
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
2024-04-25 12:37:12 -07:00
..
hmem dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
pmem dax: Kill DEV_DAX_PMEM_COMPAT 2021-11-24 19:21:35 -08:00
bus.c dax: constify the struct device_type usage 2024-04-25 12:37:12 -07:00
bus.h dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
cxl.c dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
dax-private.h dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
device.c mm: remove enum page_entry_size 2023-08-24 16:20:30 -07:00
Kconfig cxl for v6.3 2023-02-25 09:19:23 -08:00
kmem.c dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
Makefile cxl/dax: Create dax devices for CXL RAM regions 2023-02-10 17:33:45 -08:00
pmem.c dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
super.c - Sumanth Korikkar has taught s390 to allocate hotplug-time page frames 2024-03-14 17:43:30 -07:00