Skip to contentSkip to conversation

clk: mmp: avoid missing prototype warning

PATCH Applied Arnd Bergmann 2 participants 2 messages Jul 29, 2020 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: mmp: avoid missing prototype warning

The kernel test robot points out two harmless warnings in the mmp clk drivers:

drivers/clk/mmp/clk-pxa168.c:68:13: warning: no previous prototype for 'pxa168_clk_init' [-Wmissing-prototypes] drivers/clk/mmp/clk-pxa910.c:66:13: warning: no previous prototype for 'pxa910_clk_init' [-Wmissing-prototypes]

Fix these by including corresponding header file.

---
 drivers/clk/mmp/clk-pxa168.c | 1 +
 drivers/clk/mmp/clk-pxa910.c | 1 +
 2 files changed, 2 insertions(+)
drivers/clk/mmp/clk-pxa168.c +1 -0
index 8e2551ab8462..b351039cac09 100644
@@ -10,6 +10,7 @@
  */
 
 #include <linux/clk.h>
+#include <linux/clk/mmp.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/spinlock.h>
drivers/clk/mmp/clk-pxa910.c +1 -0
index 7a7965141918..f254ceff3ea7 100644
@@ -10,6 +10,7 @@
  */
 
 #include <linux/clk.h>
+#include <linux/clk/mmp.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/spinlock.h>
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw

Quoting Arnd Bergmann (2020-07-29 04:34:39)

Quoted 11 lines

The kernel test robot points out two harmless warnings in the mmp clk drivers:

drivers/clk/mmp/clk-pxa168.c:68:13: warning: no previous prototype for 'pxa168_clk_init' [-Wmissing-prototypes] drivers/clk/mmp/clk-pxa910.c:66:13: warning: no previous prototype for 'pxa910_clk_init' [-Wmissing-prototypes]

Fix these by including corresponding header file.

---

Applied to clk-next