tree:
https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: add5a797d8c5a1354887afa61a0b2c201b178d8f
commit: d02c6af5256fadbca98bfc88a1d154852ff83884 [10/48] IB/cm: Remove
"mad_agent" parameter of ib_cancel_mad
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
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/leon/linux-rdma.git/commi...
git remote add leon-rdma
https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma rdma-next
git checkout d02c6af5256fadbca98bfc88a1d154852ff83884
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/rdma/ib_sa.h:18,
from include/rdma/rdma_cm.h:13,
from drivers/block/rnbd/rnbd-clt-sysfs.c:22:
include/rdma/ib_mad.h:749:20: error: redefinition of 'ib_cancel_mad'
749 | static inline void ib_cancel_mad(struct ib_mad_send_buf *send_buf)
| ^~~~~~~~~~~~~
include/rdma/ib_mad.h:737:20: note: previous definition of 'ib_cancel_mad' was
here
737 | static inline void ib_cancel_mad(struct ib_mad_send_buf *send_buf)
| ^~~~~~~~~~~~~
include/rdma/ib_mad.h: In function 'ib_cancel_mad':
include/rdma/ib_mad.h:751:24: error: passing argument 1 of 'ib_modify_mad' from
incompatible pointer type [-Werror=incompatible-pointer-types]
751 | ib_modify_mad(send_buf->mad_agent, send_buf, 0);
| ~~~~~~~~^~~~~~~~~~~
| |
| struct ib_mad_agent *
include/rdma/ib_mad.h:728:43: note: expected 'struct ib_mad_send_buf *' but
argument is of type 'struct ib_mad_agent *'
728 | int ib_modify_mad(struct ib_mad_send_buf *send_buf, u32 timeout_ms);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
> include/rdma/ib_mad.h:751:37: warning: passing argument 2 of
'ib_modify_mad' makes integer from pointer without a cast [-Wint-conversion]
751 | ib_modify_mad(send_buf->mad_agent, send_buf, 0);
| ^~~~~~~~
| |
| struct ib_mad_send_buf *
include/rdma/ib_mad.h:728:57: note: expected 'u32' {aka 'unsigned int'}
but argument is of type 'struct ib_mad_send_buf *'
728 | int ib_modify_mad(struct ib_mad_send_buf *send_buf, u32 timeout_ms);
| ~~~~^~~~~~~~~~
include/rdma/ib_mad.h:751:2: error: too many arguments to function
'ib_modify_mad'
751 | ib_modify_mad(send_buf->mad_agent, send_buf, 0);
| ^~~~~~~~~~~~~
include/rdma/ib_mad.h:728:5: note: declared here
728 | int ib_modify_mad(struct ib_mad_send_buf *send_buf, u32 timeout_ms);
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/ib_modify_mad +751 include/rdma/ib_mad.h
741
742 /**
743 * ib_cancel_mad - Cancels an outstanding send MAD operation.
744 * @send_buf: Indicates the MAD to cancel.
745 *
746 * MADs will be returned to the user through the corresponding
747 * ib_mad_send_handler.
748 */
749 static inline void ib_cancel_mad(struct ib_mad_send_buf *send_buf)
750 {
751 ib_modify_mad(send_buf->mad_agent, send_buf, 0);
752 }
753
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org