Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ian Campbell and committed by
Konrad Rzeszutek Wilk
76465b2d a0e18116

+3 -29
-20
drivers/xen/events.c
··· 222 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 225 static enum xen_irq_type type_from_irq(unsigned irq) 236 226 { 237 227 return info_for_irq(irq)->type; ··· 704 714 out: 705 715 spin_unlock(&irq_mapping_update_lock); 706 716 return rc; 707 - } 708 - 709 - int xen_vector_from_irq(unsigned irq) 710 - { 711 - return vector_from_irq(irq); 712 - } 713 - 714 - int xen_gsi_from_irq(unsigned irq) 715 - { 716 - return gsi_from_irq(irq); 717 717 } 718 718 719 719 int xen_irq_from_pirq(unsigned pirq)
+3 -9
include/xen/events.h
··· 41 41 (void)HYPERVISOR_event_channel_op(EVTCHNOP_send, &send); 42 42 } 43 43 44 - extern void notify_remote_via_irq(int irq); 44 + void notify_remote_via_irq(int irq); 45 45 46 - extern void xen_irq_resume(void); 46 + void xen_irq_resume(void); 47 47 48 48 /* Clear an irq's pending state, in preparation for polling on it */ 49 49 void xen_clear_irq_pending(int irq); ··· 62 62 unsigned irq_from_evtchn(unsigned int evtchn); 63 63 64 64 /* Xen HVM evtchn vector callback */ 65 - extern void xen_hvm_callback_vector(void); 65 + void xen_hvm_callback_vector(void); 66 66 extern int xen_have_vector_callback; 67 67 int xen_set_callback_via(uint64_t via); 68 68 void xen_evtchn_do_upcall(struct pt_regs *regs); ··· 80 80 81 81 /* De-allocates the above mentioned physical interrupt. */ 82 82 int xen_destroy_irq(int irq); 83 - 84 - /* Return vector allocated to pirq */ 85 - int xen_vector_from_irq(unsigned pirq); 86 - 87 - /* Return gsi allocated to pirq */ 88 - int xen_gsi_from_irq(unsigned pirq); 89 83 90 84 /* Return irq from pirq */ 91 85 int xen_irq_from_pirq(unsigned pirq);