From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: James Bottomley <jbottomley@parallels.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: pci: fix ats compile failure
Date: Sat, 3 Dec 2011 13:36:10 +0000 [thread overview]
Message-ID: <20111203133610.48610122@jbarnes-x220> (raw)
In-Reply-To: <1322594422.11875.47.camel@dabdike.int.hansenpartnership.com>
On Tue, 29 Nov 2011 19:20:23 +0000
James Bottomley <jbottomley@parallels.com> wrote:
> I get this compile failure on parisc:
>
> drivers/pci/ats.c: In function 'ats_alloc_one':
> drivers/pci/ats.c:29: error: implicit declaration of function
> 'kzalloc' drivers/pci/ats.c:29: warning: assignment makes pointer
> from integer without a cast drivers/pci/ats.c: In function
> 'ats_free_one': drivers/pci/ats.c:45: error: implicit declaration of
> function 'kfree'
>
> Because ats.c is missing linux/slab.h as an include. This patch
> fixes it
>
> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
>
> ---
>
> diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c
> index 7ec56fb..b0dd08e 100644
> --- a/drivers/pci/ats.c
> +++ b/drivers/pci/ats.c
> @@ -13,6 +13,7 @@
> #include <linux/export.h>
> #include <linux/pci-ats.h>
> #include <linux/pci.h>
> +#include <linux/slab.h>
>
> #include "pci.h"
Thanks James, I'll queue it up.
Jesse
next prev parent reply other threads:[~2011-12-03 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 19:20 pci: fix ats compile failure James Bottomley
2011-12-03 13:36 ` Jesse Barnes [this message]
2011-12-05 18:31 ` Jesse Barnes
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=20111203133610.48610122@jbarnes-x220 \
--to=jbarnes@virtuousgeek.org \
--cc=jbottomley@parallels.com \
--cc=joerg.roedel@amd.com \
--cc=linux-pci@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox