From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8D7633EB for ; Thu, 7 Apr 2022 23:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649374826; x=1680910826; h=date:from:to:cc:subject:message-id:mime-version; bh=0VtU0UneVuCkQyvNiHQoIuOKZgrxrtzsJsTWmdxkcV4=; b=I9yyFGO1fKDhjyLy2QhSn2DEQ16Q7QhTDMQOqp0ANagazblMBA+S/b5v s/pkT1lldN2sG/a3v44HTgwRXfu1B/0IF0nyjKrGUFndxgWGfv0Ek/pAr gxnhbt4uX7mfmas65POt8C3D2a3B1QKe/r52eBU6XDeAHrlb1URgEi1UW bDDnWFnwGIr3/bG1RlhjuzjA56GmfnbNMOr+g9dt6ySAdoYe5AoY5/qKI ENHONLH5lz1kg8KFQl/iQNcCTfq6673a+IlOdjrxCaYxmyGBNyVghAIN7 FikV1I6y0nbDrZ77DYZZ0G4EaPAXCF5g8MloIK77dQE3ahQKqVHnXqBep w==; X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="242060497" X-IronPort-AV: E=Sophos;i="5.90,242,1643702400"; d="scan'208";a="242060497" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 16:40:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,242,1643702400"; d="scan'208";a="506344200" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 07 Apr 2022 16:40:14 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncbjZ-0005rv-Ml; Thu, 07 Apr 2022 23:40:13 +0000 Date: Fri, 8 Apr 2022 07:39:31 +0800 From: kernel test robot To: Jiri Olsa Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [jolsa-perf:bpf/fixes 2/5] include/linux/kallsyms.h:107:5: warning: no previous prototype for function 'kallsyms_lookup_names' Message-ID: <202204080713.3jWhtN6s-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/fixes head: baa78873a24a7e0f21b0a01e82214ce9a096e147 commit: 3f047c53b0e7e747b76f0b3d032e476efbe1222f [2/5] kallsyms: Add kallsyms_lookup_names function config: powerpc-mpc8313_rdb_defconfig (https://download.01.org/0day-ci/archive/20220408/202204080713.3jWhtN6s-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b306233f78876a1d197ed6e1f05785505de7c63) 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 powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=3f047c53b0e7e747b76f0b3d032e476efbe1222f git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git git fetch --no-tags jolsa-perf bpf/fixes git checkout 3f047c53b0e7e747b76f0b3d032e476efbe1222f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/powerpc/kernel/asm-offsets.c:36: In file included from arch/powerpc/include/asm/dbell.h:17: In file included from arch/powerpc/include/asm/kvm_ppc.h:19: In file included from include/linux/kvm_host.h:32: In file included from include/linux/ftrace.h:12: >> include/linux/kallsyms.h:107:5: warning: no previous prototype for function 'kallsyms_lookup_names' [-Wmissing-prototypes] int kallsyms_lookup_names(const char **syms, u32 cnt, unsigned long *addrs) ^ include/linux/kallsyms.h:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int kallsyms_lookup_names(const char **syms, u32 cnt, unsigned long *addrs) ^ static 1 warning generated. /usr/bin/ld: unrecognised emulation mode: elf32ppclinux Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe clang-15: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [arch/powerpc/kernel/vdso/Makefile:65: arch/powerpc/kernel/vdso/vdso32.so.dbg] Error 1 make[2]: Target 'include/generated/vdso32-offsets.h' not remade because of errors. make[1]: *** [arch/powerpc/Makefile:423: vdso_prepare] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/kallsyms_lookup_names +107 include/linux/kallsyms.h 106 > 107 int kallsyms_lookup_names(const char **syms, u32 cnt, unsigned long *addrs) 108 { 109 return -ERANGE; 110 } 111 -- 0-DAY CI Kernel Test Service https://01.org/lkp