Skip to contentSkip to conversation

of: include errno.h

PATCH In review Kalle Valo 3 participants 3 messages Oct 6, 2011 – Oct 29, 2011 Device tree

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

PATCH 1/1 of: include errno.h

When compiling ath6kl for beagleboard (omap2plus_defconfig plus CONFIG_ATH6KL, CONFIG_OF disable) with current linux-next compilation fails:

include/linux/of.h:269: error: 'ENOSYS' undeclared (first use in this function) include/linux/of.h:276: error: 'ENOSYS' undeclared (first use in this function) include/linux/of.h:289: error: 'ENOSYS' undeclared (first use in this function)

Fix this by including errno.h from of.h.

---
 include/linux/of.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/of.h +1 -0
index 9180dc5..219c29d 100644
@@ -17,6 +17,7 @@
  */
 #include <linux/types.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/kref.h>
 #include <linux/mod_devicetable.h>
 #include <linux/spinlock.h>

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Kalle Valo

When compiling ath6kl for beagleboard (omap2plus_defconfig plus CONFIG_ATH6KL, CONFIG_OF disable) with current linux-next compilation fails:

include/linux/of.h:269: error: 'ENOSYS' undeclared (first use in this function) include/linux/of.h:276: error: 'ENOSYS' undeclared (first use in this function) include/linux/of.h:289: error: 'ENOSYS' undeclared (first use in this function)

And now this build failure (also on m68k) has hit Linus' tree, more than 3 weeks after
its detection in -next...

Quoted 3 lines

Fix this by including errno.h from of.h.

Quoted 9 lines

---
 include/linux/of.h |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/of.h +0 -0
index 9180dc5..219c29d 100644

include/linux/of.h line 23

Quoted 7 lines
include/linux/of.h +1 -0
@@ -17,6 +17,7 @@
  */
  #include <linux/types.h>
  #include <linux/bitops.h>
+#include <linux/errno.h>
  #include <linux/kref.h>
  #include <linux/mod_devicetable.h>
  #include <linux/spinlock.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 13 lines · Geert Uytterhoeven
Quoted 7 lines · Kalle Valo

When compiling ath6kl for beagleboard (omap2plus_defconfig plus CONFIG_ATH6KL, CONFIG_OF disable) with current linux-next compilation fails:

include/linux/of.h:269: error: 'ENOSYS' undeclared (first use in this function) include/linux/of.h:276: error: 'ENOSYS' undeclared (first use in this function) include/linux/of.h:289: error: 'ENOSYS' undeclared (first use in this function)

And now this build failure (also on m68k) has hit Linus' tree, more than 3 weeks after
its detection in -next...

Quoted 5 lines
Quoted 3 lines

Fix this by including errno.h from of.h.

Appied, thanks, and I'll push out to Linus as soon as the test build finishes.

g.

Quoted 28 lines
Quoted 10 lines

---
 include/linux/of.h |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/of.h +0 -0
index 9180dc5..219c29d 100644

include/linux/of.h line 23

Quoted 7 lines
include/linux/of.h +1 -0
@@ -17,6 +17,7 @@
  */
  #include <linux/types.h>
  #include <linux/bitops.h>
+#include <linux/errno.h>
  #include <linux/kref.h>
  #include <linux/mod_devicetable.h>
  #include <linux/spinlock.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