Re: [linux-next:master 11855/12471] arch/riscv/net/bpf_jit_comp64.c:462:5: warning: no previous prototype for function 'rv_bpf_fixup_exception'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ +Bjorn ]

On 10/28/21 9:45 PM, kernel test robot wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   503f375baa99edff894eb1a534d2ac0b4f799573
commit: 252c765bd764a246a8bd516fabf6d6123df4a24f [11855/12471] riscv, bpf: Add BPF exception tables
config: riscv-randconfig-r042-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
         chmod +x ~/bin/make.cross
         # install riscv cross compiling tool for clang build
         # apt-get install binutils-riscv64-linux-gnu
         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=252c765bd764a246a8bd516fabf6d6123df4a24f
         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
         git fetch --no-tags linux-next master
         git checkout 252c765bd764a246a8bd516fabf6d6123df4a24f
         # save the attached .config to linux build tree
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

arch/riscv/net/bpf_jit_comp64.c:462:5: warning: no previous prototype for function 'rv_bpf_fixup_exception' [-Wmissing-prototypes]
    int rv_bpf_fixup_exception(const struct exception_table_entry *ex,
        ^
    arch/riscv/net/bpf_jit_comp64.c:462:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    int rv_bpf_fixup_exception(const struct exception_table_entry *ex,
    ^
    static
    1 warning generated.

Tong, Bjorn, ptal

vim +/rv_bpf_fixup_exception +462 arch/riscv/net/bpf_jit_comp64.c

    461	
  > 462	int rv_bpf_fixup_exception(const struct exception_table_entry *ex,
    463					struct pt_regs *regs)
    464	{
    465		off_t offset = FIELD_GET(BPF_FIXUP_OFFSET_MASK, ex->fixup);
    466		int regs_offset = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup);
    467	
    468		*(unsigned long *)((void *)regs + pt_regmap[regs_offset]) = 0;
    469		regs->epc = (unsigned long)&ex->fixup - offset;
    470	
    471		return 1;
    472	}
    473	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux