clk: mmp: avoid missing prototype warning
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
@@ -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
@@ -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
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.
Reported-by kernel test robot <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
Applied to clk-next