summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/sections.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2020-08-09 07:30:06 +0200
committerHelge Deller <deller@gmx.de>2020-08-11 12:06:15 +0200
commit60e5da629a7c29e0987f6f02ec20b14c4ee0645e (patch)
treeb908ce5d4d76838a91da157d136cee91d5bf6362 /include/asm-generic/sections.h
parentLinux 5.8 (diff)
downloadlinux-60e5da629a7c29e0987f6f02ec20b14c4ee0645e.tar.xz
linux-60e5da629a7c29e0987f6f02ec20b14c4ee0645e.zip
sections.h: dereference_function_descriptor() returns void pointer
The function dereference_function_descriptor() takes on hppa64, ppc64 and ia64 a pointer to a function descriptor and returns a (void) pointer to the dereferenced function. To make cross-arch coding easier, on all other architectures the dereference_function_descriptor() macro should return a void pointer too. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'include/asm-generic/sections.h')
-rw-r--r--include/asm-generic/sections.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index 66397ed10acb..d16302d3eb59 100644
--- a/include/asm-generic/sections.h
+++ b/include/asm-generic/sections.h
@@ -60,8 +60,8 @@ extern __visible const void __nosave_begin, __nosave_end;
/* Function descriptor handling (if any). Override in asm/sections.h */
#ifndef dereference_function_descriptor
-#define dereference_function_descriptor(p) (p)
-#define dereference_kernel_function_descriptor(p) (p)
+#define dereference_function_descriptor(p) ((void *)(p))
+#define dereference_kernel_function_descriptor(p) ((void *)(p))
#endif
/* random extra sections (if any). Override