[PATCH 25/45] C++: Fix void variables
From: David Howells
Date: Sun Apr 01 2018 - 16:42:54 EST
Turn void-type variables into char-type as C++ doesn't allow the former.
Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---
include/asm-generic/sections.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index 849cd8eb5ca0..f3efd6cc9ba0 100644
--- a/include/asm-generic/sections.h
+++ b/include/asm-generic/sections.h
@@ -53,7 +53,7 @@ extern char __ctors_start[], __ctors_end[];
/* Start and end of .opd section - used for function descriptors. */
extern char __start_opd[], __end_opd[];
-extern __visible const void __nosave_begin, __nosave_end;
+extern __visible const char __nosave_begin[], __nosave_end[];
/* Function descriptor handling (if any). Override in asm/sections.h */
#ifndef dereference_function_descriptor