Skip to contentSkip to conversation

include/kunit/platform_device.h:15:57: warning: 'struct completion' declared inside parameter list will not be visible outside of this definition or declaration

PATCH kernel test robot 2 participants 2 messages Dec 24, 2024 – Jan 2, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head:   86a5f32ed8813d5534d3d6c77aad29184a9f99b6
commit: 86a5f32ed8813d5534d3d6c77aad29184a9f99b6 [29/29] drivers: base: test: Add ...find_device_by...(... NULL) tests
config: arc-randconfig-002-20241224 (https://download.01.org/0day-ci/archive/20241224/[email protected]/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241224/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

In file included from drivers/base/test/platform-device-test.c:3:

>> include/kunit/platform_device.h:15:57: warning: 'struct completion' declared inside parameter list will not be visible outside of this definition or declaration
      15 |                                                  struct completion *x);
         |                                                         ^~~~~~~~~~

vim +15 include/kunit/platform_device.h

5ac79730324c6f Stephen Boyd 2024-07-18  12  
5ac79730324c6f Stephen Boyd 2024-07-18  13  int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
5ac79730324c6f Stephen Boyd 2024-07-18  14  						 struct platform_device *pdev,

5ac79730324c6f Stephen Boyd 2024-07-18 @15 struct completion *x);
5ac79730324c6f Stephen Boyd 2024-07-18 16

:::::: The code at line 15 was first introduced by commit
:::::: 5ac79730324c6f37106ce397586020ffe6e8e234 platform: Add test managed platform_device/driver APIs

:::::: TO: Stephen Boyd <[email protected]>
:::::: CC: Stephen Boyd <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw
Quoted 10 lines · kernel test robot

All warnings (new ones prefixed by >>):

In file included from drivers/base/test/platform-device-test.c:3:

Quoted 1 line
Quoted 1 line

include/kunit/platform_device.h:15:57: warning: 'struct completion' declared inside parameter list will not be visible outside of this definition or declaration

      15 |                                                  struct completion *x);
         |                                                         ^~~~~~~~~~

vim +15 include/kunit/platform_device.h

Quoted 8 lines
5ac79730324c6f Stephen Boyd 2024-07-18  12  
5ac79730324c6f Stephen Boyd 2024-07-18  13  int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
5ac79730324c6f Stephen Boyd 2024-07-18  14  						 struct platform_device *pdev,

5ac79730324c6f Stephen Boyd 2024-07-18 @15 struct completion *x);
5ac79730324c6f Stephen Boyd 2024-07-18 16

:::::: The code at line 15 was first introduced by commit
:::::: 5ac79730324c6f37106ce397586020ffe6e8e234 platform: Add test managed platform_device/driver APIs

For the record, I already patched this here:

https://lore.kernel.org/lkml/[email protected]/
Subject: [PATCH] kunit: platform: Resolve 'struct completion' warning

That patch is still pending though.

Brian