Skip to content
Snippets Groups Projects
Commit b540b59c authored by Jerome Marchand's avatar Jerome Marchand
Browse files

bpf: Fix warning for cast from restricted gfp_t in verifier

Bugzilla: https://bugzilla.redhat.com/2120966

commit d56c9fe6
Author: Joanne Koong <joannelkoong@gmail.com>
Date:   Mon Mar 21 11:58:02 2022 -0700

    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: b00fa38a ("bpf: Enable non-atomic allocations in local storage")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJoanne Koong <joannelkoong@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/bpf/20220321185802.824223-1-joannekoong@fb.com



Signed-off-by: default avatarJerome Marchand <jmarchan@redhat.com>
parent e26f9d7b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment