include/asm-x86/posix_types_64.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
2c5d516ca7
commit
4943aa4ec2
@ -46,7 +46,7 @@ typedef unsigned long __kernel_old_dev_t;
|
|||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
#undef __FD_SET
|
#undef __FD_SET
|
||||||
static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp)
|
static inline void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp)
|
||||||
{
|
{
|
||||||
unsigned long _tmp = fd / __NFDBITS;
|
unsigned long _tmp = fd / __NFDBITS;
|
||||||
unsigned long _rem = fd % __NFDBITS;
|
unsigned long _rem = fd % __NFDBITS;
|
||||||
@ -54,7 +54,7 @@ static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#undef __FD_CLR
|
#undef __FD_CLR
|
||||||
static __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp)
|
static inline void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp)
|
||||||
{
|
{
|
||||||
unsigned long _tmp = fd / __NFDBITS;
|
unsigned long _tmp = fd / __NFDBITS;
|
||||||
unsigned long _rem = fd % __NFDBITS;
|
unsigned long _rem = fd % __NFDBITS;
|
||||||
@ -62,7 +62,7 @@ static __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#undef __FD_ISSET
|
#undef __FD_ISSET
|
||||||
static __inline__ int __FD_ISSET(unsigned long fd, __const__ __kernel_fd_set *p)
|
static inline int __FD_ISSET(unsigned long fd, __const__ __kernel_fd_set *p)
|
||||||
{
|
{
|
||||||
unsigned long _tmp = fd / __NFDBITS;
|
unsigned long _tmp = fd / __NFDBITS;
|
||||||
unsigned long _rem = fd % __NFDBITS;
|
unsigned long _rem = fd % __NFDBITS;
|
||||||
@ -74,36 +74,36 @@ static __inline__ int __FD_ISSET(unsigned long fd, __const__ __kernel_fd_set *p)
|
|||||||
* for 256 and 1024-bit fd_sets respectively)
|
* for 256 and 1024-bit fd_sets respectively)
|
||||||
*/
|
*/
|
||||||
#undef __FD_ZERO
|
#undef __FD_ZERO
|
||||||
static __inline__ void __FD_ZERO(__kernel_fd_set *p)
|
static inline void __FD_ZERO(__kernel_fd_set *p)
|
||||||
{
|
{
|
||||||
unsigned long *tmp = p->fds_bits;
|
unsigned long *tmp = p->fds_bits;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (__builtin_constant_p(__FDSET_LONGS)) {
|
if (__builtin_constant_p(__FDSET_LONGS)) {
|
||||||
switch (__FDSET_LONGS) {
|
switch (__FDSET_LONGS) {
|
||||||
case 32:
|
case 32:
|
||||||
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
||||||
tmp[ 4] = 0; tmp[ 5] = 0; tmp[ 6] = 0; tmp[ 7] = 0;
|
tmp[ 4] = 0; tmp[ 5] = 0; tmp[ 6] = 0; tmp[ 7] = 0;
|
||||||
tmp[ 8] = 0; tmp[ 9] = 0; tmp[10] = 0; tmp[11] = 0;
|
tmp[ 8] = 0; tmp[ 9] = 0; tmp[10] = 0; tmp[11] = 0;
|
||||||
tmp[12] = 0; tmp[13] = 0; tmp[14] = 0; tmp[15] = 0;
|
tmp[12] = 0; tmp[13] = 0; tmp[14] = 0; tmp[15] = 0;
|
||||||
tmp[16] = 0; tmp[17] = 0; tmp[18] = 0; tmp[19] = 0;
|
tmp[16] = 0; tmp[17] = 0; tmp[18] = 0; tmp[19] = 0;
|
||||||
tmp[20] = 0; tmp[21] = 0; tmp[22] = 0; tmp[23] = 0;
|
tmp[20] = 0; tmp[21] = 0; tmp[22] = 0; tmp[23] = 0;
|
||||||
tmp[24] = 0; tmp[25] = 0; tmp[26] = 0; tmp[27] = 0;
|
tmp[24] = 0; tmp[25] = 0; tmp[26] = 0; tmp[27] = 0;
|
||||||
tmp[28] = 0; tmp[29] = 0; tmp[30] = 0; tmp[31] = 0;
|
tmp[28] = 0; tmp[29] = 0; tmp[30] = 0; tmp[31] = 0;
|
||||||
return;
|
return;
|
||||||
case 16:
|
case 16:
|
||||||
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
||||||
tmp[ 4] = 0; tmp[ 5] = 0; tmp[ 6] = 0; tmp[ 7] = 0;
|
tmp[ 4] = 0; tmp[ 5] = 0; tmp[ 6] = 0; tmp[ 7] = 0;
|
||||||
tmp[ 8] = 0; tmp[ 9] = 0; tmp[10] = 0; tmp[11] = 0;
|
tmp[ 8] = 0; tmp[ 9] = 0; tmp[10] = 0; tmp[11] = 0;
|
||||||
tmp[12] = 0; tmp[13] = 0; tmp[14] = 0; tmp[15] = 0;
|
tmp[12] = 0; tmp[13] = 0; tmp[14] = 0; tmp[15] = 0;
|
||||||
return;
|
return;
|
||||||
case 8:
|
case 8:
|
||||||
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
||||||
tmp[ 4] = 0; tmp[ 5] = 0; tmp[ 6] = 0; tmp[ 7] = 0;
|
tmp[ 4] = 0; tmp[ 5] = 0; tmp[ 6] = 0; tmp[ 7] = 0;
|
||||||
return;
|
return;
|
||||||
case 4:
|
case 4:
|
||||||
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
tmp[ 0] = 0; tmp[ 1] = 0; tmp[ 2] = 0; tmp[ 3] = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = __FDSET_LONGS;
|
i = __FDSET_LONGS;
|
||||||
|
Loading…
Reference in New Issue
Block a user