Skip to contentSkip to conversation

linux-next: build warnings after merge of the regulator tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jul 28, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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]
maintainer
#1 lore raw
Quoted 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.