mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
drivers: hv: fix up const issue with vmbus_chan_bin_attrs
In commit9bec944506("sysfs: constify attribute_group::bin_attrs"), the bin_attributes are now required to be const. Due to merge issues, the original commit could not modify this structure (it came in through a different branch.) Fix this up now by setting the variable properly. Cc: Thomas Weißschuh <linux@weissschuh.net> Cc: Naman Jain <namjain@linux.microsoft.com> Fixes:9bec944506("sysfs: constify attribute_group::bin_attrs") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f27ae3a6ce
commit
ec18d5c41e
|
|
@ -1841,7 +1841,7 @@ static struct attribute *vmbus_chan_attrs[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static struct bin_attribute *vmbus_chan_bin_attrs[] = {
|
||||
static const struct bin_attribute *vmbus_chan_bin_attrs[] = {
|
||||
&chan_attr_ring_buffer,
|
||||
NULL
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user