aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r--fs/compat_ioctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 7c031f00fd79..d2c38875ab29 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -1522,8 +1522,7 @@ static struct {
1522 { ATM_QUERYLOOP32, ATM_QUERYLOOP } 1522 { ATM_QUERYLOOP32, ATM_QUERYLOOP }
1523}; 1523};
1524 1524
1525#define NR_ATM_IOCTL (sizeof(atm_ioctl_map)/sizeof(atm_ioctl_map[0])) 1525#define NR_ATM_IOCTL ARRAY_SIZE(atm_ioctl_map)
1526
1527 1526
1528static 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)
1529{ 1528{
@@ -1824,7 +1823,7 @@ static struct {
1824 { FDWERRORGET32, FDWERRORGET } 1823 { FDWERRORGET32, FDWERRORGET }
1825}; 1824};
1826 1825
1827#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)
1828 1827
1829static 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)
1830{ 1829{