From: Grant Likely <grant.likely@secretlab.ca>
To: Tomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
Cc: linux-kernel@vger.kernel.org, qi.wang@intel.com,
yong.y.wang@intel.com, joel.clark@intel.com,
kok.howg.ewe@intel.com, Dan Carpenter <dan.carpenter@oracle.com>,
David Rientjes <rientjes@google.com>
Subject: Re: [PATCH 2/2] gpio-ml-ioh: Use NUMA_NO_NODE not GFP_KERNEL
Date: Wed, 19 Oct 2011 19:01:57 -0600 [thread overview]
Message-ID: <20111020010157.GB2153@ponder.secretlab.ca> (raw)
In-Reply-To: <1318988260-19462-2-git-send-email-tomoya-linux@dsn.lapis-semi.com>
On Wed, Oct 19, 2011 at 10:37:40AM +0900, Tomoya MORINAGA wrote:
> Currently, GFP_KERNEL is used as parameter of irq_alloc_descs like below.
>
> irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j],
> GFP_KERNEL);
>
> This is not true.
> So, this patch uses NUMA_NO_NODE not GFP_KERNEL.
Applied both, thanks.
g.
>
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Reported-by: David Rientjes <rientjes@google.com>
> Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
> ---
> drivers/gpio/gpio-ml-ioh.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c
> index 88d65be..1b59003 100644
> --- a/drivers/gpio/gpio-ml-ioh.c
> +++ b/drivers/gpio/gpio-ml-ioh.c
> @@ -429,7 +429,7 @@ static int __devinit ioh_gpio_probe(struct pci_dev *pdev,
> chip = chip_save;
> for (j = 0; j < 8; j++, chip++) {
> irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j],
> - GFP_KERNEL);
> + NUMA_NO_NODE);
> if (irq_base < 0) {
> dev_warn(&pdev->dev,
> "ml_ioh_gpio: Failed to get IRQ base num\n");
> --
> 1.7.4.4
>
next prev parent reply other threads:[~2011-10-20 1:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-19 1:37 [PATCH 1/2] gpio-pch: " Tomoya MORINAGA
2011-10-19 1:37 ` [PATCH 2/2] gpio-ml-ioh: " Tomoya MORINAGA
2011-10-19 2:00 ` David Rientjes
2011-10-20 1:01 ` Grant Likely [this message]
2011-10-19 1:59 ` [PATCH 1/2] gpio-pch: " David Rientjes
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=20111020010157.GB2153@ponder.secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=dan.carpenter@oracle.com \
--cc=joel.clark@intel.com \
--cc=kok.howg.ewe@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=qi.wang@intel.com \
--cc=rientjes@google.com \
--cc=tomoya-linux@dsn.lapis-semi.com \
--cc=yong.y.wang@intel.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
all inboxes | Powered by JetHome®