From patchwork Fri Sep 5 23:36:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 36918 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 03B9D202E4 for ; Fri, 5 Sep 2014 23:36:58 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id va2sf62784953obc.3 for ; Fri, 05 Sep 2014 16:36:58 -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=BpdOFPj0ktNFSg68ywXHkB3538HcWnHr31aWStAfpck=; b=gn8uSAw7dGEJb3EQVPuKDbnFbaZ4cIpr/44AvyEexX0PyZQ3wFbd6m2fpQtkG+HCaP JImePSceuKeXsDoqZ06yGtaSPR2AlEKklVvJJ+CkpeUa3nfaplcxhPQmvrHpS+zAZ+8Q 6D13ylzER5+GkeKdAAV501sufPqJK4ORIqx3D4vlL9bhBSKOFsZJRGszHXggUDxJ5Rrw nGgNo9Ov2gEuw0U6wjiBkqLLJzb74vBy6nQKsP1UvegyAG5N9JVxgXBDVn3BEgZEPDVI lYZqj6mzcF47DcIaNM7JZX52X0xClImdL3jVC8matI9kTYeYkKYRIAlRdcGNh0KB8RUA XiNA== X-Gm-Message-State: ALoCoQkPdYCQPe/EdIM3d/Pv09FU0Ov+SVoGUK/np9V6A/6hu3v6hii37Ie7MRfAwmvnz7Hx2CJv X-Received: by 10.42.207.146 with SMTP id fy18mr8971537icb.12.1409960218609; Fri, 05 Sep 2014 16:36:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.19.108 with SMTP id 99ls953012qgg.29.gmail; Fri, 05 Sep 2014 16:36:58 -0700 (PDT) X-Received: by 10.52.138.210 with SMTP id qs18mr10907859vdb.18.1409960218509; Fri, 05 Sep 2014 16:36:58 -0700 (PDT) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [2607:f8b0:400c:c03::22c]) by mx.google.com with ESMTPS id qh2si1549942vcb.81.2014.09.05.16.36.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 16:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22c as permitted sender) client-ip=2607:f8b0:400c:c03::22c; Received: by mail-vc0-f172.google.com with SMTP id le20so1750698vcb.17 for ; Fri, 05 Sep 2014 16:36:58 -0700 (PDT) X-Received: by 10.221.64.142 with SMTP id xi14mr4192735vcb.31.1409960218354; Fri, 05 Sep 2014 16:36:58 -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.221.45.67 with SMTP id uj3csp151098vcb; Fri, 5 Sep 2014 16:36:57 -0700 (PDT) X-Received: by 10.70.44.138 with SMTP id e10mr7574046pdm.22.1409960216848; Fri, 05 Sep 2014 16:36:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pl9si6236551pbb.180.2014.09.05.16.36.56 for ; Fri, 05 Sep 2014 16:36:56 -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 S1752542AbaIEXgy (ORCPT + 26 others); Fri, 5 Sep 2014 19:36:54 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36792 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbaIEXgx (ORCPT ); Fri, 5 Sep 2014 19:36:53 -0400 Received: by mail-pa0-f43.google.com with SMTP id bj1so69158pad.2 for ; Fri, 05 Sep 2014 16:36:52 -0700 (PDT) X-Received: by 10.70.50.170 with SMTP id d10mr24762773pdo.33.1409960212872; Fri, 05 Sep 2014 16:36:52 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id b9sm2612879pbu.91.2014.09.05.16.36.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 16:36:51 -0700 (PDT) From: behanw@converseincode.com To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, Mark Charlebois , Behan Webster Subject: [PATCH] fs, LLVMLinux: Remove warning from COMPATIBLE_IOCTL Date: Fri, 5 Sep 2014 16:36:39 -0700 Message-Id: <1409960199-29331-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 2607:f8b0:400c:c03::22c 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 --- 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