All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size'
@ 2018-09-13  1:58 YueHaibing
  2018-09-14 10:41 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'fc_hdr' and 'hw_page_size' YueHaibing
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: YueHaibing @ 2018-09-13  1:58 UTC (permalink / raw)
  To: kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_new_nvme_buf':
drivers/scsi/lpfc/lpfc_nvme.c:2238:24: warning:
 variable 'sgl_size' set but not used [-Wunused-but-set-variable]
  int bcnt, num_posted, sgl_size;
                        ^

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/lpfc/lpfc_nvme.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c
index 5438732..d86eb51 100644
--- a/drivers/scsi/lpfc/lpfc_nvme.c
+++ b/drivers/scsi/lpfc/lpfc_nvme.c
@@ -2235,13 +2235,11 @@
 	struct sli4_sge *sgl;
 	dma_addr_t pdma_phys_sgl;
 	uint16_t iotag, lxri = 0;
-	int bcnt, num_posted, sgl_size;
+	int bcnt, num_posted;
 	LIST_HEAD(prep_nblist);
 	LIST_HEAD(post_nblist);
 	LIST_HEAD(nvme_nblist);
 
-	sgl_size = phba->cfg_sg_dma_buf_size;
-
 	for (bcnt = 0; bcnt < num_to_alloc; bcnt++) {
 		lpfc_ncmd = kzalloc(sizeof(struct lpfc_nvme_buf), GFP_KERNEL);
 		if (!lpfc_ncmd)

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH -next] scsi: lpfc: Remove set but not used variables 'fc_hdr' and 'hw_page_size'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
@ 2018-09-14 10:41 ` YueHaibing
  2018-09-17  7:02 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' Martin K. Petersen
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: YueHaibing @ 2018-09-14 10:41 UTC (permalink / raw)
  To: kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_sli4_sp_handle_rcqe':
drivers/scsi/lpfc/lpfc_sli.c:13430:26: warning:
 variable 'fc_hdr' set but not used [-Wunused-but-set-variable]

drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_cq_create':
drivers/scsi/lpfc/lpfc_sli.c:14852:11: warning:
 variable 'hw_page_size' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/lpfc/lpfc_sli.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index c378230..783a154 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -13427,7 +13427,6 @@ void lpfc_sli4_els_xri_abort_event_proc(struct lpfc_hba *phba)
 lpfc_sli4_sp_handle_rcqe(struct lpfc_hba *phba, struct lpfc_rcqe *rcqe)
 {
 	bool workposted = false;
-	struct fc_frame_header *fc_hdr;
 	struct lpfc_queue *hrq = phba->sli4_hba.hdr_rq;
 	struct lpfc_queue *drq = phba->sli4_hba.dat_rq;
 	struct lpfc_nvmet_tgtport *tgtp;
@@ -13464,9 +13463,6 @@ void lpfc_sli4_els_xri_abort_event_proc(struct lpfc_hba *phba)
 		hrq->RQ_buf_posted--;
 		memcpy(&dma_buf->cq_event.cqe.rcqe_cmpl, rcqe, sizeof(*rcqe));
 
-		/* If a NVME LS event (type 0x28), treat it as Fast path */
-		fc_hdr = (struct fc_frame_header *)dma_buf->hbuf.virt;
-
 		/* save off the frame for the word thread to process */
 		list_add_tail(&dma_buf->cq_event.list,
 			      &phba->sli4_hba.sp_queue_event);
@@ -14849,13 +14845,10 @@ struct lpfc_queue *
 	int rc, length, status = 0;
 	uint32_t shdr_status, shdr_add_status;
 	union lpfc_sli4_cfg_shdr *shdr;
-	uint32_t hw_page_size = phba->sli4_hba.pc_sli4_params.if_page_sz;
 
 	/* sanity check on queue memory */
 	if (!cq || !eq)
 		return -ENODEV;
-	if (!phba->sli4_hba.pc_sli4_params.supported)
-		hw_page_size = cq->page_size;
 
 	mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
 	if (!mbox)

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
  2018-09-14 10:41 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'fc_hdr' and 'hw_page_size' YueHaibing
@ 2018-09-17  7:02 ` Martin K. Petersen
  2018-09-29 13:53 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli' YueHaibing
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Martin K. Petersen @ 2018-09-17  7:02 UTC (permalink / raw)
  To: kernel-janitors


YueHaibing,

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_new_nvme_buf':
> drivers/scsi/lpfc/lpfc_nvme.c:2238:24: warning:
>  variable 'sgl_size' set but not used [-Wunused-but-set-variable]
>   int bcnt, num_posted, sgl_size;
>                         ^

Applied to 4.20/scsi-queue, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
  2018-09-14 10:41 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'fc_hdr' and 'hw_page_size' YueHaibing
  2018-09-17  7:02 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' Martin K. Petersen
@ 2018-09-29 13:53 ` YueHaibing
  2018-10-04 10:51 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp' YueHaibing
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: YueHaibing @ 2018-09-29 13:53 UTC (permalink / raw)
  To: kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/lpfc/lpfc_hbadisc.c: In function 'lpfc_free_tx':
drivers/scsi/lpfc/lpfc_hbadisc.c:5431:19: warning:
 variable 'psli' set but not used [-Wunused-but-set-variable]

Since commit 895427bd012c ("scsi: lpfc: NVME Initiator: Base modifications")
'psli' is not used any more.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/lpfc/lpfc_hbadisc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index f9a038ec..f4deb86 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -5428,12 +5428,10 @@ struct lpfc_nodelist *
 lpfc_free_tx(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp)
 {
 	LIST_HEAD(completions);
-	struct lpfc_sli *psli;
 	IOCB_t     *icmd;
 	struct lpfc_iocbq    *iocb, *next_iocb;
 	struct lpfc_sli_ring *pring;
 
-	psli = &phba->sli;
 	pring = lpfc_phba_elsring(phba);
 	if (unlikely(!pring))
 		return;

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (2 preceding siblings ...)
  2018-09-29 13:53 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli' YueHaibing
@ 2018-10-04 10:51 ` YueHaibing
  2018-10-17  1:47 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli' Martin K. Petersen
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: YueHaibing @ 2018-10-04 10:51 UTC (permalink / raw)
  To: kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/lpfc/lpfc_debugfs.c: In function 'lpfc_debugfs_nodelist_data':
drivers/scsi/lpfc/lpfc_debugfs.c:553:29: warning:
 variable 'tgtp' set but not used [-Wunused-but-set-variable]

It never used since 2b65e18202fd ("scsi: lpfc: NVME Target: Add debugfs support")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/lpfc/lpfc_debugfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
index aec5b10..0c8005b 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.c
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -550,7 +550,6 @@
 	struct lpfc_nodelist *ndlp;
 	unsigned char *statep;
 	struct nvme_fc_local_port *localport;
-	struct lpfc_nvmet_tgtport *tgtp;
 	struct nvme_fc_remote_port *nrport = NULL;
 	struct lpfc_nvme_rport *rport;
 
