> diff --git a/drivers/vfio/mdev/mdev_sysfs.c b/drivers/vfio/mdev/mdev_sysfs.c > index 5a3873d1a275ae..0ccfeb3dda2455 100644 > --- a/drivers/vfio/mdev/mdev_sysfs.c > +++ b/drivers/vfio/mdev/mdev_sysfs.c > @@ -244,11 +244,20 @@ static ssize_t remove_store(struct device *dev, struct device_attribute *attr, > > static DEVICE_ATTR_WO(remove); > > -static const struct attribute *mdev_device_attrs[] = { > +static struct attribute *mdev_device_attrs[] = { Why does this lose the const? Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>