If CONFIG_MFD_SYSCON=n: include/linux/mfd/syscon.h:54:23: warning: ‘syscon_regmap_lookup_by_phandle_args’ defined but not used [-Wunused-function] Fix this by adding the missing inline keyword.
Unified · Split
| @@ -51,7 +51,7 @@ static inline struct regmap *syscon_regmap_lookup_by_phandle( · 50 unmodified lines | |||
| 51 | return ERR_PTR(-ENOTSUPP); | 51 | return ERR_PTR(-ENOTSUPP); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | static struct regmap *syscon_regmap_lookup_by_phandle_args( | 54 | static inline struct regmap *syscon_regmap_lookup_by_phandle_args( |
| 55 | struct device_node *np, | 55 | struct device_node *np, |
| 56 | const char *property, | 56 | const char *property, |
| 57 | int arg_count, | 57 | int arg_count, |