anolis-cloud-kernel/drivers/dax
hr567 6bec8a39b9 anolis: mm: fix some memory interface kabi changes
ANBZ: #21081

The previous patch modified the `add_memory_resource` and
`add_memory_driver_managed` interfaces, causing some drivers to fail to
compile on ANCK.

This patch re-implements the relevant functions, and no longer modifies
the relevant interfaces while maintaining the original logic.

Fixes: 6276951a54 ("anolis: virtio-mem: restrict offline memmap on
movable in x86_64")
Signed-off-by: hr567 <hr567@linux.alibaba.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5301
2025-05-19 03:52:57 +00:00
..
hmem devdax: Fix soft-reservation memory description 2024-08-05 02:12:42 +00:00
pmem mm/memremap_pages: convert to 'struct range' 2020-10-13 18:38:28 -07:00
Kconfig mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports 2020-11-22 10:48:22 -08:00
Makefile ACPI: HMAT: refactor hmat_register_target_device to hmem_register_device 2020-10-13 18:38:27 -07:00
bus.c dax: Introduce alloc_dev_dax_id() 2024-08-05 02:12:42 +00:00
bus.h mm/memremap_pages: convert to 'struct range' 2020-10-13 18:38:28 -07:00
dax-private.h dax: Introduce alloc_dev_dax_id() 2024-08-05 02:12:42 +00:00
device.c device-dax: make align a per-device property 2020-10-13 18:38:28 -07:00
kmem.c anolis: mm: fix some memory interface kabi changes 2025-05-19 03:52:57 +00:00
super.c dax: introduce holder for dax_device 2022-11-27 13:32:13 +00:00