Skip to contentSkip to conversation

ARM: s3c64xx: smartq: Avoid sparse warnings

PATCH New Thierry Reding 2 participants 2 messages Jul 11, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: s3c64xx: smartq: Avoid sparse warnings

From: Thierry Reding <[email protected]>

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.

---
 arch/arm/mach-s3c64xx/mach-smartq.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-s3c64xx/mach-smartq.c +1 -0
index 936a63fc68d5..e0e1a729ef98 100644
@@ -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
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/1 ARM: s3c64xx: smartq: Avoid sparse warnings

Quoted 7 lines · Thierry Reding

From: Thierry Reding <[email protected]>

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.

Quoted 7 lines

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

---
 arch/arm/mach-s3c64xx/mach-smartq.c | 1 +
 1 file changed, 1 insertion(+)

Thanks, applied.

Best regards,
Krzysztof