From: David Miller <davem@davemloft.net>
To: sparclinux@vger.kernel.org
Subject: Re: virt_irq_{alloc,free} inconsistency with no MSI
Date: Mon, 19 Feb 2007 08:31:48 +0000 [thread overview]
Message-ID: <20070219.003148.63109019.davem@davemloft.net> (raw)
In-Reply-To: <Pine.SOC.4.64.0702161227260.3144@math>
From: Meelis Roos <mroos@linux.ee>
Date: Fri, 16 Feb 2007 12:30:56 +0200 (EET)
> While investigating this (with current -git for sun4u and no
> CONFIG_PCI_MSI)
>
> CC arch/sparc64/kernel/irq.o
> cc1: warnings being treated as errors
> arch/sparc64/kernel/irq.c:113: warning: 'virt_irq_free' defined but not used
>
> I found that virt_irq_free() is used only if CONFIG_PCI_MSI is defined
> (for sun4v - simple to cure with a define), but virt_irq_alloc() is used
> even without MSI enabled. Is this really correct? Do we alloc and not
> free it in this case?
Yes, it is true :-) We allocate all the interrupts needed for the
entire system as we probe the busses and devices.
But with MSI, the MSI vectors are allocated and liberated with
pci_enable_msi()/pci_disable_msi() and related calls.
I'll add the necessary ifdefs, thanks for the report.
prev parent reply other threads:[~2007-02-19 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 10:30 virt_irq_{alloc,free} inconsistency with no MSI Meelis Roos
2007-02-19 8:31 ` David Miller [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=20070219.003148.63109019.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=sparclinux@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.