From: Michael Cree <mcree@orcon.net.nz>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Michael Cree <mcree@orcon.net.nz>,
linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org,
Matt Turner <mattst88@gmail.com>, Tejun Heo <tj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Bob Tracy <rct@gherkin.frus.com>,
Pekka Enberg <penberg@kernel.org>,
David Woodhouse <David.Woodhouse@intel.com>
Subject: [PATCH] i2c-i801: Add missing <linux/slab.h> include.
Date: Mon, 10 Jan 2011 17:44:35 +1300 [thread overview]
Message-ID: <1294634675-29557-1-git-send-email-mcree@orcon.net.nz> (raw)
In-Reply-To: <20110104141151.b6035bf3.randy.dunlap@oracle.com>
Causes compile error on Alpha, but not on x86 because its version
of <asm/pci.h> includes <linux/slab.h>. In any case, it's a bug
in the driver.
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
---
Since no one else has submitted the patch here it goes. Shall I send it
directly to Linus (since I plan to send some Alpha specific patches very
soon) or will the subsytem maintainers pick it up?
drivers/i2c/busses/i2c-i801.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index 02835ce..7979aef 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -72,6 +72,7 @@
#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/dmi.h>
+#include <linux/slab.h>
/* I801 SMBus address offsets */
#define SMBHSTSTS(p) (0 + (p)->smba)
--
1.7.2.3
next prev parent reply other threads:[~2011-01-10 4:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 6:18 [BUG] implicit declaration of kfree/kzalloc in i2c-i801.c on Alpha Bob Tracy
2011-01-04 7:15 ` Pekka Enberg
2011-01-04 19:37 ` Matt Turner
2011-01-04 20:56 ` Pekka Enberg
2011-01-04 22:11 ` Randy Dunlap
2011-01-10 4:44 ` Michael Cree [this message]
2011-01-10 6:46 ` [PATCH] i2c-i801: Add missing <linux/slab.h> include Pekka Enberg
2011-01-10 14:03 ` Bob Tracy
2011-01-04 22:04 ` [BUG] implicit declaration of kfree/kzalloc in i2c-i801.c on Alpha Bob Tracy
2011-01-04 21:10 ` Maciej Rutecki
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=1294634675-29557-1-git-send-email-mcree@orcon.net.nz \
--to=mcree@orcon.net.nz \
--cc=David.Woodhouse@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=penberg@kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=rct@gherkin.frus.com \
--cc=tj@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
all inboxes | Powered by JetHome®