Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

+1
+1
net/core/sock.c
··· 912 912 913 913 case SO_TIMESTAMPING_NEW: 914 914 sock_set_flag(sk, SOCK_TSTAMP_NEW); 915 + /* fall through */ 915 916 case SO_TIMESTAMPING_OLD: 916 917 if (val & ~SOF_TIMESTAMPING_MASK) { 917 918 ret = -EINVAL;