From: kernel test robot <lkp@intel.com>
To: Sam Protsenko <semen.protsenko@linaro.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-hwmon@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>,
Krzysztof Kozlowski <krzk@kernel.org>
Subject: [groeck-staging:watchdog-next 14/24] drivers/watchdog/s3c2410_wdt.c:633:18: error: use of undeclared identifier 'drv_data_exynos850_cl0'
Date: Sun, 21 Nov 2021 01:05:45 +0800 [thread overview]
Message-ID: <202111210139.7YvmK8Rx-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3297 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-next
head: 1a57ba062bc2999cbeb224b38cfcf9160bcec14b
commit: 628fba9f2183bd5ae9ea03a2d8ad43e39dc85a3b [14/24] watchdog: s3c2410: Add Exynos850 support
config: hexagon-randconfig-r041-20211118 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c46becf500df2a7fb4b4fce16178a036c344315a)
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/groeck/linux-staging.git/commit/?id=628fba9f2183bd5ae9ea03a2d8ad43e39dc85a3b
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging watchdog-next
git checkout 628fba9f2183bd5ae9ea03a2d8ad43e39dc85a3b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/mmc/host/ drivers/watchdog/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/watchdog/s3c2410_wdt.c:633:18: error: use of undeclared identifier 'drv_data_exynos850_cl0'
if (variant == &drv_data_exynos850_cl0) {
^
drivers/watchdog/s3c2410_wdt.c:646:12: error: use of undeclared identifier 'drv_data_exynos850_cl0'
return &drv_data_exynos850_cl0;
^
>> drivers/watchdog/s3c2410_wdt.c:648:12: error: use of undeclared identifier 'drv_data_exynos850_cl1'
return &drv_data_exynos850_cl1;
^
3 errors generated.
vim +/drv_data_exynos850_cl0 +633 drivers/watchdog/s3c2410_wdt.c
618
619 static inline const struct s3c2410_wdt_variant *
620 s3c2410_get_wdt_drv_data(struct platform_device *pdev)
621 {
622 const struct s3c2410_wdt_variant *variant;
623 struct device *dev = &pdev->dev;
624
625 variant = of_device_get_match_data(dev);
626 if (!variant) {
627 /* Device matched by platform_device_id */
628 variant = (struct s3c2410_wdt_variant *)
629 platform_get_device_id(pdev)->driver_data;
630 }
631
632 /* Choose Exynos850 driver data w.r.t. cluster index */
> 633 if (variant == &drv_data_exynos850_cl0) {
634 u32 index;
635 int err;
636
637 err = of_property_read_u32(dev->of_node,
638 "samsung,cluster-index", &index);
639 if (err) {
640 dev_err(dev, "failed to get cluster index\n");
641 return NULL;
642 }
643
644 switch (index) {
645 case 0:
646 return &drv_data_exynos850_cl0;
647 case 1:
> 648 return &drv_data_exynos850_cl1;
649 default:
650 dev_err(dev, "wrong cluster index: %u\n", index);
651 return NULL;
652 }
653 }
654
655 return variant;
656 }
657
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 22663 bytes --]
reply other threads:[~2021-11-20 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202111210139.7YvmK8Rx-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=llvm@lists.linux.dev \
--cc=semen.protsenko@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox