From: Leonard Crestez <hidden> Date: 2021-11-03 22:18:12
Extending these flags using the existing (1 << x) pattern triggers
complaints from checkpatch. Instead of ignoring checkpatch modify the
existing values to use BIT(x) style in a separate commit.
Signed-off-by: Leonard Crestez <redacted>
---
This was split away from a longer series implementing RFC5925
Authentication Option for TCP.
Link: https://lore.kernel.org/netdev/dc9dca0006fa1b586da44dcd54e29eb4300fe773.1635784253.git.cdleonard@gmail.com/
net/ipv4/tcp_output.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
From: Eric Dumazet <hidden> Date: 2021-11-03 22:50:04
On 11/3/21 3:17 PM, Leonard Crestez wrote:
Extending these flags using the existing (1 << x) pattern triggers
complaints from checkpatch. Instead of ignoring checkpatch modify the
existing values to use BIT(x) style in a separate commit.
Signed-off-by: Leonard Crestez <redacted>
Yes, I guess checkpatch does not know that we currently use at most 16 bits :)
u16 options = opts->options;
Anyway, this seems fine.
Reviewed-by: Eric Dumazet <redacted>
From: David Laight <hidden> Date: 2021-11-04 09:17:16
From: Eric Dumazet
Sent: 03 November 2021 22:50
On 11/3/21 3:17 PM, Leonard Crestez wrote:
quoted
Extending these flags using the existing (1 << x) pattern triggers
complaints from checkpatch. Instead of ignoring checkpatch modify the
existing values to use BIT(x) style in a separate commit.
Signed-off-by: Leonard Crestez <redacted>
Yes, I guess checkpatch does not know that we currently use at most 16 bits :)
u16 options = opts->options;
Anyway, this seems fine.
Doesn't BIT() have a nasty habit of generating 64bit constants
that just cause a different set of issues when inverted?
It may be safe here - but who knows.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
From: Eric Dumazet <hidden> Date: 2021-11-04 16:38:32
On 11/4/21 2:17 AM, David Laight wrote:
From: Eric Dumazet
quoted
Sent: 03 November 2021 22:50
On 11/3/21 3:17 PM, Leonard Crestez wrote:
quoted
Extending these flags using the existing (1 << x) pattern triggers
complaints from checkpatch. Instead of ignoring checkpatch modify the
existing values to use BIT(x) style in a separate commit.
Signed-off-by: Leonard Crestez <redacted>
Yes, I guess checkpatch does not know that we currently use at most 16 bits :)
u16 options = opts->options;
Anyway, this seems fine.
Doesn't BIT() have a nasty habit of generating 64bit constants
that just cause a different set of issues when inverted?
It may be safe here - but who knows.
BIT() does not use/force 64bit constants, plain "unsigned long" ones.
Really this patch looks a nop to me.