From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v2] kvm: x86: mmu: Add cast to negated bitmasks in update_permission_bitmask() Date: Mon, 25 Jun 2018 19:01:42 +0200 Message-ID: References: <20180619192504.180479-1-mka@chromium.org> <4dd99306-4fea-24b2-4bea-5b7927ea5e79@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Matthias Kaehlcke , rkrcmar@redhat.com, Thomas Gleixner , hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org, LKML , joe@perches.com To: Nick Desaulniers Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 25/06/2018 18:47, Nick Desaulniers wrote: > Here's an actual bug this warning caught applied to drivers/input/: > > dae1a432ab1f ("Input: mousedev - fix implicit conversion warning"): > https://patchwork.kernel.org/patch/9753771/ > How does the warning catch a bug there? While I do prefer the code after the patch, wouldn't everything work just fine with "signed char ps2[6]". So it seems to me in that case (unlike KVM) the warning caught some ugly code, but not a bug. (In fact if there was a bug, it should have been mentioned in the commit message, but it wasn't). Paolo