diff options
author | Joanne Koong <[email protected]> | 2022-03-21 11:58:02 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-03-21 13:29:16 -0700 |
commit | d56c9fe6a06820d5ef8188d96bf4345c7bdba249 (patch) | |
tree | dbb62572bf3f45966fab853d0fcb7e5b107061b2 /net/lapb/lapb_subr.c | |
parent | d8dc09a4db45e49cc1ee5170632833ec11fafa7e (diff) |
bpf: Fix warning for cast from restricted gfp_t in verifier
This fixes the sparse warning reported by the kernel test robot:
kernel/bpf/verifier.c:13499:47: sparse: warning: cast from restricted gfp_t
kernel/bpf/verifier.c:13501:47: sparse: warning: cast from restricted gfp_t
This fix can be verified locally by running:
1) wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O make.cross
2) chmod +x ~/bin/make.cross
3) COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 ./make.cross
C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
Fixes: b00fa38a9c1c ("bpf: Enable non-atomic allocations in local storage")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Joanne Koong <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions