All of lore.kernel.org
 help / color / mirror / Atom feed
* [leon-rdma:rdma-next 10/48] include/rdma/ib_mad.h:751:37: warning: passing argument 2 of 'ib_modify_mad' makes integer from pointer without a cast
@ 2021-04-08 14:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-08 14:14 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4080 bytes --]

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/commit/?id=d02c6af5256fadbca98bfc88a1d154852ff83884
        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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72678 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-08 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 14:14 [leon-rdma:rdma-next 10/48] include/rdma/ib_mad.h:751:37: warning: passing argument 2 of 'ib_modify_mad' makes integer from pointer without a cast kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.