PTI implicit declaration fix.
Subsystems (2)
PATCH 1/1 PTI implicit declaration fix.
From: J Freyensee <[email protected]>
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.
--- drivers/misc/pti.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/misc/pti.c +2 -0
@@ -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>
Signature · 1 line
1.7.0.4
Quoted 9 lines · On Fri, Jul 8, 2011 at 23:34, <[email protected]> wrote:
From: J Freyensee <[email protected]>
In a certain compile configuration, functions like 'kmalloc' and '
copy_from_user' were coming up as implicit errors. This patch addsslab.handuaccess.hto the driver.Reported-by Geert Uytterhoeven <[email protected]>
Please don't add "Acked-by" lines before people have ack'ed your patches.
Quoted 10 lines
Signed-off-by J Freyensee <[email protected]>---
drivers/misc/pti.c | 2 ++1 files changed, 2 insertions(+), 0 deletions(-)drivers/misc/pti.c +0
-0
drivers/misc/pti.c line 29
Quoted 8 lines
drivers/misc/pti.c +2
-0@@ -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>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 8 lines · Geert Uytterhoeven
Quoted 7 lines · On Fri, Jul 8, 2011 at 23:34,<[email protected]> wrote:
From: J Freyensee<[email protected]>
In a certain compile configuration, functions like 'kmalloc' and '
copy_from_user' were coming up as implicit errors. This patch addsslab.handuaccess.hto the driver.
Quoted 5 lines
Quoted 2 lines
Reported-by Geert Uytterhoeven<[email protected]>Please don't add "Acked-by" lines before people have ack'ed your patches.
Okay...so should I re-send this patch out without the Acked-by in it? Or is it okay this time and next time please do this?
Quoted 29 lines
Quoted 10 lines
Signed-off-by J Freyensee<[email protected]>--- drivers/misc/pti.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)drivers/misc/pti.c +0
-0drivers/misc/pti.c line 29
Quoted 8 lines
drivers/misc/pti.c +2
-0@@ -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> Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 10 lines · J Freyensee
Quoted 9 lines · Geert Uytterhoeven
Quoted 8 lines · On Fri, Jul 8, 2011 at 23:34,<[email protected]> wrote:
From: J Freyensee<[email protected]>
In a certain compile configuration, functions like 'kmalloc' and '
copy_from_user' were coming up as implicit errors. This patch addsslab.handuaccess.hto the driver.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Reported-by Geert Uytterhoeven<[email protected]>Please don't add "Acked-by" lines before people have ack'ed your patches.
Okay...so should I re-send this patch out without the Acked-by in it? Or is it okay this time and next time please do this?
It's OK for now. It's a trivial patch anyway.
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Signed-off-by J Freyensee<[email protected]>---
drivers/misc/pti.c | 2 ++1 files changed, 2 insertions(+), 0 deletions(-)drivers/misc/pti.c +0
-0@@ -22,6 +22,8 @@*/
Quoted 6 lines
Quoted 6 lines
drivers/misc/pti.c line 29
Quoted 6 lines
drivers/misc/pti.c +2
-0#include<linux/init.h> +#include <linux/slab.h> +#include <linux/uaccess.h> #include<linux/sched.h> #include<linux/interrupt.h> #include<linux/console.h>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds