--- zzzz-none-000/linux-2.6.39.4/include/linux/nodemask.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/nodemask.h 2021-11-10 13:38:17.000000000 +0000 @@ -432,20 +432,20 @@ } #else -static inline int node_state(int node, enum node_states state) +static inline int node_state(int node, enum node_states state __attribute__((unused))) { return node == 0; } -static inline void node_set_state(int node, enum node_states state) +static inline void node_set_state(int node __attribute__((unused)), enum node_states state __attribute__((unused))) { } -static inline void node_clear_state(int node, enum node_states state) +static inline void node_clear_state(int node __attribute__((unused)), enum node_states state __attribute__((unused))) { } -static inline int num_node_state(enum node_states state) +static inline int num_node_state(enum node_states state __attribute__((unused))) { return 1; }