X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fcompat_ioctl.c;h=c666769a875d2fc0e80927caf6db038b036bc42b;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=d2c38875ab296e45741c5dcf966da56ec51d8f96;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index d2c38875a..c666769a8 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -72,7 +72,6 @@ #include #include #include -#include #include /* siocdevprivate_ioctl */ #include @@ -1522,7 +1521,8 @@ static struct { { ATM_QUERYLOOP32, ATM_QUERYLOOP } }; -#define NR_ATM_IOCTL ARRAY_SIZE(atm_ioctl_map) +#define NR_ATM_IOCTL (sizeof(atm_ioctl_map)/sizeof(atm_ioctl_map[0])) + static int do_atm_iobuf(unsigned int fd, unsigned int cmd, unsigned long arg) { @@ -1823,7 +1823,7 @@ static struct { { FDWERRORGET32, FDWERRORGET } }; -#define NR_FD_IOCTL_TRANS ARRAY_SIZE(fd_ioctl_trans_table) +#define NR_FD_IOCTL_TRANS (sizeof(fd_ioctl_trans_table)/sizeof(fd_ioctl_trans_table[0])) static int fd_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) {