diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-09-30 18:17:24 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2017-10-02 20:40:05 +0200 |
commit | 79d40370e8d31886a9413e2ee115fc426b4ae97e (patch) | |
tree | fb312d986f7cac861a524e5bdb1edd2ee2c929e2 /samples/vfio-mdev | |
parent | vfio/spapr: Add cond_resched() for huge updates (diff) | |
download | linux-79d40370e8d31886a9413e2ee115fc426b4ae97e.tar.xz linux-79d40370e8d31886a9413e2ee115fc426b4ae97e.zip |
vfio-mdev/samples: make mdev_fops const and static
Make this const as it is only passed to a const argument of the function
mdev_register_device. Make it static as it is not referenced in any
other file.
Structure found using Coccinelle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples/vfio-mdev')
-rw-r--r-- | samples/vfio-mdev/mtty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c index ca495686b9c3..09f255bdf3ac 100644 --- a/samples/vfio-mdev/mtty.c +++ b/samples/vfio-mdev/mtty.c @@ -1413,7 +1413,7 @@ struct attribute_group *mdev_type_groups[] = { NULL, }; -struct mdev_parent_ops mdev_fops = { +static const struct mdev_parent_ops mdev_fops = { .owner = THIS_MODULE, .dev_attr_groups = mtty_dev_groups, .mdev_attr_groups = mdev_dev_groups, |