linux/drivers/power/supply
Linus Torvalds be913e7c40 gcc-15: get rid of misc extra NUL character padding
This removes two cases of explicit NUL padding that now causes warnings
because of '-Wunterminated-string-initialization' being part of -Wextra
in gcc-15.

Gcc is being silly in this case when it says that it truncates a NUL
terminator, because in these cases there were _multiple_ NUL characters.

But we can get rid of the warning by just simplifying the two
initializers that trigger the warning for me, so this does exactly that.

I'm not sure why the power supply code did that odd

    .attr_name = #_name "\0",

pattern: it was introduced in commit 2cabeaf151 ("power: supply: core:
Cleanup power supply sysfs attribute list"), but that 'attr_name[]'
field is an explicitly sized character array in a statically initialized
variable, and a string initializer always has a terminating NUL _and_
statically initialized character arrays are zero-padded anyway, so it
really seems to be rather extraneous belt-and-suspenders.

The zero_uuid[16] initialization in drivers/md/bcache/super.c makes
perfect sense, but it isn't necessary for the same reasons, and not
worth the new gcc warning noise.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-04-20 11:57:54 -07:00
..
88pm860x_battery.c power: supply: Use str_enable_disable-like helpers 2025-01-15 21:41:22 +01:00
88pm860x_charger.c
Kconfig power supply and reset changes for the 6.15 series 2025-03-29 18:11:12 -07:00
Makefile power supply and reset changes for the 6.15 series 2025-03-29 18:11:12 -07:00
ab8500-bm.h
ab8500-chargalg.h
ab8500_bmdata.c
ab8500_btemp.c power: supply: ab8500: use power_supply_for_each_psy() 2024-12-11 02:00:24 +01:00
ab8500_chargalg.c power: supply: ab8500_chargalg: Switch to use hrtimer_setup() 2025-02-18 11:19:04 +01:00
ab8500_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
ab8500_fg.c power: supply: ab8500: use dev_to_psy() 2024-12-11 02:00:25 +01:00
acer_a500_battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
act8945a_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
adp5061.c
apm_power.c power: supply: apm_power: use power_supply_for_each_psy() 2024-12-11 02:00:24 +01:00
axp20x_ac_power.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
axp20x_battery.c power supply and reset changes for the 6.15 series 2025-03-29 18:11:12 -07:00
axp20x_usb_power.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
axp288_charger.c
axp288_fuel_gauge.c
bd99954-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bd99954-charger.h
bq27xxx_battery.c Revert "power: supply: bq27xxx: do not report bogus zero values" 2025-03-17 15:53:59 +01:00
bq27xxx_battery_hdq.c
bq27xxx_battery_i2c.c
bq256xx_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bq2415x_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bq2515x_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bq24190_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bq24257_charger.c power: supply: bq24257: convert to use maple tree register cache 2025-03-08 01:30:54 +01:00
bq24735-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bq25890_charger.c power: supply: bq25890: convert to use maple tree register cache 2025-03-08 01:30:54 +01:00
bq25980_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
bq25980_charger.h
charger-manager.c power: supply: Use str_enable_disable-like helpers 2025-01-15 21:41:22 +01:00
collie_battery.c
cpcap-battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
cpcap-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
cros_charge-control.c power: supply: core: add UAPI to discover currently used extensions 2024-12-14 22:50:17 +01:00
cros_peripheral_charger.c
cros_usbpd-charger.c
cw2015_battery.c
da9030_battery.c power: supply: da9030: convert timeouts to secs_to_jiffies() 2025-03-17 12:16:58 -07:00
da9052-battery.c
da9150-charger.c
da9150-fg.c power: supply: da9150-fg: fix potential overflow 2025-02-03 12:23:49 +01:00
ds2760_battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
ds2780_battery.c power: supply: ds2780: constify 'struct bin_attribute' 2024-12-04 22:19:13 +01:00
ds2781_battery.c power: supply: ds2781: constify 'struct bin_attribute' 2024-12-04 22:19:13 +01:00
ds2782_battery.c power: supply: ds2782: Use devm_delayed_work_autocancel() helper 2024-12-04 22:31:32 +01:00
generic-adc-battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
goldfish_battery.c
gpio-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
ingenic-battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
ip5xxx_power.c i2c-for-6.15-rc1 2025-04-01 14:21:02 -07:00
ipaq_micro_battery.c
isp1704_charger.c
lego_ev3_battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
lenovo_yoga_c630_battery.c
lp8727_charger.c
lp8788-charger.c
lt3651-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
ltc2941-battery-gauge.c
ltc4162-l-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
max1720x_battery.c power: supply: max1720x: convert to use maple tree register cache 2025-03-08 01:30:54 +01:00
max1721x_battery.c
max8903_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
max8925_power.c
max8997_charger.c
max8998_charger.c
max14577_charger.c
max14656_charger_detector.c
max17040_battery.c
max17042_battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
max77650-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
max77693_charger.c power: supply: max77693: Fix wrong conversion of charge input threshold value 2025-03-17 15:25:24 +01:00
max77705_charger.c power: supply: max77705: Add charger driver for Maxim 77705 2025-02-20 16:37:23 +00:00
max77976_charger.c
mm8013.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
mp2629_charger.c
mt6360_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
mt6370-charger.c power: supply: mt6370: Remove redundant 'flush_workqueue()' calls 2025-03-17 16:00:09 +01:00
olpc_battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
pm8916_bms_vm.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
pm8916_lbc.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
pmu_battery.c
power_supply.h power: supply: core: fix build of extension sysfs group if CONFIG_SYSFS=n 2024-12-19 21:45:58 +01:00
power_supply_core.c power supply and reset changes for the 6.15 series 2025-03-29 18:11:12 -07:00
power_supply_hwmon.c power: supply: hwmon: prepare for power supply extensions 2024-12-05 00:02:31 +01:00
power_supply_leds.c
power_supply_sysfs.c gcc-15: get rid of misc extra NUL character padding 2025-04-20 11:57:54 -07:00
qcom_battmgr.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
qcom_pmi8998_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
qcom_smbb.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rk817_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rn5t618_power.c
rt5033_battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rt5033_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rt9455_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rt9467-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rt9471.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
rx51_battery.c
samsung-sdi-battery.c
samsung-sdi-battery.h
sbs-battery.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
sbs-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
sbs-manager.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
sc27xx_fuel_gauge.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
sc2731_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
smb347-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
stc3117_fuel_gauge.c power: supply: Add STC3117 fuel gauge unit driver 2024-12-21 16:39:34 +01:00
surface_battery.c power: supply: surface_battery: use dev_to_psy() 2024-12-11 02:00:25 +01:00
surface_charger.c
test_power.c power: supply: core: add UAPI to discover currently used extensions 2024-12-14 22:50:17 +01:00
tps65090-charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
tps65217_charger.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
twl4030_charger.c
twl4030_madc_battery.c
twl6030_charger.c
ucs1002_power.c power: supply: all: switch psy_cfg from of_node to fwnode 2025-03-08 01:42:34 +01:00
ug3105_battery.c power: supply: ug3105_battery: Let the core handle POWER_SUPPLY_PROP_TECHNOLOGY 2024-12-20 01:08:51 +01:00
wilco-charger.c
wm97xx_battery.c
wm831x_backup.c
wm831x_power.c
wm8350_power.c