firmware: bcm47xx_sprom: Fix -Wmissing-prototypes warnings
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 26 Jul 2020 04:15:20 +0000 (21:15 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 17 Aug 2020 11:47:28 +0000 (13:47 +0200)
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>
drivers/firmware/broadcom/bcm47xx_sprom.c
include/linux/bcm47xx_sprom.h

index 4787f86c8ac127913b0cdf8870af5eeda2d47d91..14fbcd11657cef2626d3237ba2cc1352d0a4da04 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <linux/bcm47xx_nvram.h>
+#include <linux/bcm47xx_sprom.h>
 #include <linux/bcma/bcma.h>
 #include <linux/etherdevice.h>
 #include <linux/if_ether.h>
index b0f4424f34fc6d66d219849af15b402331e441ea..f8254fd53e15f826c31648825bbbf23d2f560f26 100644 (file)
@@ -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;