From: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re:
Date: Fri, 25 Sep 2026 14:24:15 +0800 [thread overview]
Message-ID: <202609251426.jvxMSRpi-lkp@intel.com> (raw)
In-Reply-To: <202609251426.jvxMSRpi-lkp@intel.com>
Hi Guangshuo,
kernel test robot noticed the following build errors:
url: https://github.com/intel-lab-lkp/linux/commits/Guangshuo-Li/pmdomain-imx-gpc-remove-all-initialized-power-domains/20260924-222520
base:
patch link: https://lore.kernel.org/r/202609251426.jvxMSRpi-lkp%40intel.com
config: arm-defconfig (https://download.01.org/0day-ci/archive/20260925/202609251426.jvxMSRpi-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6e714c8d91116794cb699cdf80c26afe9cda3ef3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/202609251426.jvxMSRpi-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609251426.jvxMSRpi-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pmdomain/imx/gpc.c:554:1: error: function definition is not allowed here
554 | builtin_platform_driver(imx_gpc_driver)
| ^
include/linux/platform_device.h:345:2: note: expanded from macro 'builtin_platform_driver'
345 | builtin_driver(__platform_driver, platform_driver_register)
| ^
include/linux/device/driver.h:294:41: note: expanded from macro 'builtin_driver'
294 | static int __init __driver##_init(void) \
| ^
>> drivers/pmdomain/imx/gpc.c:554:1: error: use of undeclared identifier 'imx_gpc_driver_init'; did you mean 'imx_gpc_driver'?
554 | builtin_platform_driver(imx_gpc_driver)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/platform_device.h:345:2: note: expanded from macro 'builtin_platform_driver'
345 | builtin_driver(__platform_driver, platform_driver_register)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device/driver.h:298:17: note: expanded from macro 'builtin_driver'
298 | device_initcall(__driver##_init);
| ^~~~~~~~~~~~~~~
<scratch space>:136:1: note: expanded from here
136 | imx_gpc_driver_init
| ^~~~~~~~~~~~~~~~~~~
drivers/pmdomain/imx/gpc.c:546:31: note: 'imx_gpc_driver' declared here
546 | static struct platform_driver imx_gpc_driver = {
| ^
>> drivers/pmdomain/imx/gpc.c:554:1: error: initializing 'initcall_t' (aka 'int (*)(void)') with an expression of incompatible type 'struct platform_driver'
554 | builtin_platform_driver(imx_gpc_driver)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/platform_device.h:345:2: note: expanded from macro 'builtin_platform_driver'
345 | builtin_driver(__platform_driver, platform_driver_register)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device/driver.h:297:3: note: expanded from macro 'builtin_driver'
297 | } \
| ^
298 | device_initcall(__driver##_init);
| ~~~~~~~~~~~~~~~
include/linux/init.h:306:30: note: expanded from macro '\
device_initcall'
306 | #define device_initcall(fn) __define_initcall(fn, 6)
| ^ ~~
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:15:24: note: expanded from macro '___PASTE'
15 | #define ___PASTE(a, b) a##b
| ^
<scratch space>:150:1: note: expanded from here
150 | __initcall__kmod_gpc__425_554_imx_gpc_driver_init6
| ^
include/linux/init.h:264:20: note: expanded from macro '____define_initcall'
264 | static initcall_t __name __used \
| ^
265 | __attribute__((__section__(__sec))) = fn;
| ~~
>> drivers/pmdomain/imx/gpc.c:554:40: error: expected '}'
554 | builtin_platform_driver(imx_gpc_driver)
| ^
drivers/pmdomain/imx/gpc.c:504:1: note: to match this '{'
504 | {
| ^
4 errors generated.
vim +554 drivers/pmdomain/imx/gpc.c
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 545
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 @546 static struct platform_driver imx_gpc_driver = {
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 547 .driver = {
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 548 .name = "imx-gpc",
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 549 .of_match_table = imx_gpc_dt_ids,
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 550 },
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 551 .probe = imx_gpc_probe,
e70140ba0d2b1a drivers/pmdomain/imx/gpc.c Linus Torvalds 2024-12-01 552 .remove = imx_gpc_remove,
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 553 };
721cabf6c6600d drivers/soc/imx/gpc.c Lucas Stach 2017-02-17 @554 builtin_platform_driver(imx_gpc_driver)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next parent reply other threads:[~2026-09-25 6:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 6:24 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-26 6:02 kernel test robot
2026-09-26 3:08 Re: kernel test robot
2024-11-25 20:13 Re: Robert Harewood
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=202609251426.jvxMSRpi-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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