--- zzzz-none-000/linux-3.10.107/include/linux/nodemask.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/nodemask.h 2021-11-10 11:53:56.000000000 +0000 @@ -440,20 +440,22 @@ #else -static inline int node_state(int node, enum node_states state) +static inline int node_state(int node, enum node_states state __maybe_unused) { return node == 0; } -static inline void node_set_state(int node, enum node_states state) +static inline void node_set_state(int node __maybe_unused, + enum node_states state __maybe_unused) { } -static inline void node_clear_state(int node, enum node_states state) +static inline void node_clear_state(int node __maybe_unused, + enum node_states state __maybe_unused) { } -static inline int num_node_state(enum node_states state) +static inline int num_node_state(enum node_states state __maybe_unused) { return 1; } @@ -474,7 +476,7 @@ #if defined(CONFIG_NUMA) && (MAX_NUMNODES > 1) extern int node_random(const nodemask_t *maskp); #else -static inline int node_random(const nodemask_t *mask) +static inline int node_random(const nodemask_t *mask __maybe_unused) { return 0; }