Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3698001ybv; Mon, 10 Feb 2020 04:55:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzXbV2NGcMgrKJHCJC0mdt2JFlvlDwseEADzESW5gwPG6xVIrr3JAmXTblWwVHbaDwspu0F X-Received: by 2002:a05:6830:13da:: with SMTP id e26mr879493otq.97.1581339347965; Mon, 10 Feb 2020 04:55:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339347; cv=none; d=google.com; s=arc-20160816; b=FW4TopBGZIkurlcHY3VAppRCbUFb4sZnhT5U/T+Vg8q0y/gKN/FQY+vsO4qLqHf04/ hxuvcr4gB6NmFEJOr+zjDQdGqigDtELc66aZLkArCyRh7n3Pfux3bVyJrKznJCP37uQw 22FXy4Oi+4FDNP5tA2v09EkK58L1ZmSxU6BHjwS1FLkMdFY8mjm88knAKq8m9HRPXFiw MSmeQmPoYRAzjKIXg0BBMwSnkNS2wrlNfpAX/9lJAqJkIg/2AIInZAl49mBFdlU2eVT9 7zgoA62cqFrUAqvTIrSB4YfPoKb/FvL281jpe+wVnV0DPgw1wwhDsC16CPx0RFOGcrMp RLGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=if4MUnW+MXwsU+saJV38n0v9tUH8Lchg2aKYG4Eb7X4=; b=Zfp7OSaXhC2EGTF/VZrFalDm1v/gfM8SdOXpSWmqtyHWUzFO/uux9r+/pwVylzz75e MsL2MoSnCVZtA7To9l8bX1KWdgkxlejeE7MJsSwQ0G2jVhXdiI35oExqXwho4rv3nJg2 vztgDWXtBWWEaxhnByhFYH8FDZpr6FH801KcJIqe0vkAjic/FisfcgNCd2YPIOk0dW3L J2LBsYz427RYuhMKT5HAyjHWGsgROqxu0uoAuV5KAk+TpyKIyOm8A6f1SgrkDcHirP2I 8LNIzq4Pv9bqm7nRMkyXCdKvCSBQzodPrExoeZwkN8Nba6XeRn/Kc8wRbeY/mXm3B4Dd 9/IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DRgSEasH; 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 j18si158996otq.275.2020.02.10.04.55.36; Mon, 10 Feb 2020 04:55:47 -0800 (PST) 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=DRgSEasH; 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 S1729801AbgBJMzc (ORCPT + 99 others); Mon, 10 Feb 2020 07:55:32 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:34553 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729987AbgBJMzY (ORCPT ); Mon, 10 Feb 2020 07:55:24 -0500 Received: by mail-lj1-f196.google.com with SMTP id x7so7046236ljc.1 for ; Mon, 10 Feb 2020 04:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=if4MUnW+MXwsU+saJV38n0v9tUH8Lchg2aKYG4Eb7X4=; b=DRgSEasHs7rZLw8lwalhqqVwwrJjzEeFMhK6P7OyXSdnl1DnOjoLg7S3gtTFtG1htL 8PqvxVm0XTS0ARlV0Rhr7kA/HGQ98L++ubs/qGWrRLGfGhT3sbDc3YwalzhPLs6a74J1 0zs5HgYZS0WfWx4rXHM1ViEZd6aQ2LPaODzPEUHW4doJisbhmv3LJDVkk9uNQ9AGMU48 rOCv+R3N2LIgD24H2MZaSb8xHONLDBmb9N6AXv9x8UQQNdNVv8WrCeIyoE7TBNormu9u SwACo3uBmfPBjB3nMNEDFgCiR27a6t8gUVOj/myILUNlkzfVpDhWmNFUOBlD1+ODtgre aNLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=if4MUnW+MXwsU+saJV38n0v9tUH8Lchg2aKYG4Eb7X4=; b=MylFL7an2jbdbwiUwOklSLiwlrdSyD3Qecw9JjDe9vBVGNhptfLSCzDoYk7DCays0c FdU7Adf78WL1ft9nL2itGe2OIKQJ6+dujS5NYauoWBUKuywDfp8gJXbkvm/jK42Sl5Mt gCoghXzXFSijkSg+G5ud4BrCRsvN34yvKJRezh87napJacs3G61eESGGH4XAL8kkLeYI xspEKeu3+kDjrkgbHzPIBIJHFV96VvZVJIu9UBTihMfeqJ12ird49149XqWXj+6j0Kh2 SS6dW0JVptCUVciu3NW47wW8AueJShjS11Izs1iI+Q4E4Ok7ES5yXBZUSzbci46Ju1Oh R0JA== X-Gm-Message-State: APjAAAXzl95bYlQPYhXiw+28QUwWwZYsKDYuICu3Fhoqo3zbA6CwAsYo LbAccFvuiFThgaRylc5K1MnzUx3ieozo6xRLBhWDiQ== X-Received: by 2002:a2e:2a84:: with SMTP id q126mr847097ljq.258.1581339321285; Mon, 10 Feb 2020 04:55:21 -0800 (PST) MIME-Version: 1.0 References: <1580189061-14091-1-git-send-email-yash.shah@sifive.com> In-Reply-To: <1580189061-14091-1-git-send-email-yash.shah@sifive.com> From: Linus Walleij Date: Mon, 10 Feb 2020 13:55:10 +0100 Message-ID: Subject: Re: [PATCH] gpio/sifive: fix static checker warning To: Yash Shah Cc: Bartosz Golaszewski , Palmer Dabbelt , Paul Walmsley , "Wesley W. Terpstra" , Marc Zyngier , Atish Patra , "open list:GPIO SUBSYSTEM" , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org" , Sachin Ghadi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 6:24 AM Yash Shah wrote: > Typcasting "irq_state" leads to the below static checker warning: > The fix is to declare "irq_state" as unsigned long instead of u32. > > drivers/gpio/gpio-sifive.c:97 sifive_gpio_irq_enable() > warn: passing casted pointer '&chip->irq_state' to > 'assign_bit()' 32 vs 64. > > Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs") > Reported-by: Dan Carpenter > Signed-off-by: Yash Shah Patch applied for GPIO fixes. Yours, Linus Walleij