Commit d7cdfc01e3e060d19d95df680a1dc2a7dc7330e3

Authored by Ye Li
1 parent 114cc2a62d

MLK-24178 imx8: Fix build warning in sci

Find below warning on some boards, because sci.h does not include
log.h. Fix the issue by replacing linux/errno.h to common.h

./arch/arm/include/asm/arch/sci/sci.h: In function ‘sc_err_to_linux’:
./arch/arm/include/asm/arch/sci/sci.h:56:2: warning: implicit declaration
of function ‘debug’ [-Wimplicit-function-declaration]
56 | debug("%s %d %d\n", _func_, err, ret);

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 29509c2104e6820f6618074fd1f109c7ff70bdd2)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/arm/include/asm/arch-imx8/sci/sci.h
... ... @@ -16,7 +16,7 @@
16 16 #include <asm/arch/sci/svc/timer/api.h>
17 17 #include <asm/arch/sci/rpc.h>
18 18 #include <dt-bindings/soc/imx_rsrc.h>
19   -#include <linux/errno.h>
  19 +#include <common.h>
20 20  
21 21 static inline int sc_err_to_linux(sc_err_t err)
22 22 {