From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Yinghai Lu <yinghai@kernel.org>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pci: Skip id checking if no id is passed
Date: Fri, 10 Dec 2010 13:06:56 -0800 [thread overview]
Message-ID: <20101210130656.6dc39b79@jbarnes-desktop> (raw)
In-Reply-To: <4CE436C0.5050802@kernel.org>
On Wed, 17 Nov 2010 12:10:40 -0800
Yinghai Lu <yinghai@kernel.org> wrote:
>
> Will get warning when pci stub driver is built-in kenel like:
> pci-stub: invalid id string ""
>
> So stop early if no id is passed.
>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
>
> ---
> drivers/pci/pci-stub.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> Index: linux-2.6/drivers/pci/pci-stub.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/pci-stub.c
> +++ linux-2.6/drivers/pci/pci-stub.c
> @@ -47,6 +47,10 @@ static int __init pci_stub_init(void)
> if (rc)
> return rc;
>
> + /* no ids passed actually */
> + if (ids[0] == '\0')
> + return 0;
> +
> /* add ids specified in the module parameter */
> p = ids;
> while ((id = strsep(&p, ","))) {
>
Applied to linux-next, thanks.
--
Jesse Barnes, Intel Open Source Technology Center
prev parent reply other threads:[~2010-12-10 21:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-17 20:10 [PATCH] pci: Skip id checking if no id is passed Yinghai Lu
2010-12-10 21:06 ` Jesse Barnes [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=20101210130656.6dc39b79@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yinghai@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox