linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roman Bolshakov <r.bolshakov@yadro.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	"James E . J . Bottomley" <jejb@linux.vnet.ibm.com>,
	<linux-scsi@vger.kernel.org>, Arun Easi <aeasi@marvell.com>,
	Nilesh Javali <njavali@marvell.com>,
	Himanshu Madhani <himanshu.madhani@oracle.com>,
	Hannes Reinecke <hare@suse.de>, Daniel Wagner <dwagner@suse.de>,
	Martin Wilck <mwilck@suse.com>
Subject: Re: [PATCH] qla2xxx: Remove an unused function
Date: Mon, 25 May 2020 21:04:46 +0300	[thread overview]
Message-ID: <20200525180446.GA64430@SPB-NB-133.local> (raw)
In-Reply-To: <20200520040738.1017-1-bvanassche@acm.org>

On Tue, May 19, 2020 at 09:07:38PM -0700, Bart Van Assche wrote:
> This was detected by building the qla2xxx driver with clang. See also
> commit a9083016a531 ("[SCSI] qla2xxx: Add ISP82XX support").
> 
> Cc: Arun Easi <aeasi@marvell.com>
> Cc: Nilesh Javali <njavali@marvell.com>
> Cc: Himanshu Madhani <himanshu.madhani@oracle.com>
> Cc: Hannes Reinecke <hare@suse.de>
> Cc: Daniel Wagner <dwagner@suse.de>
> Cc: Martin Wilck <mwilck@suse.com>
> Cc: Roman Bolshakov <r.bolshakov@yadro.com>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---
>  drivers/scsi/qla2xxx/qla_nx.c | 41 -----------------------------------
>  1 file changed, 41 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
> index 21f968e4a584..0baf55b7e88f 100644
> --- a/drivers/scsi/qla2xxx/qla_nx.c
> +++ b/drivers/scsi/qla2xxx/qla_nx.c
> @@ -380,47 +380,6 @@ qla82xx_pci_set_crbwindow_2M(struct qla_hw_data *ha, ulong off_in,
>  	*off_out = (off_in & MASK(16)) + CRB_INDIRECT_2M + ha->nx_pcibase;
>  }
>  
> -static inline unsigned long
> -qla82xx_pci_set_crbwindow(struct qla_hw_data *ha, u64 off)
> -{
> -	scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
> -	/* See if we are currently pointing to the region we want to use next */
> -	if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_DDR_NET)) {
> -		/* No need to change window. PCIX and PCIEregs are in both
> -		 * regs are in both windows.
> -		 */
> -		return off;
> -	}
> -
> -	if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_PCIX_HOST2)) {
> -		/* We are in first CRB window */
> -		if (ha->curr_window != 0)
> -			WARN_ON(1);
> -		return off;
> -	}
> -
> -	if ((off > QLA82XX_CRB_PCIX_HOST2) && (off < QLA82XX_CRB_MAX)) {
> -		/* We are in second CRB window */
> -		off = off - QLA82XX_CRB_PCIX_HOST2 + QLA82XX_CRB_PCIX_HOST;
> -
> -		if (ha->curr_window != 1)
> -			return off;
> -
> -		/* We are in the QM or direct access
> -		 * register region - do nothing
> -		 */
> -		if ((off >= QLA82XX_PCI_DIRECT_CRB) &&
> -			(off < QLA82XX_PCI_CAMQM_MAX))
> -			return off;
> -	}
> -	/* strange address given */
> -	ql_dbg(ql_dbg_p3p, vha, 0xb001,
> -	    "%s: Warning: unm_nic_pci_set_crbwindow "
> -	    "called with an unknown address(%llx).\n",
> -	    QLA2XXX_DRIVER_NAME, off);
> -	return off;
> -}
> -
>  static int
>  qla82xx_pci_get_crb_addr_2M(struct qla_hw_data *ha, ulong off_in,
>  			    void __iomem **off_out)

Hi Bart,

Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>

Thanks,
Roman

  parent reply	other threads:[~2020-05-25 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20  4:07 [PATCH] qla2xxx: Remove an unused function Bart Van Assche
2020-05-20  7:18 ` Daniel Wagner
2020-05-20 17:00 ` Himanshu Madhani
2020-05-25 18:04 ` Roman Bolshakov [this message]
2020-05-27  2:12 ` Martin K. Petersen

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=20200525180446.GA64430@SPB-NB-133.local \
    --to=r.bolshakov@yadro.com \
    --cc=aeasi@marvell.com \
    --cc=bvanassche@acm.org \
    --cc=dwagner@suse.de \
    --cc=hare@suse.de \
    --cc=himanshu.madhani@oracle.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=mwilck@suse.com \
    --cc=njavali@marvell.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;
as well as URLs for NNTP newsgroup(s).