From patchwork Wed Sep 24 03:47:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 37778 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 762C320792 for ; Wed, 24 Sep 2014 03:47:34 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id hi2sf3133385wib.6 for ; Tue, 23 Sep 2014 20:47:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=QaceiEq4Spt55TYPJkIi4B26ZkgZY+m0P7RdiH3I23A=; b=m9FKkCqoKdRK6WSN4G6Cgf34gDgiUomDx1fXYtLtRutzYXS8Ce2Yk30RNgunh95ZJf ncgriwuvTXdbSJqYKYDuCRBcEqIWe4T+IEOYh8d65DTgl5aRW3jPJYzTCCfwt75TzjgN Y9I6uTYBZ/mYsVxFtKD3Nq4ZXeVl+AXGiYrW9Dh2OtHTumU1GywZggKcMD/8Xj+/WNlY 8x7fYphzTu4CP7miWciPscCWAryIkDfiG8WOnSefJLblVS8GZzQBC9dfYqYAvNIVuVCj Ix7re/+8Da0HBHo0HeAsb/nq8yzhappip6de4dB0tHrvoosG22g9eZQYbZubTXXPMNTD nzEw== X-Gm-Message-State: ALoCoQlLF4udLS1s4m2aD/hGpRviJPPrbQRln+yiZLStBc9GXQaRvUdEpoativsRxLiEJVl/Yhh7 X-Received: by 10.152.21.137 with SMTP id v9mr580565lae.1.1411530453623; Tue, 23 Sep 2014 20:47:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.65 with SMTP id 1ls109757las.63.gmail; Tue, 23 Sep 2014 20:47:33 -0700 (PDT) X-Received: by 10.112.125.132 with SMTP id mq4mr190061lbb.103.1411530453330; Tue, 23 Sep 2014 20:47:33 -0700 (PDT) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [2a00:1450:4010:c03::229]) by mx.google.com with ESMTPS id x5si21055314lal.109.2014.09.23.20.47.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 20:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::229 as permitted sender) client-ip=2a00:1450:4010:c03::229; Received: by mail-la0-f41.google.com with SMTP id s18so9932337lam.14 for ; Tue, 23 Sep 2014 20:47:33 -0700 (PDT) X-Received: by 10.112.210.197 with SMTP id mw5mr3554019lbc.20.1411530453268; Tue, 23 Sep 2014 20:47:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp520087lbb; Tue, 23 Sep 2014 20:47:32 -0700 (PDT) X-Received: by 10.66.119.175 with SMTP id kv15mr5587534pab.30.1411530451034; Tue, 23 Sep 2014 20:47:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rw9si24152057pab.37.2014.09.23.20.47.30 for ; Tue, 23 Sep 2014 20:47:31 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755433AbaIXDr0 (ORCPT + 27 others); Tue, 23 Sep 2014 23:47:26 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:39661 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754290AbaIXDrW (ORCPT ); Tue, 23 Sep 2014 23:47:22 -0400 Received: by mail-pd0-f169.google.com with SMTP id fp1so3597497pdb.0 for ; Tue, 23 Sep 2014 20:47:22 -0700 (PDT) X-Received: by 10.66.162.40 with SMTP id xx8mr5320336pab.31.1411530442298; Tue, 23 Sep 2014 20:47:22 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id i10sm13409633pdn.26.2014.09.23.20.47.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Sep 2014 20:47:20 -0700 (PDT) From: Behan Webster To: viro@zeniv.linux.org.uk Cc: behanw@converseincode.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Charlebois 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> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::229 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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