Skip to content

Commit

Permalink
[NET] RXRPC: Fix whitespace errors.
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
yoshfuji authored and David S. Miller committed Feb 11, 2007
1 parent 3dcf7c5 commit 7612713
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 39 deletions.
10 changes: 5 additions & 5 deletions net/rxrpc/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int rxrpc_create_connection(struct rxrpc_transport *trans,
conn = list_entry(_p, struct rxrpc_connection, link);
if (conn->addr.sin_port == candidate->addr.sin_port &&
conn->security_ix == candidate->security_ix &&
conn->service_id == candidate->service_id &&
conn->service_id == candidate->service_id &&
conn->in_clientflag == 0)
goto found_in_graveyard;
}
Expand Down Expand Up @@ -247,13 +247,13 @@ int rxrpc_connection_lookup(struct rxrpc_peer *peer,
conn->in_epoch == x_epoch &&
conn->conn_id == x_connid &&
conn->security_ix == x_secix &&
conn->service_id == x_servid &&
conn->service_id == x_servid &&
conn->in_clientflag == x_clflag)
goto found_active;
}
read_unlock(&peer->conn_lock);

/* [uncommon case] not active
/* [uncommon case] not active
* - create a candidate for a new record if an inbound connection
* - only examine the graveyard for an outbound connection
*/
Expand Down Expand Up @@ -286,7 +286,7 @@ int rxrpc_connection_lookup(struct rxrpc_peer *peer,
conn->in_epoch == x_epoch &&
conn->conn_id == x_connid &&
conn->security_ix == x_secix &&
conn->service_id == x_servid &&
conn->service_id == x_servid &&
conn->in_clientflag == x_clflag)
goto found_active_second_chance;
}
Expand All @@ -299,7 +299,7 @@ int rxrpc_connection_lookup(struct rxrpc_peer *peer,
conn->in_epoch == x_epoch &&
conn->conn_id == x_connid &&
conn->security_ix == x_secix &&
conn->service_id == x_servid &&
conn->service_id == x_servid &&
conn->in_clientflag == x_clflag)
goto found_in_graveyard;
}
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
#if 1
#define __RXACCT_DECL(X) X
#define __RXACCT(X) do { X; } while(0)
#define __RXACCT(X) do { X; } while(0)
#else
#define __RXACCT_DECL(X)
#define __RXACCT(X) do { } while(0)
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/krxiod.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int rxrpc_krxiod(void *arg)

try_to_freeze();

/* discard pending signals */
/* discard pending signals */
rxrpc_discard_my_signals();

} while (!rxrpc_krxiod_die);
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/krxsecd.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static int rxrpc_krxsecd(void *arg)

try_to_freeze();

/* discard pending signals */
/* discard pending signals */
rxrpc_discard_my_signals();

} while (!die);
Expand Down
44 changes: 22 additions & 22 deletions net/rxrpc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,17 @@ __attribute__((no_instrument_function));
void __cyg_profile_func_enter (void *this_fn, void *call_site)
{
asm volatile(" movl %%esp,%%edi \n"
" andl %0,%%edi \n"
" addl %1,%%edi \n"
" movl %%esp,%%ecx \n"
" subl %%edi,%%ecx \n"
" shrl $2,%%ecx \n"
" movl $0xedededed,%%eax \n"
" rep stosl \n"
:
: "i"(~(THREAD_SIZE-1)), "i"(sizeof(struct thread_info))
: "eax", "ecx", "edi", "memory", "cc"
);
" andl %0,%%edi \n"
" addl %1,%%edi \n"
" movl %%esp,%%ecx \n"
" subl %%edi,%%ecx \n"
" shrl $2,%%ecx \n"
" movl $0xedededed,%%eax \n"
" rep stosl \n"
:
: "i"(~(THREAD_SIZE-1)), "i"(sizeof(struct thread_info))
: "eax", "ecx", "edi", "memory", "cc"
);
}

void __cyg_profile_func_exit(void *this_fn, void *call_site)
Expand All @@ -165,16 +165,16 @@ __attribute__((no_instrument_function));
void __cyg_profile_func_exit(void *this_fn, void *call_site)
{
asm volatile(" movl %%esp,%%edi \n"
" andl %0,%%edi \n"
" addl %1,%%edi \n"
" movl %%esp,%%ecx \n"
" subl %%edi,%%ecx \n"
" shrl $2,%%ecx \n"
" movl $0xdadadada,%%eax \n"
" rep stosl \n"
:
: "i"(~(THREAD_SIZE-1)), "i"(sizeof(struct thread_info))
: "eax", "ecx", "edi", "memory", "cc"
);
" andl %0,%%edi \n"
" addl %1,%%edi \n"
" movl %%esp,%%ecx \n"
" subl %%edi,%%ecx \n"
" shrl $2,%%ecx \n"
" movl $0xdadadada,%%eax \n"
" rep stosl \n"
:
: "i"(~(THREAD_SIZE-1)), "i"(sizeof(struct thread_info))
: "eax", "ecx", "edi", "memory", "cc"
);
}
#endif
12 changes: 6 additions & 6 deletions net/rxrpc/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,47 +27,47 @@ int rxrpc_knet;
static struct ctl_table_header *rxrpc_sysctl = NULL;

static ctl_table rxrpc_sysctl_table[] = {
{
{
.ctl_name = 1,
.procname = "kdebug",
.data = &rxrpc_kdebug,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec
},
{
{
.ctl_name = 2,
.procname = "ktrace",
.data = &rxrpc_ktrace,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec
},
{
{
.ctl_name = 3,
.procname = "kproto",
.data = &rxrpc_kproto,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec
},
{
{
.ctl_name = 4,
.procname = "knet",
.data = &rxrpc_knet,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec
},
{
{
.ctl_name = 5,
.procname = "peertimo",
.data = &rxrpc_peer_timeout,
.maxlen = sizeof(unsigned long),
.mode = 0644,
.proc_handler = &proc_doulongvec_minmax
},
{
{
.ctl_name = 6,
.procname = "conntimo",
.data = &rxrpc_conn_timeout,
Expand Down
6 changes: 3 additions & 3 deletions net/rxrpc/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ static int rxrpc_incoming_msg(struct rxrpc_transport *trans,
msg->state = RXRPC_MSG_RECEIVED;
skb_get_timestamp(pkt, &msg->stamp);
if (msg->stamp.tv_sec == 0) {
do_gettimeofday(&msg->stamp);
if (pkt->sk)
do_gettimeofday(&msg->stamp);
if (pkt->sk)
sock_enable_timestamp(pkt->sk);
}
}
msg->seq = ntohl(msg->hdr.seq);

/* attach the packet */
Expand Down

0 comments on commit 7612713

Please sign in to comment.