All of lore.kernel.org
 help / color / mirror / Atom feed
* [mkp-scsi:queue 116/118] drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
@ 2020-02-29 11:35 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-29 11:35 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git queue
head:   c892193c1ec595e7f3f599ce817697d9a3d17f81
commit: 54b04c99d02e4c3e442fcb1e77f4ca6515be8826 [116/118] scsi: ibmvfc: Avoid loss of all paths during SVC node reboot
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 54b04c99d02e4c3e442fcb1e77f4ca6515be8826
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:5:0,
                    from include/uapi/linux/types.h:14,
                    from include/linux/types.h:6,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from drivers/scsi/ibmvscsi/ibmvfc.c:10:
   drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_tgt_implicit_logout_and_del':
>> include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void
    #define NULL ((void *)0)
                 ^
>> drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
      return NULL;
             ^~~~
   drivers/scsi/ibmvscsi/ibmvfc.c:3638:13: note: declared here
    static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from include/uapi/linux/posix_types.h:5:0,
                    from include/uapi/linux/types.h:14,
                    from include/linux/types.h:6,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from drivers/scsi//ibmvscsi/ibmvfc.c:10:
   drivers/scsi//ibmvscsi/ibmvfc.c: In function 'ibmvfc_tgt_implicit_logout_and_del':
>> include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void
    #define NULL ((void *)0)
                 ^
   drivers/scsi//ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
      return NULL;
             ^~~~
   drivers/scsi//ibmvscsi/ibmvfc.c:3638:13: note: declared here
    static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/NULL +3644 drivers/scsi/ibmvscsi/ibmvfc.c

  3632	
  3633	/**
  3634	 * ibmvfc_tgt_implicit_logout_and_del - Initiate an Implicit Logout for specified target
  3635	 * @tgt:		ibmvfc target struct
  3636	 *
  3637	 **/
  3638	static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
  3639	{
  3640		struct ibmvfc_host *vhost = tgt->vhost;
  3641		struct ibmvfc_event *evt;
  3642	
  3643		if (vhost->discovery_threads >= disc_threads)
> 3644			return NULL;
  3645	
  3646		vhost->discovery_threads++;
  3647		evt = __ibmvfc_tgt_get_implicit_logout_evt(tgt,
  3648							   ibmvfc_tgt_implicit_logout_and_del_done);
  3649	
  3650		ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_LOGOUT_RPORT_WAIT);
  3651		if (ibmvfc_send_event(evt, vhost, default_timeout)) {
  3652			vhost->discovery_threads--;
  3653			ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT);
  3654			kref_put(&tgt->kref, ibmvfc_release_tgt);
  3655		} else
  3656			tgt_dbg(tgt, "Sent Implicit Logout\n");
  3657	}
  3658	

---
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: 64796 bytes --]

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

only message in thread, other threads:[~2020-02-29 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-29 11:35 [mkp-scsi:queue 116/118] drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL' kbuild 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.