Received: by 10.213.65.68 with SMTP id h4csp741930imn; Fri, 6 Apr 2018 08:09:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+CtOkgJ+5cBglggBbdBrpIog0CdB7F3BkxAThPtsQ5qTuMcIa4h/MwlpXZSYHf2wgUyeA/ X-Received: by 2002:a17:902:9a88:: with SMTP id w8-v6mr27692199plp.29.1523027344998; Fri, 06 Apr 2018 08:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523027344; cv=none; d=google.com; s=arc-20160816; b=XEoCUuewx878IJK8UGRk9ry1EDx9c9Iej9oqMs8Gb0Z5qrPw78Obl4wBA5IlAJgcJT F6PurYEN2HlMT7GmfANq0jqdodScg+5k4NbQ8fxGcdsAJbdN9wUCLJu52qHDRWs2hlzM aNHbJnejm/aUg+paP0bEoZygHot3qWk8UJp62KIPW675PauAIXUV8awZE9FDjoNMBjt3 iGs9BLA6V3a6XGyUXExiA4oN8t8nh0diK3qllzH2L0AWJBEPkIyR249f4NL51x6IyTz/ OaP2MpJQefR3ChwfO4HfgOkZrVKKevM0DZWFUdmAFDjnIvwzaDy0sV/Mxa3jQEN9Kk6y LGPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=We3ho7eDbKnIQM8zPez9fOLDjfm4axdre/yOvkkdgwY=; b=LqPJqHToZDzKUI3hHTZ+QT9zcChnTKl/wa6zTxSYjOIzetr8F+0yHAaZvHvzx5b0DD z3m2RvH0itPBxYaaI51Q+X90Q7MaGsbq1y8sUJBjd0cPhCtAU6OAK2pCzvihYHsvUlQh qDUVsOzP+EFq6WGQ8dQTDafb/8SYnK99ODyrxuxUQqYckGsjkXqTwrFxczOlm/N4TE5Z d0s22JQN4mqkXDr5iHzJSf+mOMCVm4fjd2uf0WPdfJe/iMi9sT/rfdPUicYtYAaxeaHO 2SceaXgKN4Y/YnFFSn0Cv+nmsYFsLkdWN21R1ni5PnoTgRKxOQOaELB0VQKtfDJtNyU+ R7xA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i75si6904236pgd.399.2018.04.06.08.08.50; Fri, 06 Apr 2018 08:09:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755082AbeDFPGk (ORCPT + 99 others); Fri, 6 Apr 2018 11:06:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55958 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754434AbeDFN3z (ORCPT ); Fri, 6 Apr 2018 09:29:55 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1DA8FD51; Fri, 6 Apr 2018 13:29:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Charlebois , Behan Webster , Matthias Kaehlcke , Arnd Bergmann , Al Viro , Nathan Chancellor Subject: [PATCH 4.4 21/72] fs: compat: Remove warning from COMPATIBLE_IOCTL Date: Fri, 6 Apr 2018 15:23:22 +0200 Message-Id: <20180406084306.917330581@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084305.210085169@linuxfoundation.org> References: <20180406084305.210085169@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mark Charlebois commit 9280cdd6fe5b8287a726d24cc1d558b96c8491d7 upstream. cmd in COMPATIBLE_IOCTL is always a u32, so cast it so there isn't a warning about an overflow in XFORM. From: Mark Charlebois Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster Signed-off-by: Matthias Kaehlcke Acked-by: Arnd Bergmann Signed-off-by: Al Viro Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- fs/compat_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -811,7 +811,7 @@ static int compat_ioctl_preallocate(stru */ #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