From: james_p_freyensee@linux•intel.com
To: linux-next@vger•kernel.org
Cc: linux-kernel@vger•kernel.org, randy.dunlap@oracle•com,
sfr@canb•auug.org.au, christophe.guerard@intel•com,
pranav.k.sanghadia@intel•com, geert@linux-m68k•org
Subject: [PATCH] PTI implicit declaration fix.
Date: Fri, 8 Jul 2011 14:34:11 -0700 [thread overview]
Message-ID: <1310160851-26415-1-git-send-email-james_p_freyensee@linux.intel.com> (raw)
In-Reply-To: <james_p_freyensee@linux.intel.com>
From: J Freyensee <james_p_freyensee@linux•intel.com>
In a certain compile configuration, functions like
'kmalloc' and 'copy_from_user' were coming up as
implicit errors. This patch adds slab.h and
uaccess.h to the driver.
Reported-by: Geert Uytterhoeven <geert@linux-m68k•org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k•org>
Signed-off-by: J Freyensee <james_p_freyensee@linux•intel.com>
---
drivers/misc/pti.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index 8653bd0..4ba4e5f 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -22,6 +22,8 @@
*/
#include <linux/init.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/console.h>
--
1.7.0.4
next reply other threads:[~2011-07-08 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-08 21:34 james_p_freyensee [this message]
2011-07-09 8:08 ` [PATCH] PTI implicit declaration fix Geert Uytterhoeven
2011-07-11 16:10 ` J Freyensee
2011-07-11 16:57 ` Geert Uytterhoeven
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=1310160851-26415-1-git-send-email-james_p_freyensee@linux.intel.com \
--to=james_p_freyensee@linux$(echo .)intel.com \
--cc=christophe.guerard@intel$(echo .)com \
--cc=geert@linux-m68k$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=pranav.k.sanghadia@intel$(echo .)com \
--cc=randy.dunlap@oracle$(echo .)com \
--cc=sfr@canb$(echo .)auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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