From: <guochun.mao@mediatek.com> To: Mark Brown <broonie@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: Matthias Brugger <matthias.bgg@gmail.com>, Bayi Cheng <bayi.cheng@mediatek.com>, Chuanhong Guo <gch981213@gmail.com>, Bin Zhang <bin.zhang@mediatek.com>, <linux-mediatek@lists.infradead.org>, <srv_heupstream@mediatek.com>, <project_global_chrome_upstream_group@mediatek.com>, <linux-kernel@vger.kernel.org>, <linux-spi@vger.kernel.org>, Guochun Mao <guochun.mao@mediatek.com>, kernel test robot <lkp@intel.com> Subject: [PATCH] spi: spi-mtk-nor: make some internal variables static Date: Wed, 26 Jan 2022 17:11:59 +0800 [thread overview] Message-ID: <20220126091159.27513-1-guochun.mao@mediatek.com> (raw) From: Guochun Mao <guochun.mao@mediatek.com> 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 <guochun.mao@mediatek.com> Reported-by: kernel test robot <lkp@intel.com> --- 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
WARNING: multiple messages have this Message-ID (diff)
From: <guochun.mao@mediatek.com> To: Mark Brown <broonie@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: Matthias Brugger <matthias.bgg@gmail.com>, Bayi Cheng <bayi.cheng@mediatek.com>, Chuanhong Guo <gch981213@gmail.com>, Bin Zhang <bin.zhang@mediatek.com>, <linux-mediatek@lists.infradead.org>, <srv_heupstream@mediatek.com>, <project_global_chrome_upstream_group@mediatek.com>, <linux-kernel@vger.kernel.org>, <linux-spi@vger.kernel.org>, Guochun Mao <guochun.mao@mediatek.com>, kernel test robot <lkp@intel.com> Subject: [PATCH] spi: spi-mtk-nor: make some internal variables static Date: Wed, 26 Jan 2022 17:11:59 +0800 [thread overview] Message-ID: <20220126091159.27513-1-guochun.mao@mediatek.com> (raw) From: Guochun Mao <guochun.mao@mediatek.com> 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 <guochun.mao@mediatek.com> Reported-by: kernel test robot <lkp@intel.com> --- 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 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek
next reply other threads:[~2022-01-26 9:12 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-26 9:11 guochun.mao [this message] 2022-01-26 9:11 ` [PATCH] spi: spi-mtk-nor: make some internal variables static guochun.mao 2022-01-26 15:36 ` Mark Brown 2022-01-26 15:36 ` Mark Brown 2022-01-28 1:02 ` Guochun Mao 2022-01-28 1:02 ` Guochun Mao 2022-01-27 11:52 ` AngeloGioacchino Del Regno 2022-01-27 11:52 ` AngeloGioacchino Del Regno
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220126091159.27513-1-guochun.mao@mediatek.com \ --to=guochun.mao@mediatek.com \ --cc=angelogioacchino.delregno@collabora.com \ --cc=bayi.cheng@mediatek.com \ --cc=bin.zhang@mediatek.com \ --cc=broonie@kernel.org \ --cc=gch981213@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=linux-spi@vger.kernel.org \ --cc=lkp@intel.com \ --cc=matthias.bgg@gmail.com \ --cc=project_global_chrome_upstream_group@mediatek.com \ --cc=srv_heupstream@mediatek.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.