[linux-next:master 9574/10830] drivers/power/supply/power_supply_core.c:1630:9: error: too few arguments to function 'power_supply_init_attrs'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@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/202402290152.FpUEAK3i-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux