public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Karan Tilak Kumar <kartilak@cisco.com>, sebaddel@cisco.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	arulponn@cisco.com, djhawar@cisco.com, gcboffa@cisco.com,
	mkai2@cisco.com, satishkh@cisco.com, jejb@linux.ibm.com,
	martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Karan Tilak Kumar <kartilak@cisco.com>
Subject: Re: [PATCH 04/14] scsi: fnic: Add support for target based solicited requests and responses
Date: Wed, 12 Jun 2024 01:56:37 +0800	[thread overview]
Message-ID: <202406120146.xchlZbqX-lkp@intel.com> (raw)
In-Reply-To: <20240610215100.673158-5-kartilak@cisco.com>

Hi Karan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on jejb-scsi/for-next linus/master v6.10-rc3 next-20240611]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Karan-Tilak-Kumar/scsi-fnic-Replace-shost_printk-with-pr_info-pr_err/20240611-060227
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
patch link:    https://lore.kernel.org/r/20240610215100.673158-5-kartilak%40cisco.com
patch subject: [PATCH 04/14] scsi: fnic: Add support for target based solicited requests and responses
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20240612/202406120146.xchlZbqX-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240612/202406120146.xchlZbqX-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406120146.xchlZbqX-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/scsi/fnic/fdls_disc.c:1926:29: warning: variable 'gpn_ft_tgt_rem' set but not used [-Wunused-but-set-variable]
    1926 |         struct fc_gpn_ft_rsp_iu_s *gpn_ft_tgt_rem;
         |                                    ^
   drivers/scsi/fnic/fdls_disc.c:2208:26: warning: variable 'els_rjt' set but not used [-Wunused-but-set-variable]
    2208 |         struct fc_els_reject_s *els_rjt;
         |                                 ^
   drivers/scsi/fnic/fdls_disc.c:2890:11: warning: variable 's_id' set but not used [-Wunused-but-set-variable]
    2890 |         uint32_t s_id = 0;
         |                  ^
   drivers/scsi/fnic/fdls_disc.c:2891:11: warning: variable 'd_id' set but not used [-Wunused-but-set-variable]
    2891 |         uint32_t d_id = 0;
         |                  ^
   drivers/scsi/fnic/fdls_disc.c:1286:13: warning: unused function 'fnic_fdls_start_flogi' [-Wunused-function]
    1286 | static void fnic_fdls_start_flogi(struct fnic_iport_s *iport)
         |             ^~~~~~~~~~~~~~~~~~~~~
   5 warnings generated.


vim +/gpn_ft_tgt_rem +1926 drivers/scsi/fnic/fdls_disc.c

  1920	
  1921	static void
  1922	fdls_process_gpn_ft_tgt_list(struct fnic_iport_s *iport,
  1923								 struct fc_hdr_s *fchdr, int len)
  1924	{
  1925		struct fc_gpn_ft_rsp_iu_s *gpn_ft_tgt;
> 1926		struct fc_gpn_ft_rsp_iu_s *gpn_ft_tgt_rem;
  1927		struct fnic_tport_s *tport, *next;
  1928		uint32_t fcid;
  1929		uint64_t wwpn;
  1930		int rem_len = len;
  1931		u32 old_link_down_cnt = iport->fnic->link_down_cnt;
  1932		struct fnic *fnic = iport->fnic;
  1933	
  1934		FNIC_FCS_DBG(KERN_INFO, fnic->lport->host, fnic->fnic_num,
  1935					 "0x%x: FDLS process GPN_FT tgt list", iport->fcid);
  1936	
  1937		gpn_ft_tgt =
  1938			(struct fc_gpn_ft_rsp_iu_s *) ((uint8_t *) fchdr +
  1939									   sizeof(struct fc_hdr_s)
  1940									   + sizeof(struct fc_ct_hdr_s));
  1941		gpn_ft_tgt_rem = gpn_ft_tgt;
  1942		len -= sizeof(struct fc_hdr_s) + sizeof(struct fc_ct_hdr_s);
  1943	
  1944		while (rem_len > 0) {
  1945	
  1946			fcid = ntoh24(gpn_ft_tgt->fcid);
  1947			wwpn = ntohll(gpn_ft_tgt->wwpn);
  1948	
  1949			FNIC_FCS_DBG(KERN_INFO, fnic->lport->host, fnic->fnic_num,
  1950					 "tport: 0x%x: ctrl:0x%x", fcid, gpn_ft_tgt->ctrl);
  1951	
  1952			if (fcid == iport->fcid) {
  1953				if (gpn_ft_tgt->ctrl & FNIC_FC_GPN_LAST_ENTRY)
  1954					break;
  1955				gpn_ft_tgt++;
  1956				rem_len -= sizeof(struct fc_gpn_ft_rsp_iu_s);
  1957				continue;
  1958			}
  1959	
  1960			tport = fnic_find_tport_by_wwpn(iport, wwpn);
  1961			if (!tport) {
  1962				/*
  1963				 * New port registered with the switch or first time query
  1964				 */
  1965				tport = fdls_create_tport(iport, fcid, wwpn);
  1966				if (!tport)
  1967					return;
  1968			}
  1969			/*
  1970			 * check if this was an existing tport with same fcid
  1971			 * but whose wwpn has changed now ,then remove it and
  1972			 * create a new one
  1973			 */
  1974			if (tport->fcid != fcid) {
  1975				fdls_delete_tport(iport, tport);
  1976				tport = fdls_create_tport(iport, fcid, wwpn);
  1977				if (!tport)
  1978					return;
  1979			}
  1980	
  1981			/*
  1982			 * If this GPN_FT rsp is after RSCN then mark the tports which
  1983			 * matches with the new GPN_FT list, if some tport is not
  1984			 * found in GPN_FT we went to delete that tport later.
  1985			 */
  1986			if (fdls_get_state((&iport->fabric)) == FDLS_STATE_RSCN_GPN_FT)
  1987				tport->flags |= FNIC_FDLS_TPORT_IN_GPN_FT_LIST;
  1988	
  1989			if (gpn_ft_tgt->ctrl & FNIC_FC_GPN_LAST_ENTRY)
  1990				break;
  1991	
  1992			gpn_ft_tgt++;
  1993			rem_len -= sizeof(struct fc_gpn_ft_rsp_iu_s);
  1994		}
  1995		if (rem_len <= 0) {
  1996			FNIC_FCS_DBG(KERN_INFO, fnic->lport->host, fnic->fnic_num,
  1997				 "GPN_FT response: malformed/corrupt frame rxlen: %d remlen: %d",
  1998				 len, rem_len);
  1999		}
  2000	
  2001		/*remove those ports which was not listed in GPN_FT */
  2002		if (fdls_get_state((&iport->fabric)) == FDLS_STATE_RSCN_GPN_FT) {
  2003			list_for_each_entry_safe(tport, next, &iport->tport_list, links) {
  2004	
  2005				if (!(tport->flags & FNIC_FDLS_TPORT_IN_GPN_FT_LIST)) {
  2006					FNIC_FCS_DBG(KERN_INFO, fnic->lport->host, fnic->fnic_num,
  2007						 "Remove port: 0x%x not found in GPN_FT list",
  2008						 tport->fcid);
  2009					fdls_delete_tport(iport, tport);
  2010				} else {
  2011					tport->flags &= ~FNIC_FDLS_TPORT_IN_GPN_FT_LIST;
  2012				}
  2013				if ((old_link_down_cnt != iport->fnic->link_down_cnt)
  2014					|| (iport->state != FNIC_IPORT_STATE_READY)) {
  2015					return;
  2016				}
  2017			}
  2018		}
  2019	}
  2020	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-06-11 17:56 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-10 21:50 [PATCH 00/14] Introduce support for feature Fabric Discovery and Karan Tilak Kumar
2024-06-10 21:50 ` [PATCH 01/14] scsi: fnic: Replace shost_printk with pr_info/pr_err Karan Tilak Kumar
2024-06-11  6:32   ` Hannes Reinecke
2024-06-12 22:25     ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 02/14] scsi: fnic: Add headers and definitions for FDLS Karan Tilak Kumar
2024-06-11  6:53   ` Hannes Reinecke
2024-06-12 22:48     ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 03/14] scsi: fnic: Add support for fabric based solicited requests and responses Karan Tilak Kumar
2024-06-11  7:09   ` Hannes Reinecke
2024-06-17 19:36     ` Karan Tilak Kumar (kartilak)
2024-06-11 16:12   ` kernel test robot
2024-06-11 18:38   ` kernel test robot
2024-06-10 21:50 ` [PATCH 04/14] scsi: fnic: Add support for target " Karan Tilak Kumar
2024-06-11 13:31   ` Hannes Reinecke
2024-06-11 17:48     ` Karan Tilak Kumar (kartilak)
2024-06-26 10:01     ` Karan Tilak Kumar (kartilak)
2024-06-11 17:56   ` kernel test robot [this message]
2024-06-10 21:50 ` [PATCH 05/14] scsi: fnic: Add support for unsolicited " Karan Tilak Kumar
2024-06-12  6:31   ` Hannes Reinecke
2024-06-26  9:46     ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 06/14] scsi: fnic: Add and integrate support for FDMI Karan Tilak Kumar
2024-06-10 23:18   ` kernel test robot
2024-06-12  6:45   ` Hannes Reinecke
2024-06-18 17:50     ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 07/14] scsi: fnic: Add and integrate support for FIP Karan Tilak Kumar
2024-06-12  6:47   ` Hannes Reinecke
2024-06-15  3:44     ` Karan Tilak Kumar (kartilak)
2024-06-15  9:05       ` Hannes Reinecke
2024-06-17 18:56         ` Karan Tilak Kumar (kartilak)
2024-06-13 15:46   ` John Garry
2024-06-18 20:37     ` Karan Tilak Kumar (kartilak)
2024-08-09 16:36     ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 08/14] scsi: fnic: Add functionality in fnic to support FDLS Karan Tilak Kumar
2024-06-12  6:57   ` Hannes Reinecke
2024-06-15  3:47     ` Karan Tilak Kumar (kartilak)
2024-06-15  9:07       ` Hannes Reinecke
2024-06-17 19:25         ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 09/14] scsi: fnic: Modify IO path to use FDLS Karan Tilak Kumar
2024-06-12  7:18   ` Hannes Reinecke
2024-06-18 17:36     ` Karan Tilak Kumar (kartilak)
2024-06-10 21:50 ` [PATCH 10/14] scsi: fnic: Modify fnic interfaces " Karan Tilak Kumar
2024-06-10 21:50 ` [PATCH 11/14] scsi: fnic: Add stats and related functionality Karan Tilak Kumar
2024-06-10 21:50 ` [PATCH 12/14] scsi: fnic: Code cleanup Karan Tilak Kumar
2024-06-10 21:50 ` [PATCH 13/14] scsi: fnic: Add support to handle port channel RSCN Karan Tilak Kumar
2024-06-10 21:51 ` [PATCH 14/14] scsi: fnic: Increment driver version Karan Tilak Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202406120146.xchlZbqX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arulponn@cisco.com \
    --cc=djhawar@cisco.com \
    --cc=gcboffa@cisco.com \
    --cc=jejb@linux.ibm.com \
    --cc=kartilak@cisco.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=martin.petersen@oracle.com \
    --cc=mkai2@cisco.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=satishkh@cisco.com \
    --cc=sebaddel@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox