diff options
| author | H. Peter Anvin <[email protected]> | 2012-02-08 05:09:05 +0000 |
|---|---|---|
| committer | H. Peter Anvin <[email protected]> | 2012-02-14 20:47:21 +0000 |
| commit | 8b3d1cda4f5ff0d7c2ae910ea8fd03493996912f (patch) | |
| tree | c03be096f3e8b3205e749277d7274ec5ea95fae7 /security/selinux/hooks.c | |
| parent | xtensa: Use generic posix_types.h (diff) | |
| download | kernel-8b3d1cda4f5ff0d7c2ae910ea8fd03493996912f.tar.gz kernel-8b3d1cda4f5ff0d7c2ae910ea8fd03493996912f.zip | |
posix_types: Remove fd_set macros
<asm/posix_types.h> includes a set of macros that operate on file
descriptors. Way long ago those were exported to user space, but
nowadays they are #ifdef __KERNEL__.
However, they are nothing but standard (nonatomic) bit operations, and
we already have optimized versions of bit operations in the kernel.
We can't include <linux/bitops.h> in <asm/posix_types.h> but we can
move the definitions to <linux/time.h> and define them there in terms
of standard kernel bitops.
[ v2: folds the following fixes in:
a) Stray space in __FD_SET(), reported by Andrew Morton
b) #include <linux/string.h> needed for memset(), reported by Tony Luck ]
Signed-off-by: H. Peter Anvin <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Arnd Bergmann <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Andrew Morton <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
