lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007020905.rIV8TzSg%lkp@intel.com>
Date:   Thu, 2 Jul 2020 09:55:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mao Han <han_mao@...ky.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Paul Walmsley <paul.walmsley@...ive.com>
Subject: arch/riscv/kernel/perf_callchain.c:77:6: warning: no previous
 prototype for 'fill_callchain'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   cd77006e01b3198c75fb7819b3d0ff89709539bb
commit: dbeb90b0c1eb86a9b963b929d3c937afb7dadfa3 riscv: Add perf callchain support
date:   10 months ago
config: riscv-randconfig-r034-20200701 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
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
        git checkout dbeb90b0c1eb86a9b963b929d3c937afb7dadfa3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/perf_event.h:25,
                    from arch/riscv/kernel/perf_callchain.c:4:
   arch/riscv/include/asm/perf_event.h:26:2: error: #error "Please provide a valid RISCV_MAX_COUNTERS for the PMU."
      26 | #error "Please provide a valid RISCV_MAX_COUNTERS for the PMU."
         |  ^~~~~
   arch/riscv/include/asm/perf_event.h:54:28: error: 'RISCV_MAX_COUNTERS' undeclared here (not in a function); did you mean 'RISCV_BASE_COUNTERS'?
      54 |  struct perf_event *events[RISCV_MAX_COUNTERS];
         |                            ^~~~~~~~~~~~~~~~~~
         |                            RISCV_BASE_COUNTERS
>> arch/riscv/kernel/perf_callchain.c:77:6: warning: no previous prototype for 'fill_callchain' [-Wmissing-prototypes]
      77 | bool fill_callchain(unsigned long pc, void *entry)
         |      ^~~~~~~~~~~~~~

vim +/fill_callchain +77 arch/riscv/kernel/perf_callchain.c

    76	
  > 77	bool fill_callchain(unsigned long pc, void *entry)
    78	{
    79		return perf_callchain_store(entry, pc);
    80	}
    81	

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

Download attachment ".config.gz" of type "application/gzip" (23519 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