xref: /aosp_15_r20/external/linux-kselftest/android/patches/0004-psock_tpacket-warning-fix.patch (revision 053f45be4e351dfd5e965df293cd45b779f579ee)
1From 0d727ea0804691b0342379cd72a494c2d3fd659d Mon Sep 17 00:00:00 2001
2From: Edward Liaw <[email protected]>
3Date: Tue, 19 Apr 2022 22:49:19 +0000
4Subject: [PATCH 04/20] psock_tpacket: warning fix
5
6Fix compilation warning
7
8(cherry picked from commit c33d1f8c4b98fa6aa24c67d484d31b58c0651933)
9---
10 tools/testing/selftests/net/psock_tpacket.c | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/tools/testing/selftests/net/psock_tpacket.c b/tools/testing/selftests/net/psock_tpacket.c
14index e5a4c53076d2..4d5f317ab42c 100644
15--- a/tools/testing/selftests/net/psock_tpacket.c
16+++ b/tools/testing/selftests/net/psock_tpacket.c
17@@ -365,6 +365,7 @@ static inline void *get_next_frame(struct ring *ring, int n)
18 		return f0 + (n * ring->req3.tp_frame_size);
19 	default:
20 		bug_on(1);
21+		return NULL;
22 	}
23 }
24
25--
262.42.0.609.gbb76f46606-goog
27
28