aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-03-30 22:35:56 -0500
committerSteve French <sfrench@us.ibm.com>2006-03-30 22:35:56 -0500
commitd62e54abca1146981fc9f98f85ff398a113a22c2 (patch)
tree870420dbc4c65e716dcef8a802aafdc0ef97a8b4 /fs/compat_ioctl.c
parentfd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (diff)
parentce362c009250340358a7221f3cdb7954cbf19c01 (diff)
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r--fs/compat_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index c666769a875d..d2c38875ab29 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -72,6 +72,7 @@
72#include <linux/i2c-dev.h> 72#include <linux/i2c-dev.h>
73#include <linux/wireless.h> 73#include <linux/wireless.h>
74#include <linux/atalk.h> 74#include <linux/atalk.h>
75#include <linux/blktrace_api.h>
75 76
76#include <net/sock.h> /* siocdevprivate_ioctl */ 77#include <net/sock.h> /* siocdevprivate_ioctl */
77#include <net/bluetooth/bluetooth.h> 78#include <net/bluetooth/bluetooth.h>
@@ -1521,8 +1522,7 @@ static struct {
1521 { ATM_QUERYLOOP32, ATM_QUERYLOOP } 1522 { ATM_QUERYLOOP32, ATM_QUERYLOOP }
1522}; 1523};
1523 1524
1524#define NR_ATM_IOCTL (sizeof(atm_ioctl_map)/sizeof(atm_ioctl_map[0])) 1525#define NR_ATM_IOCTL ARRAY_SIZE(atm_ioctl_map)
1525
1526 1526
1527static int do_atm_iobuf(unsigned int fd, unsigned int cmd, unsigned long arg) 1527static int do_atm_iobuf(unsigned int fd, unsigned int cmd, unsigned long arg)
1528{ 1528{
@@ -1823,7 +1823,7 @@ static struct {
1823 { FDWERRORGET32, FDWERRORGET } 1823 { FDWERRORGET32, FDWERRORGET }
1824}; 1824};
1825 1825
1826#define NR_FD_IOCTL_TRANS (sizeof(fd_ioctl_trans_table)/sizeof(fd_ioctl_trans_table[0])) 1826#define NR_FD_IOCTL_TRANS ARRAY_SIZE(fd_ioctl_trans_table)
1827 1827
1828static int fd_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) 1828static int fd_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg)
1829{ 1829{