diff options
| author | Florian Fainelli <[email protected]> | 2020-07-25 21:15:20 -0700 |
|---|---|---|
| committer | Thomas Bogendoerfer <[email protected]> | 2020-08-17 13:47:28 +0200 |
| commit | d92aabca4df182763cd541d342f2d55f8c0a827c (patch) | |
| tree | 355d91105acb5a4b08253743e76355ed89a030d5 /include | |
| parent | 08b5666db72273d2054a2a48961c6c33f9d697b2 (diff) | |
firmware: bcm47xx_sprom: Fix -Wmissing-prototypes warnings
bcm47xx_sprom.h did not include a prototype for bcm47xx_fill_sprom()
therefore add one, and make sure we do include that header to fix
-Wmissing-prototypes warnings.
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/bcm47xx_sprom.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/bcm47xx_sprom.h b/include/linux/bcm47xx_sprom.h index b0f4424f34fc..f8254fd53e15 100644 --- a/include/linux/bcm47xx_sprom.h +++ b/include/linux/bcm47xx_sprom.h @@ -9,9 +9,19 @@ #include <linux/kernel.h> #include <linux/vmalloc.h> +struct ssb_sprom; + #ifdef CONFIG_BCM47XX_SPROM +void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, + bool fallback); int bcm47xx_sprom_register_fallbacks(void); #else +static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom, + const char *prefix, + bool fallback) +{ +} + static inline int bcm47xx_sprom_register_fallbacks(void) { return -ENOTSUPP; |