--- zzzz-none-000/linux-4.4.271/include/linux/of_reserved_mem.h 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/include/linux/of_reserved_mem.h 2023-01-11 09:25:43.000000000 +0000 @@ -30,10 +30,13 @@ #ifdef CONFIG_OF_RESERVED_MEM int of_reserved_mem_device_init(struct device *dev); void of_reserved_mem_device_release(struct device *dev); +struct device_node; void fdt_init_reserved_mem(void); void fdt_reserved_mem_save_node(unsigned long node, const char *uname, phys_addr_t base, phys_addr_t size); +struct reserved_mem *fdt_get_reserved_mem_resource(const char* name); +struct reserved_mem *of_reserved_mem_lookup(struct device_node *np); #else static inline int of_reserved_mem_device_init(struct device *dev) { @@ -44,6 +47,11 @@ static inline void fdt_init_reserved_mem(void) { } static inline void fdt_reserved_mem_save_node(unsigned long node, const char *uname, phys_addr_t base, phys_addr_t size) { } +static inline struct reserved_mem *fdt_get_reserved_mem_resource(const char* name) { return NULL; } +static inline struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) +{ + return NULL; +} #endif #endif /* __OF_RESERVED_MEM_H */