Received: by 10.213.65.68 with SMTP id h4csp720857imn; Fri, 6 Apr 2018 07:50:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx48n/jqPMey9vdQxV6ViEobpfCoiCC9iCkNtRm1Gf0VDBvwMoN1vbXWd/Er+dlbtaEN4zBhk X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr27202877plt.366.1523026232403; Fri, 06 Apr 2018 07:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523026232; cv=none; d=google.com; s=arc-20160816; b=ltB0Ec8Ee+eEgokj7D/mu8TlV/upcnS/F8yckmncQv/J3l4TVQU2UmJhpXyBg8PE50 CgqcgWvjiLJ81SptH8cpILYjuzFSV89YDG7iXGtvtcgj1AZfEIriQ1N+qK8HPv7Hy1iq cefMlLtMiY5VyI6iYK012kw5nqP0YV+ejorqcxruHaTREOv5qTco7NqJYn/BW3h93dKt 1ptK0jF66d+s9QSE12Ud4H2IaP+SVkMrbQrxvookzXK89H3yglplFJ+4Md7f6awDiccn vqVrSQZvYAq9enSZw31Wf5k6h3c042hN1hvXOsI9JnTtnpWuDVJBJQuuX9yUyzAo9VHV zifA== 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=HsH4ttOoWhD1id+RBZfljWV1GsDkrEUjZ6teO23jIKA=; b=eIGYUrIBOdO8B6SY3XI7UGric9kHGnAHLxuYQLwi3jqCKJSjNtiaTxJm624YoSHhBa LLSCSbdEt8S7M1/XQ4zyxIeXaQf+YyDYVF0LaMa31Y74mLpBctOQQhcrhKJnhrbtLEoe 8wzEaIeZ6f3PCQDoDS4MX8nOleLj9H05fBmk2q3y1GC9UmeZTh5QDzeFGP/GHAtZQLXu t62zvGaR99q71+GHD1Mo2A+kOQKb+dh3jQ9rdwbqgMoPRME42hmMIwkTk7WOVR4nnQZj WWV9gIC72fiPlKjdXNuapeKnTTnHFxkKZJgUb7VPiTRvMGYtCXRfAt/m516zg2YHZKmV nJ6g== 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 136si7229611pgf.810.2018.04.06.07.50.18; Fri, 06 Apr 2018 07:50:32 -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 S1755557AbeDFNdT (ORCPT + 99 others); Fri, 6 Apr 2018 09:33:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57814 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755536AbeDFNdP (ORCPT ); Fri, 6 Apr 2018 09:33:15 -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 2F951CC9; Fri, 6 Apr 2018 13:33:14 +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.9 020/102] fs: compat: Remove warning from COMPATIBLE_IOCTL Date: Fri, 6 Apr 2018 15:23:01 +0200 Message-Id: <20180406084334.454436492@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@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.9-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 @@ -833,7 +833,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