Re: [PATCH 3/3] power: sequencing: pcie-m2: Guard the helper functions making use of PCI bus notifier

From: kernel test robot

Date: Thu Apr 02 2026 - 19:09:02 EST


Hi Manivannan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linux-next/master]
[also build test WARNING on linus/master v6.16-rc1]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam/serdev-Add-missing-stubs-for-serdev-APIs-when-CONFIG_SERIAL_DEV_BUS-is-not-selected/20260402-225703
base: linux-next/master
patch link: https://lore.kernel.org/r/20260401070735.107162-4-manivannan.sadhasivam%40oss.qualcomm.com
patch subject: [PATCH 3/3] power: sequencing: pcie-m2: Guard the helper functions making use of PCI bus notifier
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260403/202604030008.5exLAPFm-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260403/202604030008.5exLAPFm-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604030008.5exLAPFm-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/tty/tty_port.c:20:
>> include/linux/serdev.h:268:83: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
268 | static inline struct serdev_device *serdev_device_alloc(struct serdev_controller *)
| ^
include/linux/serdev.h:272:59: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
272 | static inline int serdev_device_add(struct serdev_device *)
| ^
include/linux/serdev.h:276:63: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
276 | static inline void serdev_device_remove(struct serdev_device *) {}
| ^
include/linux/serdev.h:284:67: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
284 | static inline int serdev_controller_add(struct serdev_controller *)
| ^
include/linux/serdev.h:288:71: warning: omitting the parameter name in a function definition is a C23 extension [-Wc23-extensions]
288 | static inline void serdev_controller_remove(struct serdev_controller *) {}
| ^
5 warnings generated.


vim +268 include/linux/serdev.h

267
> 268 static inline struct serdev_device *serdev_device_alloc(struct serdev_controller *)
269 {
270 return NULL;
271 }
272 static inline int serdev_device_add(struct serdev_device *)
273 {
274 return -ENODEV;
275 }
276 static inline void serdev_device_remove(struct serdev_device *) {}
277

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki