diff options
Diffstat (limited to 'arch/s390/kernel/ftrace.c')
-rw-r--r-- | arch/s390/kernel/ftrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/ftrace.c b/arch/s390/kernel/ftrace.c index 4c8072068125..1014ad5f7693 100644 --- a/arch/s390/kernel/ftrace.c +++ b/arch/s390/kernel/ftrace.c | |||
@@ -178,7 +178,7 @@ int ftrace_enable_ftrace_graph_caller(void) | |||
178 | 178 | ||
179 | offset = ((void *) prepare_ftrace_return - | 179 | offset = ((void *) prepare_ftrace_return - |
180 | (void *) ftrace_graph_caller) / 2; | 180 | (void *) ftrace_graph_caller) / 2; |
181 | return probe_kernel_write(ftrace_graph_caller + 2, | 181 | return probe_kernel_write((void *) ftrace_graph_caller + 2, |
182 | &offset, sizeof(offset)); | 182 | &offset, sizeof(offset)); |
183 | } | 183 | } |
184 | 184 | ||
@@ -186,7 +186,7 @@ int ftrace_disable_ftrace_graph_caller(void) | |||
186 | { | 186 | { |
187 | static unsigned short offset = 0x0002; | 187 | static unsigned short offset = 0x0002; |
188 | 188 | ||
189 | return probe_kernel_write(ftrace_graph_caller + 2, | 189 | return probe_kernel_write((void *) ftrace_graph_caller + 2, |
190 | &offset, sizeof(offset)); | 190 | &offset, sizeof(offset)); |
191 | } | 191 | } |
192 | 192 | ||