File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ static void default_trap(int code, struct pt_regs *regs)
338338void (* cpu_lpmc ) (int code , struct pt_regs * regs ) __read_mostly = default_trap ;
339339
340340
341- void transfer_pim_to_trap_frame (struct pt_regs * regs )
341+ static void transfer_pim_to_trap_frame (struct pt_regs * regs )
342342{
343343 register int i ;
344344 extern unsigned int hpmc_pim_data [];
@@ -800,14 +800,13 @@ void notrace handle_interruption(int code, struct pt_regs *regs)
800800}
801801
802802
803- void __init initialize_ivt (const void * iva )
803+ static void __init initialize_ivt (const void * iva )
804804{
805805 extern const u32 os_hpmc [];
806806
807807 int i ;
808808 u32 check = 0 ;
809809 u32 * ivap ;
810- u32 * hpmcp ;
811810 u32 instr ;
812811
813812 if (strcmp ((const char * )iva , "cows can fly" ))
@@ -840,8 +839,6 @@ void __init initialize_ivt(const void *iva)
840839 /* Setup IVA and compute checksum for HPMC handler */
841840 ivap [6 ] = (u32 )__pa (os_hpmc );
842841
843- hpmcp = (u32 * )os_hpmc ;
844-
845842 for (i = 0 ; i < 8 ; i ++ )
846843 check += ivap [i ];
847844
You can’t perform that action at this time.
0 commit comments