diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-10 11:08:05 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-10 14:48:35 -0500 |
commit | 76465b2dafb8ce471f115b6af80f7a67a1fda377 (patch) | |
tree | ec75ddd0ca1f4ab3c8288b842116777f84823159 /drivers/xen/events.c | |
parent | a0e181167ee4254988c8c89d26ffd8ef4cb7deb0 (diff) |
xen: events: remove unused public functions
I was unable to find any user of these functions in either the
functionality pending for 2.6.39 or the xen/next-2.6.32 branch of
xen.git
An exception to this was xen_gsi_from_irq which did appear to be used
in xen/next-2.6.32's pciback. However in the 2.6.39 version of pciback
xen_pirq_from_irq is, correctly AFAICT, used instead.
Only a minority of functions in events.h use "extern" so drop it from
those places for consistency.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/events.c')
-rw-r--r-- | drivers/xen/events.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index a9c154d1d2ff..d52defda53b1 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -222,16 +222,6 @@ static unsigned gsi_from_irq(unsigned irq) | |||
222 | return info->u.pirq.gsi; | 222 | return info->u.pirq.gsi; |
223 | } | 223 | } |
224 | 224 | ||
225 | static unsigned vector_from_irq(unsigned irq) | ||
226 | { | ||
227 | struct irq_info *info = info_for_irq(irq); | ||
228 | |||
229 | BUG_ON(info == NULL); | ||
230 | BUG_ON(info->type != IRQT_PIRQ); | ||
231 | |||
232 | return info->u.pirq.vector; | ||
233 | } | ||
234 | |||
235 | static enum xen_irq_type type_from_irq(unsigned irq) | 225 | static enum xen_irq_type type_from_irq(unsigned irq) |
236 | { | 226 | { |
237 | return info_for_irq(irq)->type; | 227 | return info_for_irq(irq)->type; |
@@ -716,16 +706,6 @@ out: | |||
716 | return rc; | 706 | return rc; |
717 | } | 707 | } |
718 | 708 | ||
719 | int xen_vector_from_irq(unsigned irq) | ||
720 | { | ||
721 | return vector_from_irq(irq); | ||
722 | } | ||
723 | |||
724 | int xen_gsi_from_irq(unsigned irq) | ||
725 | { | ||
726 | return gsi_from_irq(irq); | ||
727 | } | ||
728 | |||
729 | int xen_irq_from_pirq(unsigned pirq) | 709 | int xen_irq_from_pirq(unsigned pirq) |
730 | { | 710 | { |
731 | return pirq_to_irq[pirq]; | 711 | return pirq_to_irq[pirq]; |