[mingo-tip:master 1933/2300] drivers/infiniband/ulp/srp/ib_srp.c:75: warning: "DEFINE_DYNAMIC_DEBUG_METADATA" redefined

From: kernel test robot
Date: Sat Jan 08 2022 - 10:17:13 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 4e348e961395297bb17f101cc63bc133d8a348e9
commit: 545982ee482536cdce1a96526ba2ccefe94188c6 [1933/2300] headers/deps: Optimize <linux/jump_label.h>, remove the <linux/atomic_api.h> inclusion in the CONFIG_JUMP_LABEL=y case
config: i386-randconfig-a014-20220108 (https://download.01.org/0day-ci/archive/20220108/202201082344.172v62OJ-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=545982ee482536cdce1a96526ba2ccefe94188c6
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 545982ee482536cdce1a96526ba2ccefe94188c6
# save the config file to linux build tree
mkdir build_dir
make 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: warning: "DEFINE_DYNAMIC_DEBUG_METADATA" redefined
75 | #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt)
|
In file included from include/linux/dev_printk.h:16,
from include/linux/device_types.h:19,
from include/linux/device_api.h:15,
from include/linux/device_api_lock.h:5,
from include/linux/fwnode.h:12,
from include/linux/logic_pio.h:11,
from include/asm-generic/io.h:526,
from arch/x86/include/asm/io.h:377,
from include/linux/scatterlist_api.h:12,
from drivers/infiniband/ulp/srp/ib_srp.c:38:
include/linux/dynamic_debug.h:90: note: this is the location of the previous definition
90 | #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt) \
|
>> drivers/infiniband/ulp/srp/ib_srp.c:76: warning: "DYNAMIC_DEBUG_BRANCH" redefined
76 | #define DYNAMIC_DEBUG_BRANCH(descriptor) false
|
In file included from include/linux/dev_printk.h:16,
from include/linux/device_types.h:19,
from include/linux/device_api.h:15,
from include/linux/device_api_lock.h:5,
from include/linux/fwnode.h:12,
from include/linux/logic_pio.h:11,
from include/asm-generic/io.h:526,
from arch/x86/include/asm/io.h:377,
from include/linux/scatterlist_api.h:12,
from drivers/infiniband/ulp/srp/ib_srp.c:38:
include/linux/dynamic_debug.h:113: note: this is the location of the previous definition
113 | #define DYNAMIC_DEBUG_BRANCH(descriptor) \
|


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