Skip to content

Commit 60e5da6

Browse files
committed
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 <[email protected]>
1 parent bcf8768 commit 60e5da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/asm-generic/sections.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ extern __visible const void __nosave_begin, __nosave_end;
6060

6161
/* Function descriptor handling (if any). Override in asm/sections.h */
6262
#ifndef dereference_function_descriptor
63-
#define dereference_function_descriptor(p) (p)
64-
#define dereference_kernel_function_descriptor(p) (p)
63+
#define dereference_function_descriptor(p) ((void *)(p))
64+
#define dereference_kernel_function_descriptor(p) ((void *)(p))
6565
#endif
6666

6767
/* random extra sections (if any). Override

0 commit comments

Comments
 (0)