Skip to content

Commit 4e36a95

Browse files
dhowellsdavem330
authored andcommitted
RxRPC: Use uX/sX rather than uintX_t/intX_t types
Use uX rather than uintX_t types for consistency. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 634354d commit 4e36a95

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎include/keys/rxrpc-type.h‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,26 @@ struct krb5_tagged_data {
5353
* - KRB5_AUTHDATA_* for auth data
5454
* -
5555
*/
56-
int32_t tag;
57-
uint32_t data_len;
56+
s32 tag;
57+
u32 data_len;
5858
u8 *data;
5959
};
6060

6161
/*
6262
* RxRPC key for Kerberos V (type-5 security)
6363
*/
6464
struct rxk5_key {
65-
uint64_t authtime; /* time at which auth token generated */
66-
uint64_t starttime; /* time at which auth token starts */
67-
uint64_t endtime; /* time at which auth token expired */
68-
uint64_t renew_till; /* time to which auth token can be renewed */
69-
int32_t is_skey; /* T if ticket is encrypted in another ticket's
65+
u64 authtime; /* time at which auth token generated */
66+
u64 starttime; /* time at which auth token starts */
67+
u64 endtime; /* time at which auth token expired */
68+
u64 renew_till; /* time to which auth token can be renewed */
69+
s32 is_skey; /* T if ticket is encrypted in another ticket's
7070
* skey */
71-
int32_t flags; /* mask of TKT_FLG_* bits (krb5/krb5.h) */
71+
s32 flags; /* mask of TKT_FLG_* bits (krb5/krb5.h) */
7272
struct krb5_principal client; /* client principal name */
7373
struct krb5_principal server; /* server principal name */
74-
uint16_t ticket_len; /* length of ticket */
75-
uint16_t ticket2_len; /* length of second ticket */
74+
u16 ticket_len; /* length of ticket */
75+
u16 ticket2_len; /* length of second ticket */
7676
u8 n_authdata; /* number of authorisation data elements */
7777
u8 n_addresses; /* number of addresses */
7878
struct krb5_tagged_data session; /* session data; tag is enctype */

‎net/rxrpc/ar-ack.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static const s8 rxrpc_ack_priority[] = {
4040
/*
4141
* propose an ACK be sent
4242
*/
43-
void __rxrpc_propose_ACK(struct rxrpc_call *call, uint8_t ack_reason,
43+
void __rxrpc_propose_ACK(struct rxrpc_call *call, u8 ack_reason,
4444
__be32 serial, bool immediate)
4545
{
4646
unsigned long expiry;
@@ -120,7 +120,7 @@ void __rxrpc_propose_ACK(struct rxrpc_call *call, uint8_t ack_reason,
120120
/*
121121
* propose an ACK be sent, locking the call structure
122122
*/
123-
void rxrpc_propose_ACK(struct rxrpc_call *call, uint8_t ack_reason,
123+
void rxrpc_propose_ACK(struct rxrpc_call *call, u8 ack_reason,
124124
__be32 serial, bool immediate)
125125
{
126126
s8 prior = rxrpc_ack_priority[ack_reason];
@@ -520,7 +520,7 @@ static void rxrpc_zap_tx_window(struct rxrpc_call *call)
520520
struct rxrpc_skb_priv *sp;
521521
struct sk_buff *skb;
522522
unsigned long _skb, *acks_window;
523-
uint8_t winsz = call->acks_winsz;
523+
u8 winsz = call->acks_winsz;
524524
int tail;
525525

526526
acks_window = call->acks_window;

‎net/rxrpc/ar-internal.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ struct rxrpc_conn_bundle {
229229
int debug_id; /* debug ID for printks */
230230
unsigned short num_conns; /* number of connections in this bundle */
231231
__be16 service_id; /* service ID */
232-
uint8_t security_ix; /* security type */
232+
u8 security_ix; /* security type */
233233
};
234234

235235
/*
@@ -370,10 +370,10 @@ struct rxrpc_call {
370370
u8 channel; /* connection channel occupied by this call */
371371

372372
/* transmission-phase ACK management */
373-
uint8_t acks_head; /* offset into window of first entry */
374-
uint8_t acks_tail; /* offset into window of last entry */
375-
uint8_t acks_winsz; /* size of un-ACK'd window */
376-
uint8_t acks_unacked; /* lowest unacked packet in last ACK received */
373+
u8 acks_head; /* offset into window of first entry */
374+
u8 acks_tail; /* offset into window of last entry */
375+
u8 acks_winsz; /* size of un-ACK'd window */
376+
u8 acks_unacked; /* lowest unacked packet in last ACK received */
377377
int acks_latest; /* serial number of latest ACK received */
378378
rxrpc_seq_t acks_hard; /* highest definitively ACK'd msg seq */
379379
unsigned long *acks_window; /* sent packet window
@@ -388,7 +388,7 @@ struct rxrpc_call {
388388
rxrpc_seq_t rx_first_oos; /* first packet in rx_oos_queue (or 0) */
389389
rxrpc_seq_t ackr_win_top; /* top of ACK window (rx_data_eaten is bottom) */
390390
rxrpc_seq_net_t ackr_prev_seq; /* previous sequence number received */
391-
uint8_t ackr_reason; /* reason to ACK */
391+
u8 ackr_reason; /* reason to ACK */
392392
__be32 ackr_serial; /* serial of packet being ACK'd */
393393
atomic_t ackr_not_idle; /* number of packets in Rx queue */
394394

@@ -434,8 +434,8 @@ extern int rxrpc_reject_call(struct rxrpc_sock *);
434434
/*
435435
* ar-ack.c
436436
*/
437-
extern void __rxrpc_propose_ACK(struct rxrpc_call *, uint8_t, __be32, bool);
438-
extern void rxrpc_propose_ACK(struct rxrpc_call *, uint8_t, __be32, bool);
437+
extern void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
438+
extern void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
439439
extern void rxrpc_process_call(struct work_struct *);
440440

441441
/*

‎net/rxrpc/ar-key.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td,
360360
/*
361361
* extract a krb5 ticket
362362
*/
363-
static int rxrpc_krb5_decode_ticket(u8 **_ticket, uint16_t *_tktlen,
363+
static int rxrpc_krb5_decode_ticket(u8 **_ticket, u16 *_tktlen,
364364
const __be32 **_xdr, unsigned *_toklen)
365365
{
366366
const __be32 *xdr = *_xdr;

0 commit comments

Comments
 (0)