Skip to content

Commit 6414b30

Browse files
committed
parisc: unwind: Avoid missing prototype warning for handle_interruption()
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 147e17e commit 6414b30

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

arch/parisc/include/asm/processor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ extern void do_cpu_irq_mask(struct pt_regs *);
296296
extern irqreturn_t timer_interrupt(int, void *);
297297
extern irqreturn_t ipi_interrupt(int, void *);
298298
extern void start_cpu_itimer(void);
299+
extern void handle_interruption(int, struct pt_regs *);
299300

300301
/* called from assembly code: */
301302
extern void start_parisc(void);

arch/parisc/kernel/unwind.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,17 @@ static int unwind_special(struct unwind_frame_info *info, unsigned long pc, int
221221
* Note: We could use dereference_kernel_function_descriptor()
222222
* instead but we want to keep it simple here.
223223
*/
224-
extern void * const handle_interruption;
225224
extern void * const ret_from_kernel_thread;
226225
extern void * const syscall_exit;
227226
extern void * const intr_return;
228227
extern void * const _switch_to_ret;
229228
#ifdef CONFIG_IRQSTACKS
230229
extern void * const _call_on_stack;
231230
#endif /* CONFIG_IRQSTACKS */
231+
void *ptr;
232232

233-
if (pc_is_kernel_fn(pc, handle_interruption)) {
233+
ptr = dereference_kernel_function_descriptor(&handle_interruption);
234+
if (pc_is_kernel_fn(pc, ptr)) {
234235
struct pt_regs *regs = (struct pt_regs *)(info->sp - frame_size - PT_SZ_ALGN);
235236
dbg("Unwinding through handle_interruption()\n");
236237
info->prev_sp = regs->gr[30];

0 commit comments

Comments
 (0)