[PATCH 25/45] C++: Fix void variables

David Howells
2018-04-01T20:42:50Z

Turn void-type variables into char-type as C++ doesn't allow the former.

Signed-off-by: David Howells <dhowells@redhat.com>
---

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