From: kernel test robot <lkp@intel.com>
To: Sam Protsenko <semen.protsenko@linaro.org>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org, linux-watchdog@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH v2 12/12] watchdog: s3c2410: Add Exynos850 support
Date: Mon, 1 Nov 2021 00:09:26 +0800 [thread overview]
Message-ID: <202111010047.oDBXUgUp-lkp@intel.com> (raw)
In-Reply-To: <20211031122216.30212-13-semen.protsenko@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 3893 bytes --]
Hi Sam,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on groeck-staging/hwmon-next linus/master v5.15-rc7 next-20211029]
[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]
url: https://github.com/0day-ci/linux/commits/Sam-Protsenko/watchdog-s3c2410-Add-Exynos850-support/20211031-202352
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: xtensa-randconfig-r012-20211031 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/ff70b806cc12adc068bb54865f81d3aa29a69471
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sam-Protsenko/watchdog-s3c2410-Add-Exynos850-support/20211031-202352
git checkout ff70b806cc12adc068bb54865f81d3aa29a69471
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash 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: In function 's3c2410_get_wdt_drv_data':
>> drivers/watchdog/s3c2410_wdt.c:592:25: error: 'drv_data_exynos850' undeclared (first use in this function)
592 | if (variant == &drv_data_exynos850) {
| ^~~~~~~~~~~~~~~~~~
drivers/watchdog/s3c2410_wdt.c:592:25: note: each undeclared identifier is reported only once for each function it appears in
vim +/drv_data_exynos850 +592 drivers/watchdog/s3c2410_wdt.c
571
572 static inline const struct s3c2410_wdt_variant *
573 s3c2410_get_wdt_drv_data(struct platform_device *pdev)
574 {
575 const struct s3c2410_wdt_variant *variant;
576 struct s3c2410_wdt_variant *data;
577 struct device *dev = &pdev->dev;
578
579 variant = of_device_get_match_data(dev);
580 if (!variant) {
581 /* Device matched by platform_device_id */
582 variant = (struct s3c2410_wdt_variant *)
583 platform_get_device_id(pdev)->driver_data;
584 }
585
586 /* Have to copy driver data over to keep its const qualifier intact */
587 data = devm_kmemdup(dev, variant, sizeof(*variant), GFP_KERNEL);
588 if (!data)
589 return NULL;
590
591 /* Populate missing fields for Exynos850 w.r.t. cluster index */
> 592 if (variant == &drv_data_exynos850) {
593 u32 index;
594 int err;
595
596 err = of_property_read_u32(dev->of_node, "samsung,index",
597 &index);
598 if (err) {
599 dev_err(dev, "failed to get cluster index\n");
600 return NULL;
601 }
602
603 switch (index) {
604 case 0:
605 data->mask_reset_reg = EXYNOS850_CLUSTER0_NONCPU_INT_EN;
606 data->rst_stat_bit = EXYNOS850_CLUSTER0_WDTRESET_BIT;
607 data->cnt_en_reg = EXYNOS850_CLUSTER0_NONCPU_OUT;
608 break;
609 case 1:
610 data->mask_reset_reg = EXYNOS850_CLUSTER1_NONCPU_INT_EN;
611 data->rst_stat_bit = EXYNOS850_CLUSTER1_WDTRESET_BIT;
612 data->cnt_en_reg = EXYNOS850_CLUSTER1_NONCPU_OUT;
613 break;
614 default:
615 dev_err(dev, "wrong cluster index: %u\n", index);
616 return NULL;
617 }
618 }
619
620 return data;
621 }
622
---
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: 31002 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-10-31 16:12 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-31 12:22 [PATCH v2 00/12] watchdog: s3c2410: Add Exynos850 support Sam Protsenko
2021-10-31 12:22 ` [PATCH v2 01/12] dt-bindings: watchdog: Require samsung, syscon-phandle for Exynos7 Sam Protsenko
2021-11-01 19:21 ` [PATCH v2 01/12] dt-bindings: watchdog: Require samsung,syscon-phandle " Rob Herring
2021-10-31 12:22 ` [PATCH v2 02/12] dt-bindings: watchdog: Document Exynos850 watchdog bindings Sam Protsenko
2021-11-02 9:46 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 03/12] watchdog: s3c2410: Fail probe if can't find valid timeout Sam Protsenko
2021-11-02 9:49 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 04/12] watchdog: s3c2410: Let kernel kick watchdog Sam Protsenko
2021-11-02 9:49 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 05/12] watchdog: s3c2410: Make reset disable register optional Sam Protsenko
2021-11-02 9:52 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 06/12] watchdog: s3c2410: Extract disable and mask code into separate functions Sam Protsenko
2021-11-02 9:55 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 07/12] watchdog: s3c2410: Implement a way to invert mask reg value Sam Protsenko
2021-11-02 10:17 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 08/12] watchdog: s3c2410: Add support for WDT counter enable register Sam Protsenko
2021-11-02 10:05 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 09/12] watchdog: s3c2410: Cleanup PMU related code Sam Protsenko
2021-11-02 10:12 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 10/12] watchdog: s3c2410: Support separate source clock Sam Protsenko
2021-11-02 10:15 ` Krzysztof Kozlowski
2021-11-07 15:55 ` Sam Protsenko
2021-11-07 16:09 ` Guenter Roeck
2021-11-07 18:51 ` Sam Protsenko
2021-11-07 19:01 ` Guenter Roeck
2021-10-31 12:22 ` [PATCH v2 11/12] watchdog: s3c2410: Remove superfluous err label Sam Protsenko
2021-11-02 10:17 ` Krzysztof Kozlowski
2021-10-31 12:22 ` [PATCH v2 12/12] watchdog: s3c2410: Add Exynos850 support Sam Protsenko
2021-10-31 15:15 ` kernel test robot
2021-10-31 16:09 ` kernel test robot [this message]
2021-11-02 10:26 ` Krzysztof Kozlowski
2021-11-07 16:17 ` Sam Protsenko
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=202111010047.oDBXUgUp-lkp@intel.com \
--to=lkp@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh+dt@kernel.org \
--cc=semen.protsenko@linaro.org \
--cc=wim@linux-watchdog.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;
as well as URLs for NNTP newsgroup(s).