Message ID | 20211022174232.2510917-2-kuba@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | bluetooth: don't write directly to netdev->dev_addr | expand |
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=568737 ---Test result--- Test Summary: CheckPatch PASS 1.38 seconds GitLint PASS 0.72 seconds BuildKernel FAIL 533.55 seconds TestRunner: Setup PASS 424.84 seconds TestRunner: l2cap-tester PASS 8.46 seconds TestRunner: bnep-tester PASS 4.73 seconds TestRunner: mgmt-tester PASS 43.03 seconds TestRunner: rfcomm-tester PASS 5.60 seconds TestRunner: sco-tester PASS 6.05 seconds TestRunner: smp-tester PASS 5.72 seconds TestRunner: userchan-tester PASS 4.91 seconds Details ############################## Test: BuildKernel - FAIL - 533.55 seconds Build Kernel with minimal configuration supports Bluetooth net/bluetooth/6lowpan.c: In function ‘setup_netdev’: net/bluetooth/6lowpan.c:677:25: error: passing argument 2 of ‘__dev_addr_set’ from incompatible pointer type [-Werror=incompatible-pointer-types] 677 | __dev_addr_set(netdev, &addr, sizeof(addr)); | ^~~~~ | | | bdaddr_t * {aka struct <anonymous> *} In file included from ./include/uapi/linux/if_arp.h:27, from ./include/linux/if_arp.h:23, from net/bluetooth/6lowpan.c:7: ./include/linux/netdevice.h:4645:50: note: expected ‘const u8 *’ {aka ‘const unsigned char *’} but argument is of type ‘bdaddr_t *’ {aka ‘struct <anonymous> *’} 4645 | __dev_addr_set(struct net_device *dev, const u8 *addr, size_t len) | ~~~~~~~~~~^~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:277: net/bluetooth/6lowpan.o] Error 1 make[1]: *** [scripts/Makefile.build:540: net/bluetooth] Error 2 make: *** [Makefile:1868: net] Error 2 --- Regards, Linux Bluetooth
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;