From: Randy Dunlap <randy.dunlap@oracle.com>
To: Maarten Bressers <mbres@gentoo.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix compiler warnings for 2.6.23-rc8 on x86_64
Date: Fri, 28 Sep 2007 14:48:53 -0700 [thread overview]
Message-ID: <20070928144853.01d4f247.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20070928205630.38562652FE@smtp.gentoo.org>
On Fri, 28 Sep 2007 20:56:30 +0000 (UTC) Maarten Bressers wrote:
> This (trivial) patch fixes two compiler warnings for 2.6.23-rc8 on x86_64,
> use of deprecated function pci_find_device() and a section mismatch.
> Build log and .config file included.
>
> Signed-off by: Maarten Bressers <mbres@gentoo.org>
Please include the text from section mismatch warnings in the patch
description.
> diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c
> index 32f5078..7c872df 100644
> --- a/arch/x86_64/kernel/smpboot.c
> +++ b/arch/x86_64/kernel/smpboot.c
> @@ -532,7 +532,7 @@ struct create_idle {
> int cpu;
> };
>
> -void do_fork_idle(struct work_struct *work)
> +static void __cpuinit do_fork_idle(struct work_struct *work)
> {
> struct create_idle *c_idle =
> container_of(work, struct create_idle, work);
> diff --git a/drivers/pci/search.c b/drivers/pci/search.c
> index c6e79d0..0eb7e9e 100644
> --- a/drivers/pci/search.c
> +++ b/drivers/pci/search.c
> @@ -96,7 +96,7 @@ pci_find_slot(unsigned int bus, unsigned int devfn)
> {
> struct pci_dev *dev = NULL;
>
> - while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
> + while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
> if (dev->bus->number == bus && dev->devfn == devfn)
> return dev;
> }
> @@ -434,8 +434,6 @@ int pci_dev_present(const struct pci_device_id *ids)
> EXPORT_SYMBOL(pci_dev_present);
> EXPORT_SYMBOL(pci_find_present);
>
> -EXPORT_SYMBOL(pci_find_device);
> -EXPORT_SYMBOL(pci_find_slot);
There are still about 30 and 14 respetively users of pci_find_devic()
and pci_find_slot() in 2.6.23-rc8. Will you be fixing them?
> /* For boot time work */
> EXPORT_SYMBOL(pci_find_bus);
> EXPORT_SYMBOL(pci_find_next_bus);
---
~Randy
Phaedrus says that Quality is about caring.
next prev parent reply other threads:[~2007-09-28 21:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 20:56 [PATCH] Fix compiler warnings for 2.6.23-rc8 on x86_64 Maarten Bressers
2007-09-28 21:48 ` Randy Dunlap [this message]
2007-09-28 22:49 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2007-09-28 23:02 Maarten Bressers
2007-09-29 0:04 Maarten Bressers
2007-09-29 2:43 ` Greg KH
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=20070928144853.01d4f247.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbres@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox