]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
regulator: add missing 'static inline' to a helper's stub
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 2 Sep 2019 15:13:32 +0000 (17:13 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2019 11:37:16 +0000 (12:37 +0100)
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@baylibre.com>
Link: https://lore.kernel.org/r/20190902151332.28058-1-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regulator/consumer.h

index 6d2181a7698741052e928721d371e2fd61c49530..337a463915278cc000cbdb0d47b40ea4e5645a7d 100644 (file)
@@ -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)
 {
 }