From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH] [v1] spi: spi-mtk-nor: Modify the clock architecture of nor controller
Date: Mon, 23 Dec 2024 21:13:16 +0800 [thread overview]
Message-ID: <202412232136.cWvRuwoD-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20241212092206.14071-1-Cloud.Zhang@mediatek.com>
References: <20241212092206.14071-1-Cloud.Zhang@mediatek.com>
TO: mtk22730 <Cloud.Zhang@mediatek.com>
TO: Mark Brown <broonie@kernel.org>
TO: Matthias Brugger <matthias.bgg@gmail.com>
TO: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
CC: linux-spi@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: linux-arm-kernel@lists.infradead.org
CC: linux-mediatek@lists.infradead.org
CC: Project_Global_Chrome_Upstream_Group@mediatek.com
CC: Cloud Zhang <cloud.zhang@mediatek.com>
Hi mtk22730,
kernel test robot noticed the following build warnings:
[auto build test WARNING on broonie-spi/for-next]
[also build test WARNING on linus/master v6.13-rc4 next-20241220]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/mtk22730/spi-spi-mtk-nor-Modify-the-clock-architecture-of-nor-controller/20241212-172704
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
patch link: https://lore.kernel.org/r/20241212092206.14071-1-Cloud.Zhang%40mediatek.com
patch subject: [PATCH] [v1] spi: spi-mtk-nor: Modify the clock architecture of nor controller
:::::: branch date: 11 days ago
:::::: commit date: 11 days ago
config: parisc-randconfig-r073-20241223 (https://download.01.org/0day-ci/archive/20241223/202412232136.cWvRuwoD-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.2.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202412232136.cWvRuwoD-lkp@intel.com/
smatch warnings:
drivers/spi/spi-mtk-nor.c:746 mtk_nor_parse_clk() warn: impossible condition '(cnt == -22) => (1-255 == (-22))'
vim +746 drivers/spi/spi-mtk-nor.c
87d65a23444841 Cloud Zhang 2024-12-12 737
87d65a23444841 Cloud Zhang 2024-12-12 738 static int mtk_nor_parse_clk(struct device *dev, struct mtk_nor *sp)
87d65a23444841 Cloud Zhang 2024-12-12 739 {
87d65a23444841 Cloud Zhang 2024-12-12 740 struct device_node *np = dev->of_node;
87d65a23444841 Cloud Zhang 2024-12-12 741 int ret;
87d65a23444841 Cloud Zhang 2024-12-12 742 const char *name;
87d65a23444841 Cloud Zhang 2024-12-12 743 u8 cnt, i;
87d65a23444841 Cloud Zhang 2024-12-12 744
87d65a23444841 Cloud Zhang 2024-12-12 745 cnt = of_property_count_strings(np, "clock-names");
87d65a23444841 Cloud Zhang 2024-12-12 @746 if (!cnt || (cnt == -EINVAL)) {
87d65a23444841 Cloud Zhang 2024-12-12 747 dev_err(dev, "Unable to find clocks\n");
87d65a23444841 Cloud Zhang 2024-12-12 748 ret = -EINVAL;
87d65a23444841 Cloud Zhang 2024-12-12 749 goto out;
87d65a23444841 Cloud Zhang 2024-12-12 750 } else if (cnt < 0) {
87d65a23444841 Cloud Zhang 2024-12-12 751 dev_err(dev, "Count clock strings failed, err %d\n", cnt);
87d65a23444841 Cloud Zhang 2024-12-12 752 ret = cnt;
87d65a23444841 Cloud Zhang 2024-12-12 753 goto out;
87d65a23444841 Cloud Zhang 2024-12-12 754 } else if (cnt > MAX_CLOCK_CNT) {
87d65a23444841 Cloud Zhang 2024-12-12 755 ret = -EINVAL;
87d65a23444841 Cloud Zhang 2024-12-12 756 goto out;
87d65a23444841 Cloud Zhang 2024-12-12 757 }
87d65a23444841 Cloud Zhang 2024-12-12 758
87d65a23444841 Cloud Zhang 2024-12-12 759 sp->clock_cnt = cnt;
87d65a23444841 Cloud Zhang 2024-12-12 760
87d65a23444841 Cloud Zhang 2024-12-12 761 for (i = 0; i < cnt; i++) {
87d65a23444841 Cloud Zhang 2024-12-12 762 ret = of_property_read_string_index(np, "clock-names", i,
87d65a23444841 Cloud Zhang 2024-12-12 763 &name);
58b0a653b8dac4 Guochun Mao 2022-01-18 764 if (ret) {
87d65a23444841 Cloud Zhang 2024-12-12 765 dev_err(dev, "failed to get clock string\n");
58b0a653b8dac4 Guochun Mao 2022-01-18 766 return ret;
58b0a653b8dac4 Guochun Mao 2022-01-18 767 }
58b0a653b8dac4 Guochun Mao 2022-01-18 768
87d65a23444841 Cloud Zhang 2024-12-12 769 sp->clocks[i].name = name;
87d65a23444841 Cloud Zhang 2024-12-12 770 sp->clocks[i].clki = devm_clk_get(dev, sp->clocks[i].name);
87d65a23444841 Cloud Zhang 2024-12-12 771 if (IS_ERR(sp->clocks[i].clki)) {
87d65a23444841 Cloud Zhang 2024-12-12 772 dev_err(dev, "get clock %s fail\n", sp->clocks[i].name);
87d65a23444841 Cloud Zhang 2024-12-12 773 return PTR_ERR(sp->clocks[i].clki);
87d65a23444841 Cloud Zhang 2024-12-12 774 }
87d65a23444841 Cloud Zhang 2024-12-12 775 }
87d65a23444841 Cloud Zhang 2024-12-12 776
87d65a23444841 Cloud Zhang 2024-12-12 777 out:
87d65a23444841 Cloud Zhang 2024-12-12 778 return ret;
881d1ee9fe81ff Chuanhong Guo 2020-03-06 779 }
881d1ee9fe81ff Chuanhong Guo 2020-03-06 780
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-12-23 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-23 13:13 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-12 9:20 [PATCH] [v1] spi: spi-mtk-nor: Modify the clock architecture of nor controller mtk22730
2024-12-20 18:26 ` kernel test robot
2025-01-06 9:47 ` Dan Carpenter
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=202412232136.cWvRuwoD-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/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: link
Be 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.