Skip to content

Commit 7def423

Browse files
committed
parisc: traps: Mark functions static
Signed-off-by: Helge Deller <[email protected]>
1 parent 5f0c791 commit 7def423

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

arch/parisc/kernel/traps.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static void default_trap(int code, struct pt_regs *regs)
338338
void (*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

0 commit comments

Comments
 (0)