From: Jiri Slaby <jirislaby@gmail.com>
To: Jiri Slaby <xslaby@fi.muni.cz>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] pci_find_device --> pci_get_device [only marks deprecation]
Date: Thu, 28 Jul 2005 01:53:21 +0200 [thread overview]
Message-ID: <4af2d03a050727165319181a40@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0507280135020.27145@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]
On 7/28/05, Jiri Slaby <xslaby@fi.muni.cz> wrote:
> On 7/19/05, Rolf Eike Beer <eike-kernel@sf-tec.de> wrote:
> > Jiri Slaby wrote:
> > >* Marks the function as deprecated in pci.h
> [it is meant pci_find_device]
> >
> > This is a very good idea in my eyes.
>
> 2.6.13-rc3-mm2
>
> Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
>
> diff --git a/include/linux/pci.h b/include/linux/pci.h
> --- a/include/linux/pci.h
> +++ b/include/linux/pci.h
> @@ -754,7 +754,7 @@ void pci_setup_cardbus(struct pci_bus *b
>
> /* Generic PCI functions exported to card drivers */
>
> -struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from);
> +struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from) __deprecated;
> struct pci_dev *pci_find_device_reverse (unsigned int vendor, unsigned int device, const struct pci_dev *from);
> struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
> int pci_find_capability (struct pci_dev *dev, int cap);
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
There are some additional spaces in the text patch, so repost with an
attachement.
[-- Attachment #2: lnx-pci_find-depr-6.13r3m2.patch --]
[-- Type: application/octet-stream, Size: 690 bytes --]
diff --git a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -754,7 +754,7 @@ void pci_setup_cardbus(struct pci_bus *b
/* Generic PCI functions exported to card drivers */
-struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from);
+struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from) __deprecated;
struct pci_dev *pci_find_device_reverse (unsigned int vendor, unsigned int device, const struct pci_dev *from);
struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
int pci_find_capability (struct pci_dev *dev, int cap);
prev parent reply other threads:[~2005-07-27 23:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-27 23:41 [PATCH] pci_find_device --> pci_get_device [only marks deprecation] Jiri Slaby
2005-07-27 23:53 ` Jiri Slaby [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=4af2d03a050727165319181a40@mail.gmail.com \
--to=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=xslaby@fi.muni.cz \
/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