diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-03 19:37:25 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-27 21:15:21 -0400 |
commit | 4ad41c1e2616a64c9e789d7069b1cb3402d2af3a (patch) | |
tree | c73a6f76a7eb2243ef1304bfaf2b545d8e31e75e /include/net | |
parent | 93b5097fe5b47d536b560fce14f4def3d1866121 (diff) | |
download | linux-4ad41c1e2616a64c9e789d7069b1cb3402d2af3a.tar.gz linux-4ad41c1e2616a64c9e789d7069b1cb3402d2af3a.tar.bz2 linux-4ad41c1e2616a64c9e789d7069b1cb3402d2af3a.zip |
bonding: quit messing with IOCTL
The only remaining users are issuing SIOCGMIIPHY and SIOCGMIIREG,
neither of which deals with userland pointers. Simply calling
->ndo_do_ioctl() is fine; no messing with set_fs() is needed.
It used to mess with SIOCETHTOOL, which would've needed set_fs(),
but that has been killed in "[NET] ethtool ops are the only way"
9 years ago...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bonding.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/net/bonding.h b/include/net/bonding.h index 6360c259da6d..f32f7ef8a23a 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -37,18 +37,6 @@ #ifndef __long_aligned #define __long_aligned __attribute__((aligned((sizeof(long))))) #endif -/* - * Less bad way to call ioctl from within the kernel; this needs to be - * done some other way to get the call out of interrupt context. - * Needs "ioctl" variable to be supplied by calling context. - */ -#define IOCTL(dev, arg, cmd) ({ \ - int res = 0; \ - mm_segment_t fs = get_fs(); \ - set_fs(get_ds()); \ - res = ioctl(dev, arg, cmd); \ - set_fs(fs); \ - res; }) #define BOND_MODE(bond) ((bond)->params.mode) |