[mingo-tip:sched/headers 2011/2541] drivers/infiniband/ulp/srp/ib_srp.c:75:9: warning: 'DEFINE_DYNAMIC_DEBUG_METADATA' macro redefined

From: kernel test robot
Date: Mon Feb 21 2022 - 23:08:38 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 601144c0da5edfa67a9654158370da19c67e17e2
commit: 851f9d758cf215ebf131c634c6ec7bf12e91f19f [2011/2541] headers/deps: Optimize <linux/jump_label.h>, remove the <linux/atomic_api.h> inclusion in the CONFIG_JUMP_LABEL=y case
config: i386-randconfig-a012-20220221 (https://download.01.org/0day-ci/archive/20220222/202202221244.iiBnlXUy-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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=851f9d758cf215ebf131c634c6ec7bf12e91f19f
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 851f9d758cf215ebf131c634c6ec7bf12e91f19f
# 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=i386 SHELL=/bin/bash drivers/infiniband/ulp/

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

All warnings (new ones prefixed by >>):

>> drivers/infiniband/ulp/srp/ib_srp.c:75:9: warning: 'DEFINE_DYNAMIC_DEBUG_METADATA' macro redefined [-Wmacro-redefined]
#define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt)
^
include/linux/dynamic_debug.h:90:9: note: previous definition is here
#define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt) \
^
>> drivers/infiniband/ulp/srp/ib_srp.c:76:9: warning: 'DYNAMIC_DEBUG_BRANCH' macro redefined [-Wmacro-redefined]
#define DYNAMIC_DEBUG_BRANCH(descriptor) false
^
include/linux/dynamic_debug.h:125:9: note: previous definition is here
#define DYNAMIC_DEBUG_BRANCH(descriptor) \
^
2 warnings generated.


vim +/DEFINE_DYNAMIC_DEBUG_METADATA +75 drivers/infiniband/ulp/srp/ib_srp.c

aef9ec39c47f0c Roland Dreier 2005-11-02 73
1a1faf7a8a251d Bart Van Assche 2016-11-21 74 #if !defined(CONFIG_DYNAMIC_DEBUG)
1a1faf7a8a251d Bart Van Assche 2016-11-21 @75 #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt)
1a1faf7a8a251d Bart Van Assche 2016-11-21 @76 #define DYNAMIC_DEBUG_BRANCH(descriptor) false
1a1faf7a8a251d Bart Van Assche 2016-11-21 77 #endif
1a1faf7a8a251d Bart Van Assche 2016-11-21 78

:::::: The code at line 75 was first introduced by commit
:::::: 1a1faf7a8a251d134d375b7783a614ee79e932f2 IB/srp: Fix CONFIG_DYNAMIC_DEBUG=n build

:::::: TO: Bart Van Assche <bart.vanassche@xxxxxxxxxxx>
:::::: CC: Doug Ledford <dledford@xxxxxxxxxx>

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