RE: [PATCH 2/4] ACPI/MRRM: Create /sys/devices/system/memory/rangeX ABI

From: Luck, Tony
Date: Mon Feb 10 2025 - 19:21:37 EST


> diff --git a/include/linux/memory.h b/include/linux/memory.h
> index c0afee5d126e..0a21943ce44d 100644
> --- a/include/linux/memory.h
> +++ b/include/linux/memory.h
> @@ -189,4 +189,13 @@ void memory_block_add_nid(struct memory_block *mem, int nid,
> */
> extern struct mutex text_mutex;
>
> +#ifdef CONFIG_ACPI_MRRM
> +int mrrm_max_mem_region(void);
> +int memory_subsys_device_register(struct device *dev);
> +#else
> +static inline int mrrm_max_mem_region(void) { return -EONENT; }

The lkp robot just pointed out my spelling error. Should be ENOENT.

> +static inline int memory_subsys_device_register(struct device *dev) { return -EINVAL; }
> +#define memory_subsys_device_register memory_subsys_device_register
> +#endif
> +
> #endif /* _LINUX_MEMORY_H_ */

-Tony