diff --git a/mm/swap_state.c b/mm/swap_state.c index 751c1ef2fe0ec02d6f59f305dcfabc4a2034a6ef..3507c82b2ef1a1b6f5f555d389398dd88a150fa6 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -927,7 +927,7 @@ static struct attribute *swap_attrs[] = { NULL, }; -static struct attribute_group swap_attr_group = { +static const struct attribute_group swap_attr_group = { .attrs = swap_attrs, };