From patchwork Mon Apr 11 02:56:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 12808462 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99A31C433EF for ; Mon, 11 Apr 2022 02:57:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5ObEUN8vMPLYmX1uJJ+7BLd2hIajMU0PP2fZi989+gE=; b=uGKXsw4/PreaLX JwwUTWTDYBE+8x9qHOFtH/Oqktufw+nVTDVdyaJCKLmfF0t9eEarjlPK1OvXKWinsLQmkaqEn+OAu YHaHEFqZL20fMfK7YleWSp8tN5CJuIpEmfNNgAVdUqYHE+WWaITSjbEY8kyPy02RSUHKa/9xAzJSW 70dBw8dMjZbX/14XOC23/goKY8dtzDubC6lo0qDKylg329xBpB7TMvvrVNbm6IQQwWVg8EcIRp0nL JoFWzOrJ/FMXlpAR/ypAaRjBbYATX48rcXKQ2J+6KakKV876Y8e0VeCtIneCYkeSsw0keelPuUSvh eTU0RFClcLqIX6FUl9GA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndkEH-006LiT-FY; Mon, 11 Apr 2022 02:56:37 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndkED-006LhK-Vo for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 02:56:35 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 97184B80E98; Mon, 11 Apr 2022 02:56:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13FCBC385A4; Mon, 11 Apr 2022 02:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649645790; bh=jgspX/OTdf44CkaR3Ok1urTyDR4tMwniAluGkWxPGvQ=; h=From:To:Cc:Subject:Date:From; b=QAgjCDL3HLbjhsa+kFoDHRrV5NKoGQa/oT5fVKbNN3n4F4oN+LORCdWujhyjy0zQ0 5fd5HnC1StdlhdgFAC+jtdGvKJCcErciXx+TqdtKhxSx/pwWORY8To7NAr4NmdNKaC nze1D+5HQ65KujQ2cWpMvMZKs9ZtI22/q181It1w2qvO4fk2PBCpULwRM5JOI8TY3M m1xmd7NL149oUbtikoNENABiIejVFSM62JQEnVfSxw9I8SrUruncPUhAyJQUOg0lIQ 0iVaHnUgjfi3j47Kv7+mMVuH3gMM7DjYOjYva+ItuZxCapVGMac5b61OpbPC9LUVd8 cV2Pkq6bVjPpg== From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Ivan Bornyakov , Shawn Guo , kernel test robot Subject: [PATCH] bus: imx-weim: Mark weim_of_notifier static Date: Mon, 11 Apr 2022 10:56:18 +0800 Message-Id: <20220411025618.387648-1-shawnguo@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220410_195634_196073_144DD6F1 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mark weim_of_notifier static to fix the sparse warning below. drivers/bus/imx-weim.c:373:23: sparse: sparse: symbol 'weim_of_notifier' was not declared. Should it be static? Reported-by: kernel test robot Fixes: e6cb5408289f ("bus: imx-weim: add DT overlay support for WEIM bus") Signed-off-by: Shawn Guo --- drivers/bus/imx-weim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 60fbd42041dd..d10c9f1031b6 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -370,7 +370,7 @@ static int of_weim_notify(struct notifier_block *nb, unsigned long action, return ret; } -struct notifier_block weim_of_notifier = { +static struct notifier_block weim_of_notifier = { .notifier_call = of_weim_notify, }; #endif /* IS_ENABLED(CONFIG_OF_DYNAMIC) */