diff mbox series

[02/10] sparse: Silence "directive in argument list" for version string

Message ID 20190718065117.16923-3-stewart@linux.ibm.com
State Accepted
Headers show
Series Misc sparse fixes | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (3a6fdede6ce117facec0108afe716cf5d0472c3f)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith July 18, 2019, 6:51 a.m. UTC
core/init.c:966:1: error: directive in argument list
core/init.c:968:1: error: directive in argument list
core/init.c:970:1: error: directive in argument list

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 core/init.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/core/init.c b/core/init.c
index c99302c86500..e3e0ea380bb2 100644
--- a/core/init.c
+++ b/core/init.c
@@ -66,6 +66,12 @@  static bool kernel_32bit;
 /* We backup the previous vectors here before copying our own */
 static uint8_t old_vectors[EXCEPTION_VECTORS_END];
 
+#ifdef DEBUG
+#define DEBUG_STR "-debug"
+#else
+#define DEBUG_STR ""
+#endif
+
 #ifdef SKIBOOT_GCOV
 void skiboot_gcov_done(void);
 #endif
@@ -962,13 +968,8 @@  void __noreturn __nomcount main_cpu_entry(const void *fdt)
 	/* Call library constructors */
 	do_ctors();
 
-	prlog(PR_NOTICE, "OPAL %s%s starting...\n", version,
-#ifdef DEBUG
-	"-debug"
-#else
-	""
-#endif
-	);
+	prlog(PR_NOTICE, "OPAL %s%s starting...\n", version, DEBUG_STR);
+
 	prlog(PR_DEBUG, "initial console log level: memory %d, driver %d\n",
 	       (debug_descriptor.console_log_levels >> 4),
 	       (debug_descriptor.console_log_levels & 0x0f));