Commit 00929447f5758c4f64c74d0a4b40a6eb3d9df0e3

Authored by YueHaibing
Committed by Miklos Szeredi
1 parent c634da718d

virtiofs: Fix old-style declaration

There expect the 'static' keyword to come first in a declaration, and we
get warnings like this with "make W=1":

fs/fuse/virtio_fs.c:687:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
fs/fuse/virtio_fs.c:692:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
fs/fuse/virtio_fs.c:1029:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -684,12 +684,12 @@
684 684 }
685 685 #endif /* CONFIG_PM_SLEEP */
686 686  
687   -const static struct virtio_device_id id_table[] = {
  687 +static const struct virtio_device_id id_table[] = {
688 688 { VIRTIO_ID_FS, VIRTIO_DEV_ANY_ID },
689 689 {},
690 690 };
691 691  
692   -const static unsigned int feature_table[] = {};
  692 +static const unsigned int feature_table[] = {};
693 693  
694 694 static struct virtio_driver virtio_fs_driver = {
695 695 .driver.name = KBUILD_MODNAME,
... ... @@ -1026,7 +1026,7 @@
1026 1026 }
1027 1027 }
1028 1028  
1029   -const static struct fuse_iqueue_ops virtio_fs_fiq_ops = {
  1029 +static const struct fuse_iqueue_ops virtio_fs_fiq_ops = {
1030 1030 .wake_forget_and_unlock = virtio_fs_wake_forget_and_unlock,
1031 1031 .wake_interrupt_and_unlock = virtio_fs_wake_interrupt_and_unlock,
1032 1032 .wake_pending_and_unlock = virtio_fs_wake_pending_and_unlock,