KVM: Fix WARNINGs for 'sizeof(X)' instead of 'sizeof X' in kvm_main.c
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Thu, 26 Feb 2015 06:58:19 +0000 (14:58 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 10 Mar 2015 13:37:43 +0000 (10:37 -0300)
commit893bdbf16574e781504ea2a767ff8919d1394e52
tree7bbf7de4d0ae552be5d664dd1bd3ed80a398c663
parent548ef28449c0c06f92194c40ff0eaed248cb4b75
KVM: Fix WARNINGs for 'sizeof(X)' instead of 'sizeof X' in kvm_main.c

There are many WARNINGs like this:
WARNING: sizeof tr should be sizeof(tr)
+ if (copy_from_user(&tr, argp, sizeof tr))

In kvm_main.c many places are using 'sizeof(X)', and the other places
are using 'sizeof X', while the kernel recommands to use 'sizeof(X)',
so this patch will replace all 'sizeof X' to 'sizeof(X)' to make them
consistent and at the same time to reduce the WARNINGs noise when we
are checking new patches.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c