]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbc17fa67e72f8633ec1deabf3652a5ea5d36033
tree7bbf7de4d0ae552be5d664dd1bd3ed80a398c663
parente6fe122ffd8bff6ec2d71dfe9fd56ba080b79211
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