Patch "Bluetooth: MGMT: Remove unused mgmt_pending_find_data" has been added to the 6.12-stable tree
Quoted 7 lines · * Sasha Levin ([email protected]) wrote:
This is a note to let you know that I've just added the patch titled
Bluetooth: MGMT: Remove unused
mgmt_pending_find_datato the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
Quoted 6 lines
The filename of the patch is:
bluetooth-mgmt-remove-unused-mgmt_pending_find_data.patch
and it can be found in the queue-6.12 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
It's a cleanup only, so I wouldn't backport it unless it makes backporting a useful patch easier.
Dave
Quoted 64 lines
commit
17d285fbdeb9dabee6c6c348a528ac81ca65a6daAuthor: Dr. David Alan Gilbert <[email protected]> Date: Mon Jan 27 21:37:15 2025 +0000Bluetooth: MGMT: Remove unused
mgmt_pending_find_data[ Upstream commit
276af34d82f13bda0b2a4d9786c90b8bbf1cd064]
mgmt_pending_find_data()last use was removed in 2021 by commit5a7501374664("Bluetooth:hci_sync: ConvertMGMT_OP_GET_CLOCK_INFO")Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>Reviewed-by Simon Horman <[email protected]>Signed-off-by Luiz Augusto von Dentz <[email protected]>Stable-dep-of:
6fe26f694c82("Bluetooth: MGMT: Protectmgmt_pendinglist with its own lock")Signed-off-by Sasha Levin <[email protected]>net/bluetooth/mgmt_util.c +0
-17@@ -229,23 +229,6 @@ struct mgmt_pending_cmd *mgmt_pending_find(unsigned short channel, u16 opcode,return NULL ; } -struct mgmt_pending_cmd *mgmt_pending_find_data (unsigned short channel, -u16 opcode, -struct hci_dev *hdev, -const void *data) -{ -struct mgmt_pending_cmd *cmd; - -list_for_each_entry (cmd, &hdev->mgmt_pending, list) { -if (cmd->user_data != data) -continue ; -if (cmd->opcode == opcode) -return cmd; - } - -return NULL ; -} -void mgmt_pending_foreach (u16 opcode,struct hci_dev *hdev,void (*cb)(struct mgmt_pending_cmd *cmd,void *data),void *data)net/bluetooth/mgmt_util.h +0
-4@@ -54,10 +54,6 @@ int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status,struct mgmt_pending_cmd *mgmt_pending_find (unsigned short channel,u16 opcode,struct hci_dev *hdev); -struct mgmt_pending_cmd *mgmt_pending_find_data (unsigned short channel, -u16 opcode, -struct hci_dev *hdev, -const void *data);void mgmt_pending_foreach (u16 opcode,struct hci_dev *hdev,void (*cb)(struct mgmt_pending_cmd *cmd,void *data),void *data);
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 |_______/
Sasha Levin
maintainerQuoted 12 lines · Dr. David Alan Gilbert
Quoted 11 lines · * Sasha Levin ([email protected]) wrote:
This is a note to let you know that I've just added the patch titled
Bluetooth: MGMT: Remove unused
mgmt_pending_find_datato the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
bluetooth-mgmt-remove-unused-mgmt_pending_find_data.patch
and it can be found in the queue-6.12 subdirectory.
Quoted 5 lines
Quoted 2 lines
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
It's a cleanup only, so I wouldn't backport it unless it makes backporting a useful patch easier.
Right, it was taken as a dependency to make a later patch apply cleanly:
Quoted 1 line
Quoted 1 line
Stable-dep-of:
6fe26f694c82("Bluetooth: MGMT: Protectmgmt_pendinglist with its own lock")
Signature · 2 lines
Thanks, Sasha
Quoted 13 lines · * Sasha Levin ([email protected]) wrote:
Quoted 12 lines · Dr. David Alan Gilbert
Quoted 11 lines · * Sasha Levin ([email protected]) wrote:
This is a note to let you know that I've just added the patch titled
Bluetooth: MGMT: Remove unused
mgmt_pending_find_datato the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
bluetooth-mgmt-remove-unused-mgmt_pending_find_data.patch
and it can be found in the queue-6.12 subdirectory.
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
It's a cleanup only, so I wouldn't backport it unless it makes backporting a useful patch easier.
Right, it was taken as a dependency to make a later patch apply cleanly:
Quoted 1 line
Quoted 1 line
Stable-dep-of:
6fe26f694c82("Bluetooth: MGMT: Protectmgmt_pendinglist with its own lock")
Oh right, that's fine.
Dave
Quoted 4 lines
Signature · 3 lines
-- Thanks, Sasha
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 |_______/