--- zzzz-none-000/linux-4.1.38/include/linux/of.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/of.h 2020-11-25 10:06:48.000000000 +0000 @@ -110,7 +110,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 */ /* Pointer for first entry in chain of all nodes. */ @@ -673,7 +673,7 @@ #if defined(CONFIG_OF) && defined(CONFIG_NUMA) extern int of_node_to_nid(struct device_node *np); #else -static inline int of_node_to_nid(struct device_node *device) +static inline int of_node_to_nid(struct device_node *device __maybe_unused) { return NUMA_NO_NODE; } @@ -1032,21 +1032,21 @@ return of_changeset_action(ocs, OF_RECONFIG_UPDATE_PROPERTY, np, prop); } #else /* CONFIG_OF_DYNAMIC */ -static inline int of_reconfig_notifier_register(struct notifier_block *nb) +static inline int of_reconfig_notifier_register(struct notifier_block *nb __maybe_unused) { return -EINVAL; } -static inline int of_reconfig_notifier_unregister(struct notifier_block *nb) +static inline int of_reconfig_notifier_unregister(struct notifier_block *nb __maybe_unused) { return -EINVAL; } -static inline int of_reconfig_notify(unsigned long action, - struct of_reconfig_data *arg) +static inline int of_reconfig_notify(unsigned long action __maybe_unused, + struct of_reconfig_data *arg __maybe_unused) { return -EINVAL; } -static inline int of_reconfig_get_state_change(unsigned long action, - struct of_reconfig_data *arg) +static inline int of_reconfig_get_state_change(unsigned long action __maybe_unused, + struct of_reconfig_data *arg __maybe_unused) { return -EINVAL; } @@ -1079,12 +1079,12 @@ #else -static inline int of_overlay_create(struct device_node *tree) +static inline int of_overlay_create(struct device_node *tree __maybe_unused) { return -ENOTSUPP; } -static inline int of_overlay_destroy(int id) +static inline int of_overlay_destroy(int id __maybe_unused) { return -ENOTSUPP; }