aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2017-10-17 16:55:54 +0200
committerDavid S. Miller <[email protected]>2017-10-19 13:13:50 +0100
commitbc6d5031b43a2291de638ab9304320b4cae61689 (patch)
treec67f4312dd0af8422b5400b0442583660535df12 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent82f8dd28bd3abe181b7a66ea4ea132134d37a400 (diff)
bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocations
PCPU_MIN_UNIT_SIZE is an implementation detail of the percpu allocator. Given we support __GFP_NOWARN now, lets just let the allocation request fail naturally instead. The two call sites from BPF mistakenly assumed __GFP_NOWARN would work, so no changes needed to their actual __alloc_percpu_gfp() calls which use the flag already. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions