From mboxrd@z Thu Jan 1 00:00:00 1970 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 A7C44ECAAD8 for ; Wed, 14 Sep 2022 03:06:12 +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=s70pL3IS/nhk5TJUUXQkw9TCB3jqI0CCTiLBaVLxj2s=; b=uDtUaiByf71fw7 KWsQ5sgObMW42QpHdCn5v8eFCFLJuUAoyugA5SxV3clFqtipnVQmqtCMHsmpigX5sq5lru/7ojF9J JrkR7APGi4mlcalomIBDs6WooCR+ZUnLp2NavBo+bXQ6AC+Wc7U0jJCu1F0iZn04ZT82EGsspvQlH xVRRXNjfOCreBWzmjRunSipzsGDzQsl5fPxuxmZX+xWOv9TtSCSZob7ZAA2W1dP02dU/mzsRED2Rv vS8uXdSTqY5Rt/EGYUZyFPu9th/QB2LEpsV7ELKQI2N7whVjLf3w6HgQdTwFQQJkdlr/K57HVOSx/ crwbGFQ6NOdjoIoFFypg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYIhj-005AHW-Cv; Wed, 14 Sep 2022 03:04:47 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYIhf-0059vQ-80 for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 03:04:45 +0000 Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MS4rJ36V5zHnsx; Wed, 14 Sep 2022 11:02:24 +0800 (CST) Received: from huawei.com (10.67.175.83) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 11:04:25 +0800 From: ruanjinjie To: , , , , , , , CC: Subject: [PATCH -next] pcmcia: at91_cf: make mc static Date: Wed, 14 Sep 2022 11:00:45 +0800 Message-ID: <20220914030045.190571-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.67.175.83] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_200443_487667_8CDE28AD X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The symbol is not used outside of the file, so mark it static. Fixes the following warning: ./drivers/pcmcia/at91_cf.c:49:15: warning: symbol 'mc' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/pcmcia/at91_cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c index 92df2c2c5d07..c1297f0ebf03 100644 --- a/drivers/pcmcia/at91_cf.c +++ b/drivers/pcmcia/at91_cf.c @@ -46,7 +46,7 @@ struct at91_cf_data { #define AT91_IDE_SWAP_A0_A2 0x02 }; -struct regmap *mc; +static struct regmap *mc; /*--------------------------------------------------------------------------*/ -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel