diff mbox

ARM: s3c64xx: smartq: Avoid sparse warnings

Message ID 20160711084836.12835-1-thierry.reding@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Thierry Reding July 11, 2016, 8:48 a.m. UTC
From: Thierry Reding <treding@nvidia.com>

The smartq_map_io() and smartq_machine_init() functions are used by both
SmartQ 5 and SmartQ 7 machines and exported via the mach-smartq.h header
file. However that header file is not included by the mach-smartq.c file
that implements them, causing sparse warnings.

Include mach-smartq.h from mach-smartq.c to fix these warnings.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm/mach-s3c64xx/mach-smartq.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Krzysztof Kozlowski July 11, 2016, 3:47 p.m. UTC | #1
On Mon, Jul 11, 2016 at 10:48:36AM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> The smartq_map_io() and smartq_machine_init() functions are used by both
> SmartQ 5 and SmartQ 7 machines and exported via the mach-smartq.h header
> file. However that header file is not included by the mach-smartq.c file
> that implements them, causing sparse warnings.
> 
> Include mach-smartq.h from mach-smartq.c to fix these warnings.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  arch/arm/mach-s3c64xx/mach-smartq.c | 1 +
>  1 file changed, 1 insertion(+)
>

Thanks, applied.

Best regards,
Krzysztof

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c
index 936a63fc68d5..e0e1a729ef98 100644
--- a/arch/arm/mach-s3c64xx/mach-smartq.c
+++ b/arch/arm/mach-s3c64xx/mach-smartq.c
@@ -43,6 +43,7 @@ 
 #include <plat/samsung-time.h>
 
 #include "common.h"
+#include "mach-smartq.h"
 #include "regs-modem.h"
 
 #define UCON S3C2410_UCON_DEFAULT