From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Chris Wright <chrisw@sous-sol.org>,
virtualization@lists.osdl.org, xen-devel@lists.xensource.com,
Jeremy Fitzhardinge <jeremy@xensource.com>
Subject: Re: [PATCH] XEN: remove undefined functions
Date: Tue, 25 Aug 2009 09:32:10 -0700 [thread overview]
Message-ID: <4A94120A.1020301@goop.org> (raw)
In-Reply-To: <1251194494.2399.22.camel@Fedora32.jaswinder>
On 08/25/09 03:01, Jaswinder Singh Rajput wrote:
> 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: ‘mk_pirq_info’ defined but not used
> drivers/xen/events.c:180: warning: ‘gsi_from_irq’ defined but not used
> drivers/xen/events.c:190: warning: ‘vector_from_irq’ defined but not used
>
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
>
Hm, they're all about to become used.
J
> ---
> 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 evtchn, unsigned short virq)
> .cpu = 0, .u.virq = virq };
> }
>
> -static struct irq_info mk_pirq_info(unsigned short evtchn,
> - unsigned short gsi, unsigned short vector)
> -{
> - return (struct irq_info) { .type = IRQT_PIRQ, .evtchn = evtchn,
> - .cpu = 0, .u.pirq = { .gsi = gsi, .vector = vector } };
> -}
> -
> /*
> * Accessors for packed IRQ information.
> */
> @@ -177,26 +170,6 @@ static unsigned virq_from_irq(unsigned irq)
> return info->u.virq;
> }
>
> -static unsigned gsi_from_irq(unsigned irq)
> -{
> - struct irq_info *info = info_for_irq(irq);
> -
> - BUG_ON(info == NULL);
> - BUG_ON(info->type != IRQT_PIRQ);
> -
> - return info->u.pirq.gsi;
> -}
> -
> -static unsigned vector_from_irq(unsigned irq)
> -{
> - struct irq_info *info = info_for_irq(irq);
> -
> - BUG_ON(info == NULL);
> - BUG_ON(info->type != IRQT_PIRQ);
> -
> - return info->u.pirq.vector;
> -}
> -
> static enum xen_irq_type type_from_irq(unsigned irq)
> {
> return info_for_irq(irq)->type;
>
prev parent reply other threads:[~2009-08-25 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 10:01 [PATCH] XEN: remove undefined functions Jaswinder Singh Rajput
2009-08-25 16:32 ` Jeremy Fitzhardinge [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A94120A.1020301@goop.org \
--to=jeremy@goop.org \
--cc=chrisw@sous-sol.org \
--cc=jaswinder@kernel.org \
--cc=jeremy@xensource.com \
--cc=virtualization@lists.osdl.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).