--- zzzz-none-000/linux-3.10.107/include/linux/of.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/of.h 2021-11-10 11:53:56.000000000 +0000 @@ -83,7 +83,7 @@ { return node; } -static inline void of_node_put(struct device_node *node) { } +static inline void of_node_put(struct device_node *node __maybe_unused) { } #endif /* !CONFIG_OF_DYNAMIC */ #ifdef CONFIG_OF @@ -226,6 +226,8 @@ return num; } +/* cache lookup */ +extern struct device_node *of_find_next_cache_node(const struct device_node *); extern struct device_node *of_find_node_with_property( struct device_node *from, const char *prop_name); #define for_each_node_with_property(dn, prop_name) \ @@ -264,6 +266,7 @@ extern const void *of_get_property(const struct device_node *node, const char *name, int *lenp); +extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread); #define for_each_property_of_node(dn, pp) \ for (pp = dn->properties; pp != NULL; pp = pp->next) @@ -451,6 +454,12 @@ return NULL; } +static inline struct device_node *of_get_cpu_node(int cpu, + unsigned int *thread) +{ + return NULL; +} + static inline int of_property_read_u64(const struct device_node *np, const char *propname, u64 *out_value) { @@ -506,7 +515,7 @@ #endif /* CONFIG_OF */ #ifndef of_node_to_nid -static inline int of_node_to_nid(struct device_node *np) +static inline int of_node_to_nid(struct device_node *np __maybe_unused) { return numa_node_id(); }