@@ -654,7 +653,6 @@
 			"\nOutstanding IO x%x\n",  outio);
 
 	if (phba->nvmet_support && phba->targetport && (vport = phba->pport)) {
-		tgtp = (struct lpfc_nvmet_tgtport *)phba->targetport->private;
 		len += snprintf(buf + len, size - len,
 				"\nNVME Targetport Entry ...\n");

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (3 preceding siblings ...)
  2018-10-04 10:51 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp' YueHaibing
@ 2018-10-17  1:47 ` Martin K. Petersen
  2018-10-17  1:58 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp' Martin K. Petersen
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Martin K. Petersen @ 2018-10-17  1:47 UTC (permalink / raw)
  To: kernel-janitors


YueHaibing,

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/lpfc/lpfc_hbadisc.c: In function 'lpfc_free_tx':
> drivers/scsi/lpfc/lpfc_hbadisc.c:5431:19: warning:
>  variable 'psli' set but not used [-Wunused-but-set-variable]
>
> Since commit 895427bd012c ("scsi: lpfc: NVME Initiator: Base modifications")
> 'psli' is not used any more.

Applied to 4.20/scsi-queue.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (4 preceding siblings ...)
  2018-10-17  1:47 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli' Martin K. Petersen
@ 2018-10-17  1:58 ` Martin K. Petersen
  2018-12-11  8:21 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'maxch' YueHaibing
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Martin K. Petersen @ 2018-10-17  1:58 UTC (permalink / raw)
  To: kernel-janitors


YueHaibing,

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/lpfc/lpfc_debugfs.c: In function 'lpfc_debugfs_nodelist_data':
> drivers/scsi/lpfc/lpfc_debugfs.c:553:29: warning:
>  variable 'tgtp' set but not used [-Wunused-but-set-variable]
>
> It never used since 2b65e18202fd ("scsi: lpfc: NVME Target: Add debugfs support")

Applied to 4.20/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH -next] scsi: lpfc: Remove set but not used variable 'maxch'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (5 preceding siblings ...)
  2018-10-17  1:58 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp' Martin K. Petersen
@ 2018-12-11  8:21 ` YueHaibing
  2019-02-14 18:52 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id' James Smart
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: YueHaibing @ 2018-12-11  8:21 UTC (permalink / raw)
  To: kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/lpfc/lpfc_debugfs.c: In function 'lpfc_debugfs_nvmestat_data':
drivers/scsi/lpfc/lpfc_debugfs.c:780:14: warning:
 variable 'maxch' set but not used [-Wunused-but-set-variable]

debugfs display buffer has be limit to 32 in below for loop,
so this can be removed safely.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/lpfc/lpfc_debugfs.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
index a58f0b3..fe446ac 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.c
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -777,7 +777,7 @@
 	struct lpfc_nvme_lport *lport;
 	uint64_t data1, data2, data3;
 	uint64_t tot, totin, totout;
-	int cnt, i, maxch;
+	int cnt, i;
 	int len = 0;
 
 	if (phba->nvmet_support) {
@@ -919,10 +919,6 @@
 				atomic_read(&lport->fc4NvmeLsRequests),
 				atomic_read(&lport->fc4NvmeLsCmpls));
 
-		if (phba->cfg_nvme_io_channel < 32)
-			maxch = phba->cfg_nvme_io_channel;
-		else
-			maxch = 32;
 		totin = 0;
 		totout = 0;
 		for (i = 0; i < phba->cfg_nvme_io_channel; i++) {

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (6 preceding siblings ...)
  2018-12-11  8:21 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'maxch' YueHaibing
@ 2019-02-14 18:52 ` James Smart
  2019-02-14 19:39 ` James Bottomley
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: James Smart @ 2019-02-14 18:52 UTC (permalink / raw)
  To: kernel-janitors



On 2/13/2019 5:51 PM, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_cpu_affinity_check':
> drivers/scsi/lpfc/lpfc_init.c:10599:19: warning:
>   variable 'phys_id' set but not used [-Wunused-but-set-variable]
>
> It never used since introduction in commit 6a828b0f6192 ("scsi: lpfc: Support
> non-uniform allocation of MSIX vectors to hardware queues")
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>   drivers/scsi/lpfc/lpfc_init.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
>
Looks fine. Thanks

Signed-off-by:   James Smart  <james.smart@broadcom.com>

-- james

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (7 preceding siblings ...)
  2019-02-14 18:52 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id' James Smart
@ 2019-02-14 19:39 ` James Bottomley
  2019-02-14 19:46 ` Martin K. Petersen
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: James Bottomley @ 2019-02-14 19:39 UTC (permalink / raw)
  To: kernel-janitors

On Thu, 2019-02-14 at 10:52 -0800, James Smart wrote:
> 
> On 2/13/2019 5:51 PM, YueHaibing wrote:
> > Fixes gcc '-Wunused-but-set-variable' warning:
> > 
> > drivers/scsi/lpfc/lpfc_init.c: In function
> > 'lpfc_cpu_affinity_check':
> > drivers/scsi/lpfc/lpfc_init.c:10599:19: warning:
> >   variable 'phys_id' set but not used [-Wunused-but-set-variable]
> > 
> > It never used since introduction in commit 6a828b0f6192 ("scsi:
> > lpfc: Support
> > non-uniform allocation of MSIX vectors to hardware queues")
> > 
> > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> > ---
> >   drivers/scsi/lpfc/lpfc_init.c | 3 +--
> >   1 file changed, 1 insertion(+), 2 deletions(-)
> > 
> > 
> 
> Looks fine. Thanks
> 
> Signed-off-by:   James Smart  <james.smart@broadcom.com>

Under the DCO this can't be a Signed-off-by tag: signoffs track the
patch transmission path under the DCO, so unless you send it you can't
add your signoff.

If you just want Martin to apply it now, and you don't want to gather
and resend it with your other lpfc patches, I think the tag you want is
Acked-by.

James

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (8 preceding siblings ...)
  2019-02-14 19:39 ` James Bottomley
