Skip to content

Commit

Permalink
vhost: Storage class should be before const qualifier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Michael S. Tsirkin committed May 27, 2010
1 parent 7a9b149 commit 373a83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vhost/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 373a83a

Please sign in to comment.