vhost: Storage class should be before const qualifier
authorTobias Klauser <tklauser@distanz.ch>
Mon, 17 May 2010 13:12:49 +0000 (15:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 May 2010 09:23:49 +0000 (12:23 +0300)
The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c

index aa88911c95045d10e1089ae477b1f43eab7de614..cd36f5ff225541ff07e4fab74da45f51455a642f 100644 (file)
@@ -626,7 +626,7 @@ static long vhost_net_compat_ioctl(struct file *f, unsigned int ioctl,
 }
 #endif
 
-const static struct file_operations vhost_net_fops = {
+static const struct file_operations vhost_net_fops = {
        .owner          = THIS_MODULE,
        .release        = vhost_net_release,
        .unlocked_ioctl = vhost_net_ioctl,