[PATCH] regulator: add missing 'static inline' to a helper's stub
From: Bartosz Golaszewski
Date: Mon Sep 02 2019 - 11:13:38 EST
From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
The build fails when CONFIG_REGULATOR is not selected because the stub
for regulator_bulk_set_supply_names() is missing the 'static inline'
attribute.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
---
include/linux/regulator/consumer.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 6d2181a76987..337a46391527 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -586,9 +586,10 @@ static inline int regulator_list_voltage(struct regulator *regulator, unsigned s
return -EINVAL;
}
-void regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers,
- const char *const *supply_names,
- unsigned int num_supplies)
+static inline void
+regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers,
+ const char *const *supply_names,
+ unsigned int num_supplies)
{
}
--
2.21.0