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@xxxxxxxxx> 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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip