Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5466166pxb; Wed, 26 Jan 2022 12:39:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw20r9ElTZlJ/kcvLw0n9W/cUbMXpJpj/r4Hgz81xSBekjDKqaRGziq3K1IGfm+fdlsXo2i X-Received: by 2002:a63:5f52:: with SMTP id t79mr439214pgb.177.1643229563038; Wed, 26 Jan 2022 12:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643229563; cv=none; d=google.com; s=arc-20160816; b=TWj3gxOKqKRilLfrE8RhsXCxa/OrNiCDwFgfIKknm2Hjqmc1HfX2Pv3UsGaTDyi42s Eyca0rvx1ZOUcn8Wja9ssvbNVl/tM+Tl2PpqCdmEjwrk/K3VY/Cz/1PF2pC5SjxfiF52 0eF69+psPHXyTK395KVgVj1HbnFZDO+qMGch/kaZW3bGLmLSAms95YIIDXyLbGu4BEfZ HfLdSOcENkvvmQRrA55WB821FkrwTc8iUN4ajisgzBpcqD78Fsklp4HwW7k5ADhWj9IF qU2b9TtFD11DgR3FCt2ohfJmQ805tnCaN+tWqAcvbd1r5CJs0ZKDSRmiPqqpYqtQnudg aVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ht8uhsXbX9GKJbrxC3fHaBAU4/usptqzPTl1kbSDCW8=; b=Kv+2dC9WGiyujwLA1NYrgluqVD3lpWpsNAZ/PV3/8dSxo3TZ2sLc1shdLQfikmpe0k kSXPPl4CQFPVgdWSNyWoVaqD9K8Esnx2GD0thw1GIdCUc2vBv+OFB1JIdwUN4bevuBkM Exttb96Xa+R3GI5RlgKW/Dl0fNfANJIBc5DCOqejKR6flAUdivNxsx+LMgdi/fruBl8r 0PqCqAIabHPYuoY5I7fgXb6NNmKHrWf3CSlMXSUnaTvMpiCVE6jh/2JrioCjR/ZMXMMl STajusEeNyTL/0T1gEXIa9FCnxBGNyBPnmMy86a5trcJa4PCaBxL/mK+g+CVuSAwRk4q ngeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si281850pff.339.2022.01.26.12.39.10; Wed, 26 Jan 2022 12:39:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238838AbiAZJMn (ORCPT + 99 others); Wed, 26 Jan 2022 04:12:43 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:37706 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230488AbiAZJMl (ORCPT ); Wed, 26 Jan 2022 04:12:41 -0500 X-UUID: c8df4e01a67146da9e049773fb53051c-20220126 X-UUID: c8df4e01a67146da9e049773fb53051c-20220126 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1566007041; Wed, 26 Jan 2022 17:12:37 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Wed, 26 Jan 2022 17:12:36 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Jan 2022 17:12:35 +0800 From: To: Mark Brown , AngeloGioacchino Del Regno CC: Matthias Brugger , Bayi Cheng , Chuanhong Guo , Bin Zhang , , , , , , Guochun Mao , kernel test robot Subject: [PATCH] spi: spi-mtk-nor: make some internal variables static Date: Wed, 26 Jan 2022 17:11:59 +0800 Message-ID: <20220126091159.27513-1-guochun.mao@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guochun Mao Variables mtk_nor_caps_mt8173, mtk_nor_caps_mt8186 and mtk_nor_caps_mt8192 are not declared. Make them static. Fixes: 5b177234e9fd ("spi: spi-mtk-nor: improve device table for adding more capabilities") Signed-off-by: Guochun Mao Reported-by: kernel test robot --- drivers/spi/spi-mtk-nor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c index 455b4dcb26e9..94fb09696677 100644 --- a/drivers/spi/spi-mtk-nor.c +++ b/drivers/spi/spi-mtk-nor.c @@ -770,17 +770,17 @@ static const struct spi_controller_mem_ops mtk_nor_mem_ops = { .exec_op = mtk_nor_exec_op }; -const struct mtk_nor_caps mtk_nor_caps_mt8173 = { +static const struct mtk_nor_caps mtk_nor_caps_mt8173 = { .dma_bits = 32, .extra_dummy_bit = 0, }; -const struct mtk_nor_caps mtk_nor_caps_mt8186 = { +static const struct mtk_nor_caps mtk_nor_caps_mt8186 = { .dma_bits = 32, .extra_dummy_bit = 1, }; -const struct mtk_nor_caps mtk_nor_caps_mt8192 = { +static const struct mtk_nor_caps mtk_nor_caps_mt8192 = { .dma_bits = 36, .extra_dummy_bit = 0, }; -- 2.25.1