From mboxrd@z Thu Jan 1 00:00:00 1970 From: Behan Webster Subject: [PATCH] fs, LLVMLinux: Remove warning from COMPATIBLE_IOCTL Date: Tue, 23 Sep 2014 20:47:17 -0700 Message-ID: <1411530437-30339-1-git-send-email-behanw@converseincode.com> Cc: behanw@converseincode.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Charlebois To: viro@zeniv.linux.org.uk Return-path: Received: from mail-pd0-f175.google.com ([209.85.192.175]:56176 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752468AbaIXDrW (ORCPT ); Tue, 23 Sep 2014 23:47:22 -0400 Received: by mail-pd0-f175.google.com with SMTP id v10so6501110pde.20 for ; Tue, 23 Sep 2014 20:47:22 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Mark Charlebois cmd in COMPATIBLE_IOCTL is always a u32, so cast it so there isn't a warning about an overflow in XFORM. Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster Acked-by: Arnd Bergmann --- fs/compat_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index afec645..f6ce1aa 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -810,7 +810,7 @@ static int compat_ioctl_preallocate(struct file *file, */ #define XFORM(i) (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0xffffffff) -#define COMPATIBLE_IOCTL(cmd) XFORM(cmd), +#define COMPATIBLE_IOCTL(cmd) XFORM((u32)cmd), /* ioctl should not be warned about even if it's not implemented. Valid reasons to use this: - It is implemented with ->compat_ioctl on some device, but programs -- 1.9.1