Skip to content

Commit 68c708f

Browse files
author
David S. Miller
committed
[RXRPC]: Fix pointers passed to bitops.
CC [M] net/rxrpc/ar-input.o net/rxrpc/ar-input.c: In function ‘rxrpc_fast_process_data’: net/rxrpc/ar-input.c:171: warning: passing argument 2 of ‘__test_and_set_bit’ from incompatible pointer type net/rxrpc/ar-input.c:180: warning: passing argument 2 of ‘__clear_bit’ from incompatible pointer type net/rxrpc/ar-input.c:218: warning: passing argument 2 of ‘__clear_bit’ from incompatible pointer type Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 411faf5 commit 68c708f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎net/rxrpc/ar-input.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static int rxrpc_fast_process_data(struct rxrpc_call *call,
168168
/* we may already have the packet in the out of sequence queue */
169169
ackbit = seq - (call->rx_data_eaten + 1);
170170
ASSERTCMP(ackbit, >=, 0);
171-
if (__test_and_set_bit(ackbit, &call->ackr_window)) {
171+
if (__test_and_set_bit(ackbit, call->ackr_window)) {
172172
_debug("dup oos #%u [%u,%u]",
173173
seq, call->rx_data_eaten, call->rx_data_post);
174174
ack = RXRPC_ACK_DUPLICATE;
@@ -177,7 +177,7 @@ static int rxrpc_fast_process_data(struct rxrpc_call *call,
177177

178178
if (seq >= call->ackr_win_top) {
179179
_debug("exceed #%u [%u]", seq, call->ackr_win_top);
180-
__clear_bit(ackbit, &call->ackr_window);
180+
__clear_bit(ackbit, call->ackr_window);
181181
ack = RXRPC_ACK_EXCEEDS_WINDOW;
182182
goto discard_and_ack;
183183
}
@@ -215,7 +215,7 @@ static int rxrpc_fast_process_data(struct rxrpc_call *call,
215215
ret = rxrpc_queue_rcv_skb(call, skb, false, terminal);
216216
if (ret < 0) {
217217
if (ret == -ENOMEM || ret == -ENOBUFS) {
218-
__clear_bit(ackbit, &call->ackr_window);
218+
__clear_bit(ackbit, call->ackr_window);
219219
ack = RXRPC_ACK_NOSPACE;
220220
goto discard_and_ack;
221221
}

0 commit comments

Comments
 (0)