Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4880171yba; Mon, 13 May 2019 01:05:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+DBD/RC4IIl1U6ZG/M/004iJHGHUiyjguvdUdWNDGJUvy9op+r/dq4FCwwLQtRhsW53EI X-Received: by 2002:aa7:8a81:: with SMTP id a1mr30810071pfc.121.1557734740437; Mon, 13 May 2019 01:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557734740; cv=none; d=google.com; s=arc-20160816; b=Ec1Rsw+XoDEYAKmI/AgmXM7x1YhJ4DFH24jZOn8jEyrQzcKc5P41OD6TyuwjYmBXJs SPH0OfEzWjDBUqIE0tGaBFvtvmkb5zDDafylRxUgBiEFzWpbMyxWisoIedSgpGyRZQ6p UNviNq5Z4qIINULcnBzVeUjhBy1QAXx3ErNRxZ81L53dNo4PhmYRBaq+v+uEOhTAIIOM y2QPzBL0l1aM8qhbFiTon0iJU62UD/Q5wkzm8cIQ5p0w/SBBUc2vWjYKSzPxCokZkJf0 x5g3GuwbcSHtQkcRxXH6pb2loXtKoTZtgxtWREyFQ2Af1m5AtV76DkfFiEcaoJCYBB2h pAGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=bURCBAue+7AyVWgZbYBJxzJiyLeB1d3yp/jM0DfADTU=; b=p60ETRb0quxvGwebcGn4B1RBupPgP7061piUYjNzu7aGjtclwzBCmIs9CgvssxQpGS nO2lw6PmvIBCASAyZd2Ms4O0AWAhZUaaUvqQUWbSyCJz/HFHnXz+rRORkBHTgr/iQsUR oXA7M+oQOOhxoufYR6gITkoF+vwud4X/qnYcmA9AD9MgJC5v0YylJsUj6miHkhmKHhim Tx4u4/6DLwdGhFYiKuwmN5hm2ENUo7M4PUcHs4gZfDjxq96krX6/j4TirCGehuQwlLdX zz/8RSvk5wIJqJ6E/bLDKrbn5Lz2/pJY2bsTkhlDrzxbcdD9Iy3yCaIvz8r7MLJmHyKc 227w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=w5r30mez; 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 f34si14809611pgb.49.2019.05.13.01.05.24; Mon, 13 May 2019 01:05:40 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=w5r30mez; 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 S1727664AbfEMHaV (ORCPT + 99 others); Mon, 13 May 2019 03:30:21 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:40928 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727462AbfEMHaV (ORCPT ); Mon, 13 May 2019 03:30:21 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4D7QM1I009050; Mon, 13 May 2019 09:30:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=bURCBAue+7AyVWgZbYBJxzJiyLeB1d3yp/jM0DfADTU=; b=w5r30mezaFZfl7jNNnVNJBezsOhfZikY7nVPMZ+/ame+5Zq/sSr42IqClHXTF/tKMbFV nfxMdgOdbchEB8YQb43ZjMJG4oIMjRa37j4A14DHo0YfSNfRdroepmCd6TMMEqLIHs4a 95nQX7fU16DnnEgaS+7ntboGSc+API5ZZTWcpvhDLYFyoaWyK8LoeHSf3acYFdLdBe6j 85lgjymtnF4UNA13xo8WhhvCFjDlrFqAISR76q1OOISpK9iMhfggirL7LA+AXYf32kpB BI7GmjLUKV02lmCbNiD4LZOTR4cuahQBBfJYY3tKDuKBLDYm7ROFT2441a3Se5jM9YoE mw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2sdn9fhe80-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 13 May 2019 09:30:09 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C69943A; Mon, 13 May 2019 07:30:08 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 987B5141A; Mon, 13 May 2019 07:30:08 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 13 May 2019 09:30:08 +0200 Received: from localhost (10.201.20.5) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 13 May 2019 09:30:07 +0200 From: Amelie Delaunay To: Lee Jones , Linus Walleij , Alexandre Torgue , Maxime Coquelin CC: , , , , , Julia Lawall , Amelie Delaunay Subject: [PATCH] pinctrl: stmfx: Fix comparison of unsigned expression warnings Date: Mon, 13 May 2019 09:30:06 +0200 Message-ID: <1557732606-14662-1-git-send-email-amelie.delaunay@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.5] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-13_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following warnings: drivers/pinctrl/pinctrl-stmfx.c:225:5-8: WARNING: Unsigned expression compared with zero: dir < 0 drivers/pinctrl/pinctrl-stmfx.c:231:5-9: WARNING: Unsigned expression compared with zero: pupd < 0 drivers/pinctrl/pinctrl-stmfx.c:228:5-9: WARNING: Unsigned expression compared with zero: type < 0 Fixes: 1490d9f841b1 ("pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver") Reported-by: kbuild test robot Reported-by: Julia Lawall Signed-off-by: Amelie Delaunay --- drivers/pinctrl/pinctrl-stmfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index bcd8126..3bd5d6f 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -213,7 +213,7 @@ static int stmfx_pinconf_get(struct pinctrl_dev *pctldev, struct stmfx_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); u32 param = pinconf_to_config_param(*config); struct pinctrl_gpio_range *range; - u32 dir, type, pupd; + int dir, type, pupd; u32 arg = 0; int ret; -- 2.7.4