Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4931651yba; Mon, 13 May 2019 02:15:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH/QsczbZ3CZgTLD3UehTpBLjlaQeDI7kq4bLNMzDZf5RsR6S3Y1J9ZXJuBCReh9bfiGkT X-Received: by 2002:a63:6b06:: with SMTP id g6mr18442134pgc.346.1557738938776; Mon, 13 May 2019 02:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557738938; cv=none; d=google.com; s=arc-20160816; b=ObezZ/OOJiasfpAhR9ArUILjF73Lvf6zjfHfXnDr3w9oY5LA/qwkIZ8BvrAHZMOVFl Tekc1oP3x52tHr7ilBOXiQpgqwgaQew8B6ngweI6GEOO8ykzT/dxEMmK5MlRVyN5PEMi KNc7DQFwFrTcCahLURjSTU5cQu73sVYe8ECD9bvcKUhaN/usYHdTRnjDrNcUbBTLuM6u tYFlQpU1MhN2+JEvs91PstX6/xrj6QEpRXNqkn29RvpfPADXC6AK1MdnDBsXloJtszA3 kY9VGGXEUU9Q4eX/6J8X8skrk8hxcuwaOrTksZeJt5LSKH37lBg1RUJLo/t7kxBnrJPy BHTA== 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 :message-id:in-reply-to:subject:cc:to:from:date; bh=/Dn7LWwdKrhUNgLUdRNjY1/hTO8PhwhgHA+liIAmbbg=; b=MDz9W3sFK51CRBMN0/ZQogpEjgo6ZsWEmJEZeAJbGRCvp0zXS6xUHO0CyCqW4UngaD Sa3M8tYN0aIYcPqcucWNdo83Va/4SiyQrF76Rp3juxcv0HjO6alW3W956tAij/p2+bOE JfZdDoWtp+Tfiv5Gz8sWRNYAcave6lFiq6YRftCpHrO5Kqjh5TspiB0p4Nsm8rCppJfz 5tdgHdLDYdRP6TfKrLwZxuAt3BS8JHiYZXYwU+YT/Ip8L1EaDQmL8IU8LW9jhp8ds8pF xzHbPstCqwyC/JrhIjjhWnUG3mm/FugJkgDRk0H3mc3KfyfGhxG2xEUlA3DlV+x7Z0UI gEVw== 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 t11si16363340pgj.284.2019.05.13.02.15.22; Mon, 13 May 2019 02:15:38 -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 S1728410AbfEMJAb (ORCPT + 99 others); Mon, 13 May 2019 05:00:31 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:38115 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbfEMJAb (ORCPT ); Mon, 13 May 2019 05:00:31 -0400 X-IronPort-AV: E=Sophos;i="5.60,465,1549926000"; d="scan'208";a="305784263" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 11:00:01 +0200 Date: Mon, 13 May 2019 10:59:57 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Amelie Delaunay cc: Lee Jones , Linus Walleij , Alexandre Torgue , Maxime Coquelin , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, kbuild-all@01.org, Julia Lawall Subject: Re: [PATCH] pinctrl: stmfx: Fix comparison of unsigned expression warnings In-Reply-To: <1557732606-14662-1-git-send-email-amelie.delaunay@st.com> Message-ID: References: <1557732606-14662-1-git-send-email-amelie.delaunay@st.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 May 2019, Amelie Delaunay wrote: > 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 Acked-by: Julia Lawall > --- > 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 > >