[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203181728.i1dteMPk-lkp@intel.com>
Date: Fri, 18 Mar 2022 18:08:20 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [mingo-tip:master 1788/2335] lib/memcat_p.c:10:8: warning: no
previous prototype for function '__memcat_p'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 85293bf3fca6d85608cff1447ce3097583f15fab
commit: f4a35864aeccc248d3c2122bf0a8f2ba77ea8c2f [1788/2335] headers/deps: smp: Optimize <linux/smp.h> dependencies, remove <linux/smp_api.h> inclusion
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20220318/202203181728.i1dteMPk-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6ec1e3d798f8eab43fb3a91028c6ab04e115fcb)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=f4a35864aeccc248d3c2122bf0a8f2ba77ea8c2f
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout f4a35864aeccc248d3c2122bf0a8f2ba77ea8c2f
# 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=x86_64 SHELL=/bin/bash
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 >>):
>> lib/memcat_p.c:10:8: warning: no previous prototype for function '__memcat_p' [-Wmissing-prototypes]
void **__memcat_p(void **a, void **b)
^
lib/memcat_p.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void **__memcat_p(void **a, void **b)
^
static
1 warning generated.
vim +/__memcat_p +10 lib/memcat_p.c
93048c0944150b3 Alexander Shishkin 2018-10-16 4
93048c0944150b3 Alexander Shishkin 2018-10-16 5 /*
93048c0944150b3 Alexander Shishkin 2018-10-16 6 * Merge two NULL-terminated pointer arrays into a newly allocated
93048c0944150b3 Alexander Shishkin 2018-10-16 7 * array, which is also NULL-terminated. Nomenclature is inspired by
93048c0944150b3 Alexander Shishkin 2018-10-16 8 * memset_p() and memcat() found elsewhere in the kernel source tree.
93048c0944150b3 Alexander Shishkin 2018-10-16 9 */
93048c0944150b3 Alexander Shishkin 2018-10-16 @10 void **__memcat_p(void **a, void **b)
:::::: The code at line 10 was first introduced by commit
:::::: 93048c0944150b316a15f92c41a4d626c8df37fd lib: Fix ia64 bootloader linkage
:::::: TO: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists