From: kernel test robot <lkp@intel.com>
To: Gaosheng Cui <cuigaosheng1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev, Sasha Levin <sashal@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>
Subject: [linux-stable-rc:queue/4.19 1/66] drivers/memory/atmel-sdramc.c:62:23: error: implicit declaration of function 'devm_clk_get_enabled'
Date: Wed, 1 Feb 2023 21:35:55 +0800 [thread overview]
Message-ID: <202302012152.IA9WllvH-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/4.19
head: 923e939ad273761d537bc8b4e314e7fbac1d975d
commit: e283c92e9ef8852a075bed84d3427a0704159f9c [1/66] memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()
config: arm-defconfig (https://download.01.org/0day-ci/archive/20230201/202302012152.IA9WllvH-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=e283c92e9ef8852a075bed84d3427a0704159f9c
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc queue/4.19
git checkout e283c92e9ef8852a075bed84d3427a0704159f9c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/memory/atmel-sdramc.c: In function 'atmel_ramc_probe':
>> drivers/memory/atmel-sdramc.c:62:23: error: implicit declaration of function 'devm_clk_get_enabled' [-Werror=implicit-function-declaration]
62 | clk = devm_clk_get_enabled(&pdev->dev, "ddrck");
| ^~~~~~~~~~~~~~~~~~~~
drivers/memory/atmel-sdramc.c:62:21: warning: assignment to 'struct clk *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
62 | clk = devm_clk_get_enabled(&pdev->dev, "ddrck");
| ^
drivers/memory/atmel-sdramc.c:68:21: warning: assignment to 'struct clk *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
68 | clk = devm_clk_get_enabled(&pdev->dev, "mpddr");
| ^
cc1: some warnings being treated as errors
vim +/devm_clk_get_enabled +62 drivers/memory/atmel-sdramc.c
53
54 static int atmel_ramc_probe(struct platform_device *pdev)
55 {
56 const struct at91_ramc_caps *caps;
57 struct clk *clk;
58
59 caps = of_device_get_match_data(&pdev->dev);
60
61 if (caps->has_ddrck) {
> 62 clk = devm_clk_get_enabled(&pdev->dev, "ddrck");
63 if (IS_ERR(clk))
64 return PTR_ERR(clk);
65 }
66
67 if (caps->has_mpddr_clk) {
68 clk = devm_clk_get_enabled(&pdev->dev, "mpddr");
69 if (IS_ERR(clk)) {
70 pr_err("AT91 RAMC: couldn't get mpddr clock\n");
71 return PTR_ERR(clk);
72 }
73 }
74
75 return 0;
76 }
77
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next reply other threads:[~2023-02-01 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 13:35 kernel test robot [this message]
2023-02-02 3:48 ` [linux-stable-rc:queue/4.19 1/66] drivers/memory/atmel-sdramc.c:62:23: error: implicit declaration of function 'devm_clk_get_enabled' cuigaosheng
2023-02-03 12:41 ` Krzysztof Kozlowski
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=202302012152.IA9WllvH-lkp@intel.com \
--to=lkp@intel.com \
--cc=cuigaosheng1@huawei.com \
--cc=krzk@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sashal@kernel.org \
/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.