Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lkp@intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Florian Fainelli and committed by
Thomas Bogendoerfer
d92aabca 08b5666d

+11
+1
drivers/firmware/broadcom/bcm47xx_sprom.c
··· 27 27 */ 28 28 29 29 #include <linux/bcm47xx_nvram.h> 30 + #include <linux/bcm47xx_sprom.h> 30 31 #include <linux/bcma/bcma.h> 31 32 #include <linux/etherdevice.h> 32 33 #include <linux/if_ether.h>
+10
include/linux/bcm47xx_sprom.h
··· 9 9 #include <linux/kernel.h> 10 10 #include <linux/vmalloc.h> 11 11 12 + struct ssb_sprom; 13 + 12 14 #ifdef CONFIG_BCM47XX_SPROM 15 + void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, 16 + bool fallback); 13 17 int bcm47xx_sprom_register_fallbacks(void); 14 18 #else 19 + static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom, 20 + const char *prefix, 21 + bool fallback) 22 + { 23 + } 24 + 15 25 static inline int bcm47xx_sprom_register_fallbacks(void) 16 26 { 17 27 return -ENOTSUPP;