Skip to content

Commit b21c7ba

Browse files
chuckleverkuba-moo
authored andcommitted
net/handshake: Squelch allocation warning during Kunit test
The "handshake_req_alloc excessive privsize" kunit test is intended to check what happens when the maximum privsize is exceeded. The WARN_ON_ONCE_GFP at mm/page_alloc.c:4744 can be disabled safely for this test. Reported-by: Linux Kernel Functional Testing <[email protected]> Fixes: 88232ec ("net/handshake: Add Kunit tests for the handshake consumer API") Signed-off-by: Chuck Lever <[email protected]> Link: https://lore.kernel.org/r/168451636052.47152.9600443326570457947.stgit@oracle-102.nfsv4bat.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 640bf95 commit b21c7ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/handshake/handshake-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct handshake_req_alloc_test_param handshake_req_alloc_params[] = {
102102
{
103103
.desc = "handshake_req_alloc excessive privsize",
104104
.proto = &handshake_req_alloc_proto_6,
105-
.gfp = GFP_KERNEL,
105+
.gfp = GFP_KERNEL | __GFP_NOWARN,
106106
.expect_success = false,
107107
},
108108
{

0 commit comments

Comments
 (0)