Skip to content

Commit ff7653f

Browse files
committed
net: Fix fall through warning in y2038 tstamp changes.
net/core/sock.c: In function 'sock_setsockopt': net/core/sock.c:914:3: warning: this statement may fall through [-Wimplicit-fallthrough=] sock_set_flag(sk, SOCK_TSTAMP_NEW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/core/sock.c:915:2: note: here case SO_TIMESTAMPING_OLD: ^~~~ Fixes: 9718475 ("socket: Add SO_TIMESTAMPING_NEW") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 303a339 commit ff7653f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/core/sock.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname,
912912

913913
case SO_TIMESTAMPING_NEW:
914914
sock_set_flag(sk, SOCK_TSTAMP_NEW);
915+
/* fall through */
915916
case SO_TIMESTAMPING_OLD:
916917
if (val & ~SOF_TIMESTAMPING_MASK) {
917918
ret = -EINVAL;

0 commit comments

Comments
 (0)