From: kbuild test robot <lkp@intel.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: kbuild-all@01.org, Sekhar Nori <nsekhar@ti.com>,
Kevin Hilman <khilman@kernel.org>,
David Lechner <david@lechnology.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Mark Rutland <mark.rutland@arm.com>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Rich Felker <dalias@libc.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Marc Zyngier <marc.zyngier@arm.com>,
"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
Peter Rosin <peda@axentia.se>, Jiri Slaby <jslaby@suse.com>,
Thomas Gleixner <tglx@linutronix.de>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
linux-sh@vger.kernel.org,
Bartosz Golaszewski <bgolaszewski@baylibre.com>
Subject: Re: [PATCH 3/3] sh: add the sh_ prefix to early platform symbols
Date: Tue, 1 May 2018 07:52:12 +0800 [thread overview]
Message-ID: <201805010735.DbWU1fzw%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180430163556.2560-4-brgl@bgdev.pl>
[-- Attachment #1: Type: text/plain, Size: 3223 bytes --]
Hi Bartosz,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v4.17-rc3 next-20180430]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/sh-make-early_platform-code-SuperH-specific/20180501-025442
config: powerpc64-allmodconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc64
All errors (new ones prefixed by >>):
drivers/clocksource/sh_cmt.c: In function 'sh_cmt_probe':
>> drivers/clocksource/sh_cmt.c:1046:7: error: implicit declaration of function 'is_sh_early_platform_device'; did you mean 'to_platform_device'? [-Werror=implicit-function-declaration]
if (!is_sh_early_platform_device(pdev)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
to_platform_device
drivers/clocksource/sh_cmt.c: At top level:
drivers/clocksource/sh_cmt.c:1103:24: error: expected declaration specifiers or '...' before string constant
sh_early_platform_init("earlytimer", &sh_cmt_device_driver);
^~~~~~~~~~~~
drivers/clocksource/sh_cmt.c:1103:38: error: expected declaration specifiers or '...' before '&' token
sh_early_platform_init("earlytimer", &sh_cmt_device_driver);
^
cc1: some warnings being treated as errors
--
drivers/tty/serial/sh-sci.c: In function 'sci_probe':
>> drivers/tty/serial/sh-sci.c:3196:6: error: implicit declaration of function 'is_sh_early_platform_device'; did you mean 'to_platform_device'? [-Werror=implicit-function-declaration]
if (is_sh_early_platform_device(dev))
^~~~~~~~~~~~~~~~~~~~~~~~~~~
to_platform_device
cc1: some warnings being treated as errors
vim +1046 drivers/clocksource/sh_cmt.c
1040
1041 static int sh_cmt_probe(struct platform_device *pdev)
1042 {
1043 struct sh_cmt_device *cmt = platform_get_drvdata(pdev);
1044 int ret;
1045
> 1046 if (!is_sh_early_platform_device(pdev)) {
1047 pm_runtime_set_active(&pdev->dev);
1048 pm_runtime_enable(&pdev->dev);
1049 }
1050
1051 if (cmt) {
1052 dev_info(&pdev->dev, "kept as earlytimer\n");
1053 goto out;
1054 }
1055
1056 cmt = kzalloc(sizeof(*cmt), GFP_KERNEL);
1057 if (cmt == NULL)
1058 return -ENOMEM;
1059
1060 ret = sh_cmt_setup(cmt, pdev);
1061 if (ret) {
1062 kfree(cmt);
1063 pm_runtime_idle(&pdev->dev);
1064 return ret;
1065 }
1066 if (is_sh_early_platform_device(pdev))
1067 return 0;
1068
1069 out:
1070 if (cmt->has_clockevent || cmt->has_clocksource)
1071 pm_runtime_irq_safe(&pdev->dev);
1072 else
1073 pm_runtime_idle(&pdev->dev);
1074
1075 return 0;
1076 }
1077
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56210 bytes --]
next prev parent reply other threads:[~2018-04-30 23:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-30 16:35 [PATCH 0/3] sh: make early_platform code SuperH-specific Bartosz Golaszewski
2018-04-30 16:35 ` [PATCH 1/3] clocksource: timer-ti-dm: remove the early platform driver registration Bartosz Golaszewski
2018-04-30 16:35 ` [PATCH 2/3] platform: move the early platform device support to arch/sh Bartosz Golaszewski
2018-04-30 20:45 ` kbuild test robot
2018-04-30 23:15 ` kbuild test robot
2018-04-30 16:35 ` [PATCH 3/3] sh: add the sh_ prefix to early platform symbols Bartosz Golaszewski
2018-04-30 23:52 ` kbuild test robot [this message]
2018-04-30 16:42 ` [PATCH 0/3] sh: make early_platform code SuperH-specific Rich Felker
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=201805010735.DbWU1fzw%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=arnd@arndb.de \
--cc=bgolaszewski@baylibre.com \
--cc=brgl@bgdev.pl \
--cc=dalias@libc.org \
--cc=daniel.lezcano@linaro.org \
--cc=david@lechnology.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=kbuild-all@01.org \
--cc=khilman@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=nsekhar@ti.com \
--cc=peda@axentia.se \
--cc=rafael.j.wysocki@intel.com \
--cc=sboyd@kernel.org \
--cc=tglx@linutronix.de \
--cc=ysato@users.sourceforge.jp \
/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
all inboxes | Powered by JetHome®