* [linux-next:master 9574/10830] drivers/power/supply/power_supply_core.c:1630:9: error: too few arguments to function 'power_supply_init_attrs'
@ 2024-02-28 17:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-28 17:16 UTC (permalink / raw)
To: Ricardo B. Marliere
Cc: oe-kbuild-all, Linux Memory Management List, Sebastian Reichel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 20af1ca418d2c0b11bc2a1fe8c0c88f67bcc2a7e
commit: 7b46b60944d77e361a727cd8ce46aec31c146e26 [9574/10830] power: supply: core: constify the struct device_type usage
config: alpha-randconfig-r016-20220129 (https://download.01.org/0day-ci/archive/20240229/202402290152.FpUEAK3i-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240229/202402290152.FpUEAK3i-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/202402290152.FpUEAK3i-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/power/supply/power_supply_core.c: In function 'power_supply_class_init':
>> drivers/power/supply/power_supply_core.c:1630:9: error: too few arguments to function 'power_supply_init_attrs'
1630 | power_supply_init_attrs();
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/power/supply/power_supply_core.c:25:
drivers/power/supply/power_supply.h:25:20: note: declared here
25 | static inline void power_supply_init_attrs(struct device_type *dev_type) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/power_supply_init_attrs +1630 drivers/power/supply/power_supply_core.c
1621
1622 static int __init power_supply_class_init(void)
1623 {
1624 power_supply_class = class_create("power_supply");
1625
1626 if (IS_ERR(power_supply_class))
1627 return PTR_ERR(power_supply_class);
1628
1629 power_supply_class->dev_uevent = power_supply_uevent;
> 1630 power_supply_init_attrs();
1631
1632 return 0;
1633 }
1634
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-28 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 17:16 [linux-next:master 9574/10830] drivers/power/supply/power_supply_core.c:1630:9: error: too few arguments to function 'power_supply_init_attrs' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox