lkml.org 
[lkml]   [2009]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] fs: fix compat_ioctl build for CONFIG_BLOCK=n
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build failure when CONFIG_BLOCK=n:

fs/compat_ioctl.c:1604: error: 'SG_SET_TRANSFORM' undeclared

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
fs/compat_ioctl.c | 2 ++
1 file changed, 2 insertions(+)

--- linux-next-20091214.orig/fs/compat_ioctl.c
+++ linux-next-20091214/fs/compat_ioctl.c
@@ -1600,8 +1600,10 @@ static long do_ioctl_trans(int fd, unsig
case KDSKBMETA:
case KDSKBLED:
case KDSETLED:
+#ifdef CONFIG_BLOCK
/* SG stuff */
case SG_SET_TRANSFORM:
+#endif
/* AUTOFS */
case AUTOFS_IOC_READY:
case AUTOFS_IOC_FAIL:

\
 
 \ /
  Last update: 2009-12-14 18:13    [W:0.087 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site