Skip to contentSkip to conversation

staging: greybus: Remove unused header declaration to_fw_mgmt_connection

PATCH Superseded Jeremy Dean Clifton 2 participants 4 messages Oct 14 – Oct 15 1 message not in the archive

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 staging: greybus: Remove unused header declaration to_fw_mgmt_connection

Previous commit removing a function definition did not remove the function prototype.

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

Function header declaration needs to be removed after definition removal.

There is no definition of this function nor is there any place where it is called.

---
v2: Fix grammar and spelling in commit message.

 drivers/staging/greybus/firmware.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/firmware.h +0 -1
index 5d2564462ffc..04a67d2d5b8f 100644
@@ -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);
Signature · 1 line
2.43.0
#2 lore raw
Quoted 2 lines · Jeremy Dean Clifton

Previous commit removing a function definition did not remove the function prototype.

Please use proper English.

The commit 3228900f80c2 ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'") removing a function definition did not remove the function prototype.

Quoted 6 lines

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

Function header declaration needs to be removed after definition removal.

This is saying what you did. It should be in the imperative:

Remove the prototype.

Quoted 2 lines

There is no definition of this function nor is there any place where it is called.

Not sure this is needed, since the definition was removed previously.

julia

Quoted 24 lines

---
v2: Fix grammar and spelling in commit message.

 drivers/staging/greybus/firmware.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/firmware.h +0 -2
index 5d2564462ffc..04a67d2d5b8f 100644
@@ -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

#3 lore raw
Quoted 17 lines · Julia Lawall
Quoted 2 lines · Jeremy Dean Clifton

Previous commit removing a function definition did not remove the function prototype.

Please use proper English.

The commit 3228900f80c2 ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'") removing a function definition did not remove the function prototype.

Quoted 4 lines

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

Quoted 7 lines
Quoted 2 lines

Function header declaration needs to be removed after definition removal.

This is saying what you did. It should be in the imperative:

Remove the prototype.

"Remove the prototype." in the imperative has been changed.

Quoted 4 lines
Quoted 2 lines

There is no definition of this function nor is there any place where it is called.

Not sure this is needed, since the definition was removed previously.

It's been removed.

The next revision is sent.

Jeremy

#4 lore raw
Quoted 28 lines · Jeremy Clifton
Quoted 17 lines · Julia Lawall
Quoted 2 lines · Jeremy Dean Clifton

Previous commit removing a function definition did not remove the function prototype.

Please use proper English.

The commit 3228900f80c2 ("staging: greybus: Remove unused function 'to_fw_mgmt_connection'") removing a function definition did not remove the function prototype.

Quoted 4 lines

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

Quoted 7 lines
Quoted 2 lines

Function header declaration needs to be removed after definition removal.

This is saying what you did. It should be in the imperative:

Remove the prototype.

"Remove the prototype." in the imperative has been changed.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

There is no definition of this function nor is there any place where it is called.

Not sure this is needed, since the definition was removed previously.

It's been removed.

The next revision is sent.

I haven't received it. Maybe the mailing list is slow again.

julia