From patchwork Mon May 13 07:34:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 164005 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1000445ili; Mon, 13 May 2019 00:34:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyv/rZ+ErXC+LeZq2KufMkRur0C169xreaJRREDLWMDUZd1TuI1NGX/gcjYgS2xHwUPdr7d X-Received: by 2002:a63:2745:: with SMTP id n66mr28740940pgn.208.1557732889507; Mon, 13 May 2019 00:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557732889; cv=none; d=google.com; s=arc-20160816; b=GFZsViG6b9XG03Ci3K1C2NT9H5OA3nFqoZDkiThCQaWlTz3323AYB5K4E8w4GeFtMl JnMQr7ds/9+stDxfsLtEi5PhDxyAXAdHfCj4zjHthDpZSqsVDmZswltLWTuw7QlMFcXa q2RPCaKU1zOd520US4RPZ1UeppV6tNlrdL7VBPkDXu4vG4O0gIUBilbbyRqCGtPIL6Dc 3Imq5VSNNnlyha4vMjUv+WdmBIh9TI/Xdp+xYI2XZgOPG8jMd0k9wQLdLO33SeDHCZFY SJHyVa+bXADnimJD5dlGGwEciSeJpnXzjwVFwFIBEpv7wJ3Cz2TwNmhUgeDOHdpFsP0C KQdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SrKOrxCUTi42whkmh8C32Tg5zmMnBqJytzi0/en5Cy4=; b=0r2OIwxky4Aj39GbFPrd1Sb+coL/hFXZ5zDWC6YqClYfIDPsinZi1GBNnNIym6B5nF +cOax7l1LiF6Y6/ns7OZChq7dx0NrQUBj+iNrnpQB9cQEnznraAVfIrAEGnKaHtk0tHZ ymyx40SMTTTKbO98Un5Oav9UNUqC2KBeeYsXHtRWo+8cdLLu9IeVQgU9TCHx6HFrc22F PFqNLGoQ/kX+s19GG+XVsypoc8ysj/KRsSb1oif2XwEyvlQGe1y/XIyMaApyivomBav/ 15ms/BNF2Kini2tmlJr0gM07EY1yWJGy328L32t6XYOBcvcyPJXRAfU+nSmbo5k6F6qG nUeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=phXvz26i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si10221982pln.263.2019.05.13.00.34.49; Mon, 13 May 2019 00:34:49 -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=@linaro.org header.s=google header.b=phXvz26i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728026AbfEMHer (ORCPT + 30 others); Mon, 13 May 2019 03:34:47 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35017 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728015AbfEMHeq (ORCPT ); Mon, 13 May 2019 03:34:46 -0400 Received: by mail-wm1-f67.google.com with SMTP id q15so8535681wmj.0 for ; Mon, 13 May 2019 00:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SrKOrxCUTi42whkmh8C32Tg5zmMnBqJytzi0/en5Cy4=; b=phXvz26iMBHGz1Fgu8fxkESf2xt31+02S9dZ5N6nuqO/Z0Y4+omR0nsmOJJb0TQkMX XhzqVUVjdw1LOZzb3bhk+rNoKc6NsLvMTb0SZmodCPiVXZ/kyQvGD3BPz824PnLdW2pY 2TqPggNDFxGgZDzL9Ta7pcUmLPYMJsMZ+RjxWucyA14SHUk/4zEeksnBaOicyVK0PIAr I1+1aozZH8VkwNb0+EqoRwMuczz59qw1WpZti7AQAaYXyn+PSW4h7shqCVTzOYGlPlzn Z0BMtT8P9zQO4uCghRqT4aTP1AFHbIqW1H1E8wf/LQGvH6ncvPYAl1oWChf8y3Zx7MpY S5KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SrKOrxCUTi42whkmh8C32Tg5zmMnBqJytzi0/en5Cy4=; b=kljn+7VvVzS+G337AwozWFOQi7RAuAlCBjObtjsOGGMEAKvd49S5xladTMbfTpeC7C 6tVytxbLd4PhfUpozH8ZEBts6HnZBaO0JChE6pQnzjuwjfoMhkRbVxQrOna/HWLBXNde hb3elyq5GeJi7AT1pdmUV5M7cJet69iASbcqShmdRRD9JsvGP9cwZTbep3a8ma+HBxBf kD0lZ6NGDI56NSiNlBQb1IaMSWuzlOL6AqSYNSJbAxD/hlih8U1tGD2JfQMrvYK92NJ/ ABpzaHWLVge3mqUML58SJ+NlWhMypAwod2oMDIn/wyUE5o1HymDUbI7OFfv9+R6urbb+ YWmw== X-Gm-Message-State: APjAAAUGem6dzhNkvvTyaMepyEzikyr3YjI6QgGlElgqVcPImLi58TMo mrEgTcSwiJD1ejEyYvk3H0OSrg== X-Received: by 2002:a05:600c:1109:: with SMTP id b9mr14338717wma.77.1557732884212; Mon, 13 May 2019 00:34:44 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.43]) by smtp.gmail.com with ESMTPSA id h14sm1009883wrt.11.2019.05.13.00.34.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 00:34:43 -0700 (PDT) From: Lee Jones To: linus.walleij@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, amelie.delaunay@st.com, Lee Jones Subject: [PATCH 2/2] pinctrl: stmfx: Fix 'warn: bitwise AND condition is false here' Date: Mon, 13 May 2019 08:34:29 +0100 Message-Id: <20190513073429.12023-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190513073429.12023-1-lee.jones@linaro.org> References: <20190513073429.12023-1-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/pinctrl/pinctrl-stmfx.c:441 stmfx_pinctrl_irq_set_type() warn: bitwise AND condition is false here Reported-by: kbuild test robot Signed-off-by: Lee Jones --- drivers/pinctrl/pinctrl-stmfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Linus Walleij diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 074c8fa3e75c..eba872ce4a7c 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -437,7 +437,7 @@ static int stmfx_pinctrl_irq_set_type(struct irq_data *data, unsigned int type) u32 reg = get_reg(data->hwirq); u32 mask = get_mask(data->hwirq); - if (type & IRQ_TYPE_NONE) + if (type == IRQ_TYPE_NONE) return -EINVAL; if (type & IRQ_TYPE_EDGE_BOTH) {