From: Arvind Yadav Date: Tue, 18 Jul 2017 09:45:01 +0000 (+0530) Subject: wireless: iwlegacy: constify attribute_group structures. X-Git-Tag: Ubuntu-5.13.0-19.19~12691^2~486^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=64571ca71bbfa890321ff14cf18c74089a23e4d1;p=mirror_ubuntu-jammy-kernel.git wireless: iwlegacy: constify attribute_group structures. attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: David S. Miller --- diff --git a/drivers/net/wireless/intel/iwlegacy/3945-mac.c b/drivers/net/wireless/intel/iwlegacy/3945-mac.c index 38bf403bb1e1..329f3a63dadd 100644 --- a/drivers/net/wireless/intel/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/3945-mac.c @@ -3464,7 +3464,7 @@ static struct attribute *il3945_sysfs_entries[] = { NULL }; -static struct attribute_group il3945_attribute_group = { +static const struct attribute_group il3945_attribute_group = { .name = NULL, /* put in device directory */ .attrs = il3945_sysfs_entries, };