* [PATCH] scsi: bnx2fc: Remove some unused fields in struct bnx2fc_rport
@ 2024-08-23 7:59 Christophe JAILLET
2024-08-29 1:34 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-08-23 7:59 UTC (permalink / raw)
To: Saurav Kashyap, Javed Hasan, GR-QLogic-Storage-Upstream,
James E.J. Bottomley, Martin K. Petersen
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-scsi
Some fields are unused in struct bnx2fc_rport.
Remove them in order to save 96 bytes on a x86_64.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only
---
drivers/scsi/bnx2fc/bnx2fc.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/scsi/bnx2fc/bnx2fc.h b/drivers/scsi/bnx2fc/bnx2fc.h
index 7e74f77da14f..6d47a4d8eed6 100644
--- a/drivers/scsi/bnx2fc/bnx2fc.h
+++ b/drivers/scsi/bnx2fc/bnx2fc.h
@@ -358,18 +358,12 @@ struct bnx2fc_rport {
dma_addr_t lcq_dma;
u32 lcq_mem_size;
- void *ofld_req[4];
- dma_addr_t ofld_req_dma[4];
- void *enbl_req;
- dma_addr_t enbl_req_dma;
-
spinlock_t tgt_lock;
spinlock_t cq_lock;
atomic_t num_active_ios;
u32 flush_in_prog;
unsigned long timestamp;
unsigned long retry_delay_timestamp;
- struct list_head free_task_list;
struct bnx2fc_cmd *pending_queue[BNX2FC_SQ_WQES_MAX+1];
struct list_head active_cmd_queue;
struct list_head els_queue;
--
2.46.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] scsi: bnx2fc: Remove some unused fields in struct bnx2fc_rport
2024-08-23 7:59 [PATCH] scsi: bnx2fc: Remove some unused fields in struct bnx2fc_rport Christophe JAILLET
@ 2024-08-29 1:34 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2024-08-29 1:34 UTC (permalink / raw)
To: Christophe JAILLET
Cc: Saurav Kashyap, Javed Hasan, GR-QLogic-Storage-Upstream,
James E.J. Bottomley, Martin K. Petersen, linux-kernel,
kernel-janitors, linux-scsi
Christophe,
> Some fields are unused in struct bnx2fc_rport. Remove them in order to
> save 96 bytes on a x86_64.
Applied to 6.12/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-29 1:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-23 7:59 [PATCH] scsi: bnx2fc: Remove some unused fields in struct bnx2fc_rport Christophe JAILLET
2024-08-29 1:34 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®