Skip to contentSkip to conversation

PTI implicit declaration fix.

PATCH In review [email protected] 2 participants 4 messages Jul 8, 2011 – Jul 11, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 8653bd0..4ba4e5f 100644
@@ -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
#1 lore raw
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 adds slab.h and uaccess.h to the driver.

Please don't add "Acked-by" lines before people have ack'ed your patches.

Quoted 10 lines

---
 drivers/misc/pti.c |    2 ++

 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/misc/pti.c +0 -0
index 8653bd0..4ba4e5f 100644

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

#2 lore raw
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 adds slab.h and uaccess.h to the driver.

Quoted 5 lines
Quoted 2 lines

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
---
  drivers/misc/pti.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
drivers/misc/pti.c +0 -0
index 8653bd0..4ba4e5f 100644

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

#3 lore raw
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 adds slab.h and uaccess.h to the driver.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

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

---
 drivers/misc/pti.c |    2 ++

 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/misc/pti.c +0 -0
index 8653bd0..4ba4e5f 100644
@@ -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