--- a/mm/swap_state.c~mm-swap_state-constify-static-struct-attribute_group +++ a/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, };