Commit 0f6014b3 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras

[PATCH] ppc64: Make two ItLpQueue related functions static

External parties don't need to use ItLpQueue_getNextLpEvent() or
ItLpQueue_clearValid(), they're internal to ItLpQueue.c
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Acked-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 7b01328d
...@@ -62,7 +62,7 @@ static __inline__ void clear_inUse(void) ...@@ -62,7 +62,7 @@ static __inline__ void clear_inUse(void)
extern LpEventHandler lpEventHandler[HvLpEvent_Type_NumTypes]; extern LpEventHandler lpEventHandler[HvLpEvent_Type_NumTypes];
unsigned long ItLpQueueInProcess = 0; unsigned long ItLpQueueInProcess = 0;
struct HvLpEvent * ItLpQueue_getNextLpEvent(void) static struct HvLpEvent * ItLpQueue_getNextLpEvent(void)
{ {
struct HvLpEvent * nextLpEvent = struct HvLpEvent * nextLpEvent =
(struct HvLpEvent *)xItLpQueue.xSlicCurEventPtr; (struct HvLpEvent *)xItLpQueue.xSlicCurEventPtr;
...@@ -97,7 +97,7 @@ int ItLpQueue_isLpIntPending(void) ...@@ -97,7 +97,7 @@ int ItLpQueue_isLpIntPending(void)
return next_event->xFlags.xValid | xItLpQueue.xPlicOverflowIntPending; return next_event->xFlags.xValid | xItLpQueue.xPlicOverflowIntPending;
} }
void ItLpQueue_clearValid( struct HvLpEvent * event ) static void ItLpQueue_clearValid( struct HvLpEvent * event )
{ {
/* Clear the valid bit of the event /* Clear the valid bit of the event
* Also clear bits within this event that might * Also clear bits within this event that might
......
...@@ -76,10 +76,8 @@ struct ItLpQueue { ...@@ -76,10 +76,8 @@ struct ItLpQueue {
extern struct ItLpQueue xItLpQueue; extern struct ItLpQueue xItLpQueue;
extern struct HvLpEvent *ItLpQueue_getNextLpEvent(void);
extern int ItLpQueue_isLpIntPending(void); extern int ItLpQueue_isLpIntPending(void);
extern unsigned ItLpQueue_process(struct pt_regs *); extern unsigned ItLpQueue_process(struct pt_regs *);
extern void ItLpQueue_clearValid(struct HvLpEvent *);
extern void setup_hvlpevent_queue(void); extern void setup_hvlpevent_queue(void);
#endif /* _ITLPQUEUE_H */ #endif /* _ITLPQUEUE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment