]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-mdev/samples: make mdev_fops const and static
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 30 Sep 2017 16:17:24 +0000 (21:47 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Oct 2017 18:40:05 +0000 (12:40 -0600)
commitd450d703fc79644492d86c3b5d4aec612a14580a
treefb312d986f7cac861a524e5bdb1edd2ee2c929e2
parente6b8c18ae669929755c8d9c38dfb37f61c924274
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>
samples/vfio-mdev/mtty.c