@ 2019-02-14 19:46 ` Martin K. Petersen
  2019-02-14 21:19 ` James Smart
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Martin K. Petersen @ 2019-02-14 19:46 UTC (permalink / raw)
  To: kernel-janitors


James,

> If you just want Martin to apply it now, and you don't want to gather
> and resend it with your other lpfc patches, I think the tag you want
> is Acked-by.

I usually fix these up when I commit so no need to resend. But please
make sure to use the right tag.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (9 preceding siblings ...)
  2019-02-14 19:46 ` Martin K. Petersen
@ 2019-02-14 21:19 ` James Smart
  2019-02-14 21:24 ` James Bottomley
  2019-02-15  7:44 ` Dan Carpenter
  12 siblings, 0 replies; 14+ messages in thread
From: James Smart @ 2019-02-14 21:19 UTC (permalink / raw)
  To: kernel-janitors



On 2/14/2019 11:39 AM, James Bottomley wrote:
> On Thu, 2019-02-14 at 10:52 -0800, James Smart wrote:
>> On 2/13/2019 5:51 PM, YueHaibing wrote:
>>> Fixes gcc '-Wunused-but-set-variable' warning:
>>>
>>> drivers/scsi/lpfc/lpfc_init.c: In function
>>> 'lpfc_cpu_affinity_check':
>>> drivers/scsi/lpfc/lpfc_init.c:10599:19: warning:
>>>    variable 'phys_id' set but not used [-Wunused-but-set-variable]
>>>
>>> It never used since introduction in commit 6a828b0f6192 ("scsi:
>>> lpfc: Support
>>> non-uniform allocation of MSIX vectors to hardware queues")
>>>
>>> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
>>> ---
>>>    drivers/scsi/lpfc/lpfc_init.c | 3 +--
>>>    1 file changed, 1 insertion(+), 2 deletions(-)
>>>
>>>
>> Looks fine. Thanks
>>
>> Signed-off-by:   James Smart  <james.smart@broadcom.com>
> Under the DCO this can't be a Signed-off-by tag: signoffs track the
> patch transmission path under the DCO, so unless you send it you can't
> add your signoff.
>
> If you just want Martin to apply it now, and you don't want to gather
> and resend it with your other lpfc patches, I think the tag you want is
> Acked-by.
>
> James

I've been told multiple answers on which way to reply over the years. My 
initial position followed your statement, but a later rebuke (would have 
to look hard to find it) told me as maintainer that I should be doing 
something different.  I'll go back to the DCO definitions and follow those.

Thanks for cleaning it up Martin.

-- james

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (10 preceding siblings ...)
  2019-02-14 21:19 ` James Smart
@ 2019-02-14 21:24 ` James Bottomley
  2019-02-15  7:44 ` Dan Carpenter
  12 siblings, 0 replies; 14+ messages in thread
From: James Bottomley @ 2019-02-14 21:24 UTC (permalink / raw)
  To: kernel-janitors

On Thu, 2019-02-14 at 13:19 -0800, James Smart wrote:
> 
> On 2/14/2019 11:39 AM, James Bottomley wrote:
> > On Thu, 2019-02-14 at 10:52 -0800, James Smart wrote:
> > > On 2/13/2019 5:51 PM, YueHaibing wrote:
> > > > Fixes gcc '-Wunused-but-set-variable' warning:
> > > > 
> > > > drivers/scsi/lpfc/lpfc_init.c: In function
> > > > 'lpfc_cpu_affinity_check':
> > > > drivers/scsi/lpfc/lpfc_init.c:10599:19: warning:
> > > >    variable 'phys_id' set but not used [-Wunused-but-set-
> > > > variable]
> > > > 
> > > > It never used since introduction in commit 6a828b0f6192 ("scsi:
> > > > lpfc: Support
> > > > non-uniform allocation of MSIX vectors to hardware queues")
> > > > 
> > > > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> > > > ---
> > > >    drivers/scsi/lpfc/lpfc_init.c | 3 +--
> > > >    1 file changed, 1 insertion(+), 2 deletions(-)
> > > > 
> > > > 
> > > 
> > > Looks fine. Thanks
> > > 
> > > Signed-off-by:   James Smart  <james.smart@broadcom.com>
> > 
> > Under the DCO this can't be a Signed-off-by tag: signoffs track the
> > patch transmission path under the DCO, so unless you send it you
> > can't
> > add your signoff.
> > 
> > If you just want Martin to apply it now, and you don't want to
> > gather and resend it with your other lpfc patches, I think the tag
> > you want is Acked-by.
> > 
> > James
> 
> I've been told multiple answers on which way to reply over the years.
> My initial position followed your statement, but a later rebuke
> (would have to look hard to find it)

If you could, that would help me find and correct the source ...

>  told me as maintainer that I should be doing something different. 
> I'll go back to the DCO definitions and follow
> those.

Great, thanks.  Our only tag with formal requirements from the DCO is
Signed-off-by: everything else is undefined by the DCO (and thus more
prone to being argued over and having more per-subsystem meanings that
lead to irreconcilable differences between subsystem use).

James


> Thanks for cleaning it up Martin.
> 
> -- james
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id'
  2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
                   ` (11 preceding siblings ...)
  2019-02-14 21:24 ` James Bottomley
@ 2019-02-15  7:44 ` Dan Carpenter
  12 siblings, 0 replies; 14+ messages in thread
From: Dan Carpenter @ 2019-02-15  7:44 UTC (permalink / raw)
  To: kernel-janitors

Signed-off-by is like a legal document to say that you haven't added
any proprietary SCO UNIXWARE code to the patch.  You have sign every
patch if you email it.

Acked-by and Reviewed-by are less clear.  Acked-by means you want it
to be merged, I guess?  I never use Acked by because I'm not a
maintainer so it's not my place to approve things.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-02-15  7:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13  1:58 [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' YueHaibing
2018-09-14 10:41 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'fc_hdr' and 'hw_page_size' YueHaibing
2018-09-17  7:02 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'sgl_size' Martin K. Petersen
2018-09-29 13:53 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli' YueHaibing
2018-10-04 10:51 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp' YueHaibing
2018-10-17  1:47 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'psli' Martin K. Petersen
2018-10-17  1:58 ` [PATCH -next] scsi: lpfc: Remove set but not used variables 'tgtp' Martin K. Petersen
2018-12-11  8:21 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'maxch' YueHaibing
2019-02-14 18:52 ` [PATCH -next] scsi: lpfc: Remove set but not used variable 'phys_id' James Smart
2019-02-14 19:39 ` James Bottomley
2019-02-14 19:46 ` Martin K. Petersen
2019-02-14 21:19 ` James Smart
2019-02-14 21:24 ` James Bottomley
2019-02-15  7:44 ` Dan Carpenter

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.