Bluetooth: make array bt_uuid_any static const
Subsystems (5)
PATCH 1/1 Bluetooth: make array bt_uuid_any static const
Don't populate the read-only array bt_uuid_any on the stack but instead make it static const. Also makes the object code a little smaller.
--- net/bluetooth/mgmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
net/bluetooth/mgmt.c +3 -1
@@ -2269,7 +2269,9 @@ static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,struct mgmt_cp_remove_uuid *cp = data;struct mgmt_pending_cmd *cmd;struct bt_uuid *match, *tmp; -u8 bt_uuid_any[] = {0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 }; +static const u8 bt_uuid_any[] = { +0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 + };int err, found;bt_dev_dbg (hdev,"sock %p" , sk);
Signature · 1 line
2.34.1
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=614273
---Test result---
Test Summary:
CheckPatch PASS 1.72 seconds GitLint PASS 1.00 seconds SubjectPrefix PASS 0.85 seconds BuildKernel PASS 35.83 seconds BuildKernel32 PASS 31.55 seconds Incremental Build with patchesPASS 43.09 seconds TestRunner: Setup PASS 551.11 seconds TestRunner: l2cap-tester PASS 15.52 seconds TestRunner: bnep-tester PASS 7.08 seconds TestRunner: mgmt-tester PASS 116.61 seconds TestRunner: rfcomm-tester PASS 8.96 seconds TestRunner: sco-tester PASS 8.89 seconds TestRunner: smp-tester PASS 8.89 seconds TestRunner: userchan-tester PASS 7.47 seconds
---
Regards,
Linux Bluetooth
Marcel Holtmann
maintainerHi Colin,
Quoted 8 lines
Don't populate the read-only array
bt_uuid_anyon the stack but instead make it static const. Also makes the object code a little smaller.Signed-off-by Colin Ian King <[email protected]>---
net/bluetooth/mgmt.c| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel