linux-next: build warnings after merge of the regulator tree
Hi all,
After merging the regulator tree, today's linux-next build (i386 defconfig among others) produced these warnings:
In file included from include/linux/regulator/machine.h:18:0,
from drivers/acpi/bus.c:36:
include/linux/regulator/consumer.h:468:23: warning: 'regulator_get_regmap' defined but not used [-Wunused-function]
static struct regmap *regulator_get_regmap(struct regulator *regulator)
^
include/linux/regulator/consumer.h:473:12: warning: 'regulator_get_hardware_vsel_register' defined but not used [-Wunused-function]
static int regulator_get_hardware_vsel_register(struct regulator *regulator,
^
include/linux/regulator/consumer.h:480:12: warning: 'regulator_list_hardware_vsel' defined but not used [-Wunused-function]
static int regulator_list_hardware_vsel(struct regulator *regulator,
^And more like that.
Introduced by commit 04eca28cde52 ("regulator: Add helpers for low-level register access"). Missing "static inline"s ... I suspect this is becoming more common due to the lack of "extern"s in our header files now. :-(
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Mark Brown
maintainerQuoted 5 lines · Stephen Rothwell
In file included from
include/linux/regulator/machine.h:18:0,from drivers/acpi/bus.c:36: include/linux/regulator/consumer.h:468:23: warning: 'regulator_get_regmap' defined but not used [-Wunused-function] static struct regmap *regulator_get_regmap(struct regulator *regulator) ^
Ugh, that should actually be fixed but apparently I forgot to rebuild my -next branch before you picked it up. Should be fine tomorrow anyway, sorry.