Message ID | 1365918945.1878.8.camel@joe-AO722 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Joe, On Sat, 13 Apr 2013 22:55:45 -0700, Joe Perches <joe@perches.com> wrote: > commit 3401d54696f ("KVM: ARM: Introduce KVM_ARM_SET_DEVICE_ADDR ioctl") > added the case, but omitted adding break; [...] Already reported here: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-April/160127.html > $ grep -rP --include=*.[ch] > "\b(\w+)\s*=[^;]+;\s*(?:case\s+\w+:|default:)\s*\1\s*=" Cool regexp! :-) Cheers, M.
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 5777e0c..b9f2228 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -198,6 +198,7 @@ int kvm_dev_ioctl_check_extension(long ext) break; case KVM_CAP_ARM_SET_DEVICE_ADDR: r = 1; + break; case KVM_CAP_NR_VCPUS: r = num_online_cpus(); break;
commit 3401d54696f ("KVM: ARM: Introduce KVM_ARM_SET_DEVICE_ADDR ioctl") added the case, but omitted adding break; Add it. Found with grep version 2.54 pattern: $ grep -rP --include=*.[ch] "\b(\w+)\s*=[^;]+;\s*(?:case\s+\w+:|default:)\s*\1\s*=" Signed-off-by: Joe Perches <joe@perches.com> ---