Skip to contentSkip to conversation

cdx: remove unused struct 'cdx_mcdi_copy_buffer'

PATCH In review [email protected] 3 participants 8 messages May 30, 2024 – Jul 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cdx: remove unused struct 'cdx_mcdi_copy_buffer'

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

---
 drivers/cdx/controller/mcdi.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/cdx/controller/mcdi.c +0 -4
index 1eedc5eeb315..e760f8d347cc 100644
@@ -27,10 +27,6 @@
 #include "bitfield.h"
 #include "mcdi.h"
 
-struct cdx_mcdi_copy_buffer {
-	struct cdx_dword buffer[DIV_ROUND_UP(MCDI_CTL_SDU_LEN_MAX, 4)];
-};
-
 static void cdx_mcdi_cancel_cmd(struct cdx_mcdi *cdx, struct cdx_mcdi_cmd *cmd);
 static void cdx_mcdi_wait_for_cleanup(struct cdx_mcdi *cdx);
 static int cdx_mcdi_rpc_async_internal(struct cdx_mcdi *cdx,
Signature · 1 line
2.45.1
#1 lore raw
Quoted 6 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Quoted 6 lines

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

Ping.

Dave

Quoted 22 lines
---
 drivers/cdx/controller/mcdi.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/cdx/controller/mcdi.c +0 -4
index 1eedc5eeb315..e760f8d347cc 100644
@@ -27,10 +27,6 @@
 #include "bitfield.h"
 #include "mcdi.h"
 
-struct cdx_mcdi_copy_buffer {
-	struct cdx_dword buffer[DIV_ROUND_UP(MCDI_CTL_SDU_LEN_MAX, 4)];
-};
-
 static void cdx_mcdi_cancel_cmd(struct cdx_mcdi *cdx, struct cdx_mcdi_cmd *cmd);
 static void cdx_mcdi_wait_for_cleanup(struct cdx_mcdi *cdx);
 static int cdx_mcdi_rpc_async_internal(struct cdx_mcdi *cdx,
Signature · 1 line
2.45.1
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
Acked-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 6 lines · On 5/31/2024 5:04 AM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Quoted 6 lines

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

#3 lore raw
Quoted 9 lines · * Gupta, Nipun ([email protected]) wrote:
Quoted 6 lines · On 5/31/2024 5:04 AM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Quoted 7 lines
Quoted 6 lines

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

Hi Nipun,
Do you know who would pick this one up? I don't think it's made it's
way into -next yet.

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#4 lore raw
Quoted 13 lines · Dr. David Alan Gilbert
Quoted 12 lines · * Gupta, Nipun ([email protected]) wrote:
Quoted 9 lines · On 5/31/2024 5:04 AM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

Remove it.

Hi Nipun,
Do you know who would pick this one up? I don't think it's made it's
way into -next yet.

Added Greg k-h for this.

Quoted 3 lines

Dave

#5 lore raw
Quoted 16 lines · Nipun
Quoted 15 lines · Dr. David Alan Gilbert
Quoted 14 lines · * Gupta, Nipun ([email protected]) wrote:
Quoted 11 lines · On 5/31/2024 5:04 AM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Hi Nipun,
Do you know who would pick this one up? I don't think it's made it's
way into -next yet.

Added Greg k-h for this.

For what? Sorry, I have no context here...

#6 lore raw
Quoted 20 lines · Greg KH
Quoted 19 lines · Nipun
Quoted 18 lines · Dr. David Alan Gilbert
Quoted 16 lines · * Gupta, Nipun ([email protected]) wrote:
Quoted 6 lines · On 5/31/2024 5:04 AM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Quoted 6 lines

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Hi Nipun,
Do you know who would pick this one up? I don't think it's made it's
way into -next yet.

Added Greg k-h for this.

For what? Sorry, I have no context here...

This patch is from David to remove an unused structure in CDX. He is asking me that who will pick this up to be added in linux code. So I just added you explicitly, as you will be adding it in the your branch which will go in linux-next :)

#7 lore raw
Quoted 27 lines · Nipun
Quoted 24 lines · Greg KH
Quoted 23 lines · Nipun
Quoted 21 lines · Dr. David Alan Gilbert
Quoted 9 lines · * Gupta, Nipun ([email protected]) wrote:
Quoted 6 lines · On 5/31/2024 5:04 AM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'cdx_mcdi_copy_buffer' has been unused since the original commit eb96b740192b ("cdx: add MCDI protocol interface for firmware interaction").

Quoted 7 lines
Quoted 6 lines

Looking at lkml, it was used in the V1 posting but was removed somewhere before V6.

Remove it.

Hi Nipun,
Do you know who would pick this one up? I don't think it's made it's
way into -next yet.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Added Greg k-h for this.

For what? Sorry, I have no context here...

This patch is from David to remove an unused structure in CDX. He is asking me that who will pick this up to be added in linux code. So I just added you explicitly, as you will be adding it in the your branch which will go in linux-next :)

Sorry, please wait for -rc1 to come out, it's the middle of the merge window right now and I can't do anything new until then.

thanks,

greg k-h