power: supply: core: Fix power_supply_init_attrs() stub
authorNathan Chancellor <nathan@kernel.org>
Tue, 27 Feb 2024 20:34:42 +0000 (13:34 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 28 Feb 2024 21:53:27 +0000 (22:53 +0100)
commitb683d738c0a1c4c8fcf83fdf5eb4c6ce3d5130c6
tree65c3e439fee5c1d2455816c1d5ef362e869c103d
parent8fbb11162504f2de167a8ccd2d2c55a849d2c5ea
power: supply: core: Fix power_supply_init_attrs() stub

When building without CONFIG_SYSFS, there is an error because of a
recent refactoring that failed to update the stub of
power_supply_init_attrs():

  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) {}
        |                    ^~~~~~~~~~~~~~~~~~~~~~~

Update the stub function to take no parameters like the rest of the
refactoring, which resolves the build error.

Fixes: 7b46b60944d7 ("power: supply: core: constify the struct device_type usage")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240227-fix-power_supply_init_attrs-stub-v1-1-43365e68d4b3@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply.h