Message ID | 20211019163346.1384785-1-kuba@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Marcel Holtmann |
Headers | show |
Series | [1/2] bluetooth: use eth_hw_addr_set() | expand |
On Tue, 19 Oct 2021 10:29:08 -0700 (PDT) bluez.test.bot@gmail.com wrote: > 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=566505 Eish, sorry, you need 40af35fdf79c ("netdevice: demote the type of some dev_addr_set() helpers") from net-next for this change to build cleanly. What are your plans on sending a PR for net-next? Probably easiest if I resend this after such PR? Or apply directly to net-next.
Hi Jakub, >> 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=566505 > > Eish, sorry, you need 40af35fdf79c ("netdevice: demote the type of some > dev_addr_set() helpers") from net-next for this change to build cleanly. > > What are your plans on sending a PR for net-next? Probably easiest if I > resend this after such PR? Or apply directly to net-next. we have one more pull request for you in the works, but I was not planning to rebase bluetooth-next if not needed. So just go ahead and take the patch directly into net-next. Reviewed-by: Marcel Holtmann <marcel@holtmann.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Regards Marcel
On Tue, 19 Oct 2021 20:26:39 +0200 Marcel Holtmann wrote: > >> 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=566505 > > > > Eish, sorry, you need 40af35fdf79c ("netdevice: demote the type of some > > dev_addr_set() helpers") from net-next for this change to build cleanly. > > > > What are your plans on sending a PR for net-next? Probably easiest if I > > resend this after such PR? Or apply directly to net-next. > > we have one more pull request for you in the works, but I was not planning > to rebase bluetooth-next if not needed. So just go ahead and take the patch > directly into net-next. > > Reviewed-by: Marcel Holtmann <marcel@holtmann.org> > Acked-by: Marcel Holtmann <marcel@holtmann.org> Will do, thanks!
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 72f47b372705..c9add7753b9f 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c @@ -594,7 +594,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) * ie. eh.h_dest is our local address. */ memcpy(s->eh.h_dest, &src, ETH_ALEN); memcpy(s->eh.h_source, &dst, ETH_ALEN); - memcpy(dev->dev_addr, s->eh.h_dest, ETH_ALEN); + eth_hw_addr_set(dev, s->eh.h_dest); s->dev = dev; s->sock = sock;
Commit 406f42fa0d3c ("net-next: When a bond have a massive amount of VLANs...") introduced a rbtree for faster Ethernet address look up. To maintain netdev->dev_addr in this tree we need to make all the writes to it got through appropriate helpers. Convert bluetooth from memcpy(... ETH_ADDR) to eth_hw_addr_set(): @@ expression dev, np; @@ - memcpy(dev->dev_addr, np, ETH_ALEN) + eth_hw_addr_set(dev, np) Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- net/bluetooth/bnep/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)