diff mbox series

ARM: imx: pm-imx27: Include "common.h"

Message ID 20210508160319.32806-1-festevam@gmail.com
State New
Headers show
Series ARM: imx: pm-imx27: Include "common.h" | expand

Commit Message

Fabio Estevam May 8, 2021, 4:03 p.m. UTC
Since commit 879c0e5e0ac7 ("ARM: imx: Remove i.MX27 board files")
the following W=1 build warning is seen:

arch/arm/mach-imx/pm-imx27.c:40:13: warning: no previous prototype for 'imx27_pm_init' [-Wmissing-prototypes]

Fix it by including the "common.h" header file, which
contains the prototype for imx27_pm_init().

Fixes: 879c0e5e0ac7 ("ARM: imx: Remove i.MX27 board files")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/mach-imx/pm-imx27.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Shawn Guo May 23, 2021, 2:49 a.m. UTC | #1
On Sat, May 08, 2021 at 01:03:19PM -0300, Fabio Estevam wrote:
> Since commit 879c0e5e0ac7 ("ARM: imx: Remove i.MX27 board files")
> the following W=1 build warning is seen:
> 
> arch/arm/mach-imx/pm-imx27.c:40:13: warning: no previous prototype for 'imx27_pm_init' [-Wmissing-prototypes]
> 
> Fix it by including the "common.h" header file, which
> contains the prototype for imx27_pm_init().
> 
> Fixes: 879c0e5e0ac7 ("ARM: imx: Remove i.MX27 board files")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/pm-imx27.c b/arch/arm/mach-imx/pm-imx27.c
index 020e6deb67c8..237e8aa9fe83 100644
--- a/arch/arm/mach-imx/pm-imx27.c
+++ b/arch/arm/mach-imx/pm-imx27.c
@@ -12,6 +12,7 @@ 
 #include <linux/suspend.h>
 #include <linux/io.h>
 
+#include "common.h"
 #include "hardware.h"
 
 static int mx27_suspend_enter(suspend_state_t state)