mirror of https://gitee.com/openkylin/linux.git
![]() The initializer for the variable cannot be inside the macro (and zero initialization isn't needed anyhow). include/linux/percpu-defs.h:92:33: warning: '__pcpu_unique_use_cnt' initialized and declared 'extern' extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ ^~~~~~~~~~~~~~ include/linux/percpu-defs.h:115:2: note: in expansion of macro 'DEFINE_PER_CPU_SECTION' DEFINE_PER_CPU_SECTION(type, name, "") ^~~~~~~~~~~~~~~~~~~~~~ drivers/infiniband/sw/siw/siw_main.c:129:8: note: in expansion of macro 'DEFINE_PER_CPU' static DEFINE_PER_CPU(atomic_t, use_cnt = ATOMIC_INIT(0)); ^~~~~~~~~~~~~~ Also the rules for PER_CPU require the variable names to be globally unique, so prefix them with siw_ Fixes: |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
iwarp.h | ||
siw.h | ||
siw_cm.c | ||
siw_cm.h | ||
siw_cq.c | ||
siw_main.c | ||
siw_mem.c | ||
siw_mem.h | ||
siw_qp.c | ||
siw_qp_rx.c | ||
siw_qp_tx.c | ||
siw_verbs.c | ||
siw_verbs.h |