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]
Date:   Fri, 14 Oct 2022 13:28:45 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiri Olsa <jolsa@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jolsa-perf:bpf/tracing_multi_ng_4 23/23]
 kernel/bpf/trampoline.c:1169:16: error: implicit declaration of function
 'ftrace_hash_alloc'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_ng_4
head:   e3fa3b908cc734f85477c07a0ba93480bd80702c
commit: e3fa3b908cc734f85477c07a0ba93480bd80702c [23/23] bpf: Add support to attach multi trampolines
config: x86_64-randconfig-a006
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=e3fa3b908cc734f85477c07a0ba93480bd80702c
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/tracing_multi_ng_4
        git checkout e3fa3b908cc734f85477c07a0ba93480bd80702c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   kernel/bpf/trampoline.c: In function 'trampoline_multi_update':
>> kernel/bpf/trampoline.c:1169:16: error: implicit declaration of function 'ftrace_hash_alloc' [-Werror=implicit-function-declaration]
    1169 |         hash = ftrace_hash_alloc(FTRACE_HASH_DEFAULT_BITS);
         |                ^~~~~~~~~~~~~~~~~
>> kernel/bpf/trampoline.c:1169:34: error: 'FTRACE_HASH_DEFAULT_BITS' undeclared (first use in this function)
    1169 |         hash = ftrace_hash_alloc(FTRACE_HASH_DEFAULT_BITS);
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/trampoline.c:1169:34: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +/ftrace_hash_alloc +1169 kernel/bpf/trampoline.c

  1162	
  1163	static int trampoline_multi_update(struct list_head *upd)
  1164	{
  1165		struct bpf_trampoline *tr;
  1166		struct ftrace_hash *hash;
  1167		int err = -EINVAL;
  1168	
> 1169		hash = ftrace_hash_alloc(FTRACE_HASH_DEFAULT_BITS);
  1170		if (!hash)
  1171			return -ENOMEM;
  1172	
  1173		list_for_each_entry(tr, upd, update.list) {
  1174		}
  1175		return err;
  1176	}
  1177	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (109446 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