[lkml]   [2007]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] [2.6.24] Add PPC nvram ioctls to compat_ioctl
Fix the following console warning when running 'nvsetenv', and makes
setting of new variables work again:

ioctl32(nvsetenv:4022): Unknown cmd fd(3) cmd(20007043){t:'p';sz:0}
arg(00000003) on /dev/nvram

That's the IOC_NVRAM_SYNC call.

Signed-off-by: Olof Johansson <>

diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index e8b7c3a..7be6765 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -113,6 +113,10 @@
#include <asm/fbio.h>

+#ifdef CONFIG_PPC
+#include <asm/nvram.h>
static int do_ioctl32_pointer(unsigned int fd, unsigned int cmd,
unsigned long arg, struct file *f)
@@ -2859,6 +2863,13 @@ IGNORE_IOCTL(FBIOGETCMAP32)
+#ifdef CONFIG_PPC
+/* PPC-specific NVRAM IOCTLs */

#define IOCTL_HASHSIZE 256

 \ /
  Last update: 2007-12-31 23:41    [W:0.022 / U:2.580 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site