mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: Remove unused header declaration to_fw_mgmt_connection
       [not found] <20261014171342.97160-1-deaner92.ref@yahoo.com>
@ 2026-10-14 17:13 ` Jeremy Dean Clifton
  2026-10-14 19:13   ` Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Dean Clifton @ 2026-10-14 17:13 UTC (permalink / raw)
  To: Viresh Kumar, Johan Hovold, Alex Elder, Greg Kroah-Hartman
  Cc: outreachy, Jeremy Dean Clifton, greybus-dev, linux-staging, linux-kernel

commit 3228900f80c2
("staging: greybus: Remove unused function 'to_fw_mgmt_connection'")

Function header declaration needs to be removed after it's declaration.
There is no declaration of this function nor is there any place where it
is called.

Signed-off-by: Jeremy Dean Clifton <deaner92@yahoo.com>
---
 drivers/staging/greybus/firmware.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/greybus/firmware.h b/drivers/staging/greybus/firmware.h
index 5d2564462ffc..04a67d2d5b8f 100644
--- a/drivers/staging/greybus/firmware.h
+++ b/drivers/staging/greybus/firmware.h
@@ -22,7 +22,6 @@
 /* Firmware Management Protocol specific functions */
 int fw_mgmt_init(void);
 void fw_mgmt_exit(void);
-struct gb_connection *to_fw_mgmt_connection(struct device *dev);
 int gb_fw_mgmt_request_handler(struct gb_operation *op);
 int gb_fw_mgmt_connection_init(struct gb_connection *connection);
 void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
-- 
2.43.0


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

* Re: [PATCH] staging: greybus: Remove unused header declaration to_fw_mgmt_connection
  2026-10-14 17:13 ` [PATCH] staging: greybus: Remove unused header declaration to_fw_mgmt_connection Jeremy Dean Clifton
@ 2026-10-14 19:13   ` Julia Lawall
  2026-10-14 22:22     ` Jeremy Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2026-10-14 19:13 UTC (permalink / raw)
  To: Jeremy Dean Clifton
  Cc: Viresh Kumar, Johan Hovold, Alex Elder, Greg Kroah-Hartman,
	outreachy, greybus-dev, linux-staging, linux-kernel



On Wed, 14 Oct 2026, Jeremy Dean Clifton wrote:

> commit 3228900f80c2
> ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'")

What is this?

>
> Function header declaration needs to be removed after it's declaration.

it's -> its

But I don't really understand the sentence.

julia

> There is no declaration of this function nor is there any place where it
> is called.
>
> Signed-off-by: Jeremy Dean Clifton <deaner92@yahoo.com>
> ---
>  drivers/staging/greybus/firmware.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/staging/greybus/firmware.h b/drivers/staging/greybus/firmware.h
> index 5d2564462ffc..04a67d2d5b8f 100644
> --- a/drivers/staging/greybus/firmware.h
> +++ b/drivers/staging/greybus/firmware.h
> @@ -22,7 +22,6 @@
>  /* Firmware Management Protocol specific functions */
>  int fw_mgmt_init(void);
>  void fw_mgmt_exit(void);
> -struct gb_connection *to_fw_mgmt_connection(struct device *dev);
>  int gb_fw_mgmt_request_handler(struct gb_operation *op);
>  int gb_fw_mgmt_connection_init(struct gb_connection *connection);
>  void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
> --
> 2.43.0
>
>
>

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

* Re: [PATCH] staging: greybus: Remove unused header declaration to_fw_mgmt_connection
  2026-10-14 19:13   ` Julia Lawall
@ 2026-10-14 22:22     ` Jeremy Clifton
  0 siblings, 0 replies; 3+ messages in thread
From: Jeremy Clifton @ 2026-10-14 22:22 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Viresh Kumar, Johan Hovold, Alex Elder, Greg Kroah-Hartman,
	outreachy, greybus-dev, linux-staging, linux-kernel

On 10/14/26 1:13 PM, Julia Lawall wrote:
> 
> 
> On Wed, 14 Oct 2026, Jeremy Dean Clifton wrote:
> 
>> commit 3228900f80c2
>> ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'")
> 
> What is this?
> 

This is the previous commit that did not remove the prototype of the 
function it removed. I'll include a sentence explaining what this commit 
info is here for.
>>
>> Function header declaration needs to be removed after it's declaration.
> 
> it's -> its
> 

This is a grammar and semantic error on my part. First, you are correct 
about 'its.'
Second, the word 'declaration' is truly not correct here. It would read 
better as 'definition.'

"Function header declaration needs to be removed after definition removal."

Submitting v2 with corrections.

Jeremy

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

end of thread, other threads:[~2026-10-14 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20261014171342.97160-1-deaner92.ref@yahoo.com>
2026-10-14 17:13 ` [PATCH] staging: greybus: Remove unused header declaration to_fw_mgmt_connection Jeremy Dean Clifton
2026-10-14 19:13   ` Julia Lawall
2026-10-14 22:22     ` Jeremy Clifton

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®