From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaswinder Singh Rajput Subject: [PATCH] XEN: remove undefined functions Date: Tue, 25 Aug 2009 15:31:24 +0530 Message-ID: <1251194494.2399.22.camel@Fedora32.jaswinder> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge , Chris Wright , virtualization@lists.osdl.org, xen-devel@lists.xensource.com List-Id: virtualization@lists.linuxfoundation.org mk_pirq_info(), gsi_from_irq() and vector_from_irq() are static functions and no one is calling them. This fixed following compilation warnings : drivers/xen/events.c:134: warning: =E2=80=98mk_pirq_info=E2=80=99 defin= ed but not used drivers/xen/events.c:180: warning: =E2=80=98gsi_from_irq=E2=80=99 defin= ed but not used drivers/xen/events.c:190: warning: =E2=80=98vector_from_irq=E2=80=99 de= fined but not used Signed-off-by: Jaswinder Singh Rajput --- drivers/xen/events.c | 27 --------------------------- 1 files changed, 0 insertions(+), 27 deletions(-) diff --git a/drivers/xen/events.c b/drivers/xen/events.c index abad71b..d43957a 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -131,13 +131,6 @@ static struct irq_info mk_virq_info(unsigned short e= vtchn, unsigned short virq) .cpu =3D 0, .u.virq =3D virq }; } =20 -static struct irq_info mk_pirq_info(unsigned short evtchn, - unsigned short gsi, unsigned short vector) -{ - return (struct irq_info) { .type =3D IRQT_PIRQ, .evtchn =3D evtchn, - .cpu =3D 0, .u.pirq =3D { .gsi =3D gsi, .vector =3D vector } }; -} - /* * Accessors for packed IRQ information. */ @@ -177,26 +170,6 @@ static unsigned virq_from_irq(unsigned irq) return info->u.virq; } =20 -static unsigned gsi_from_irq(unsigned irq) -{ - struct irq_info *info =3D info_for_irq(irq); - - BUG_ON(info =3D=3D NULL); - BUG_ON(info->type !=3D IRQT_PIRQ); - - return info->u.pirq.gsi; -} - -static unsigned vector_from_irq(unsigned irq) -{ - struct irq_info *info =3D info_for_irq(irq); - - BUG_ON(info =3D=3D NULL); - BUG_ON(info->type !=3D IRQT_PIRQ); - - return info->u.pirq.vector; -} - static enum xen_irq_type type_from_irq(unsigned irq) { return info_for_irq(irq)->type; --=20 1.6.2.5