From: kbuild test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org,
marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org,
johan.hedberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
Loic Poulain
<loic.poulain-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v4 3/3] Bluetooth: btqcomsmd: retieve BD address from DT
Date: Fri, 8 Sep 2017 11:54:07 +0800 [thread overview]
Message-ID: <201709081147.ycxyM39v%fengguang.wu@intel.com> (raw)
In-Reply-To: <1504607164-12645-3-git-send-email-loic.poulain-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3540 bytes --]
Hi Loic,
[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.13]
[cannot apply to bluetooth-next/master next-20170907]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Loic-Poulain/dt-bindings-soc-qcom-Add-local-bd-address-property-to-WCNSS-BT/20170908-102410
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
drivers//bluetooth/btqcomsmd.c: In function 'btqcomsmd_probe':
>> drivers//bluetooth/btqcomsmd.c:160:3: warning: passing argument 2 of 'baswap' discards 'const' qualifier from pointer target type
baswap(&btq->bdaddr, local_bd_addr);
^
In file included from drivers//bluetooth/btqcomsmd.c:23:0:
include/net/bluetooth/bluetooth.h:236:6: note: expected 'struct bdaddr_t *' but argument is of type 'const struct bdaddr_t *'
void baswap(bdaddr_t *dst, bdaddr_t *src);
^
vim +160 drivers//bluetooth/btqcomsmd.c
128
129 static int btqcomsmd_probe(struct platform_device *pdev)
130 {
131 const bdaddr_t *local_bd_addr;
132 struct btqcomsmd *btq;
133 struct hci_dev *hdev;
134 void *wcnss;
135 int ret;
136
137 btq = devm_kzalloc(&pdev->dev, sizeof(*btq), GFP_KERNEL);
138 if (!btq)
139 return -ENOMEM;
140
141 wcnss = dev_get_drvdata(pdev->dev.parent);
142
143 btq->acl_channel = qcom_wcnss_open_channel(wcnss, "APPS_RIVA_BT_ACL",
144 btqcomsmd_acl_callback, btq);
145 if (IS_ERR(btq->acl_channel))
146 return PTR_ERR(btq->acl_channel);
147
148 btq->cmd_channel = qcom_wcnss_open_channel(wcnss, "APPS_RIVA_BT_CMD",
149 btqcomsmd_cmd_callback, btq);
150 if (IS_ERR(btq->cmd_channel))
151 return PTR_ERR(btq->cmd_channel);
152
153 /* The local-bd-address DT property is usually injected by the
154 * bootloader which has access to the allocated BD address.
155 */
156 local_bd_addr = of_get_property(pdev->dev.of_node, "local-mac-address",
157 &ret);
158 if (local_bd_addr && ret == sizeof(bdaddr_t)) {
159 /* local-bd-address stored with most significant byte first */
> 160 baswap(&btq->bdaddr, local_bd_addr);
161 BT_INFO("BD address %pMR retrieved from device-tree",
162 &btq->bdaddr);
163 }
164
165 hdev = hci_alloc_dev();
166 if (!hdev)
167 return -ENOMEM;
168
169 hci_set_drvdata(hdev, btq);
170 btq->hdev = hdev;
171 SET_HCIDEV_DEV(hdev, &pdev->dev);
172
173 hdev->bus = HCI_SMD;
174 hdev->open = btqcomsmd_open;
175 hdev->close = btqcomsmd_close;
176 hdev->send = btqcomsmd_send;
177 hdev->setup = btqcomsmd_setup;
178 hdev->set_bdaddr = qca_set_bdaddr_rome;
179
180 ret = hci_register_dev(hdev);
181 if (ret < 0) {
182 hci_free_dev(hdev);
183 return ret;
184 }
185
186 platform_set_drvdata(pdev, btq);
187
188 return 0;
189 }
190
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51034 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: Loic Poulain <loic.poulain@linaro.org>
Cc: kbuild-all@01.org, marcel@holtmann.org, johan.hedberg@gmail.com,
robh+dt@kernel.org, linux-bluetooth@vger.kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
bjorn.andersson@linaro.org,
Loic Poulain <loic.poulain@linaro.org>
Subject: Re: [PATCH v4 3/3] Bluetooth: btqcomsmd: retieve BD address from DT
Date: Fri, 8 Sep 2017 11:54:07 +0800 [thread overview]
Message-ID: <201709081147.ycxyM39v%fengguang.wu@intel.com> (raw)
In-Reply-To: <1504607164-12645-3-git-send-email-loic.poulain@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 3540 bytes --]
Hi Loic,
[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.13]
[cannot apply to bluetooth-next/master next-20170907]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Loic-Poulain/dt-bindings-soc-qcom-Add-local-bd-address-property-to-WCNSS-BT/20170908-102410
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
drivers//bluetooth/btqcomsmd.c: In function 'btqcomsmd_probe':
>> drivers//bluetooth/btqcomsmd.c:160:3: warning: passing argument 2 of 'baswap' discards 'const' qualifier from pointer target type
baswap(&btq->bdaddr, local_bd_addr);
^
In file included from drivers//bluetooth/btqcomsmd.c:23:0:
include/net/bluetooth/bluetooth.h:236:6: note: expected 'struct bdaddr_t *' but argument is of type 'const struct bdaddr_t *'
void baswap(bdaddr_t *dst, bdaddr_t *src);
^
vim +160 drivers//bluetooth/btqcomsmd.c
128
129 static int btqcomsmd_probe(struct platform_device *pdev)
130 {
131 const bdaddr_t *local_bd_addr;
132 struct btqcomsmd *btq;
133 struct hci_dev *hdev;
134 void *wcnss;
135 int ret;
136
137 btq = devm_kzalloc(&pdev->dev, sizeof(*btq), GFP_KERNEL);
138 if (!btq)
139 return -ENOMEM;
140
141 wcnss = dev_get_drvdata(pdev->dev.parent);
142
143 btq->acl_channel = qcom_wcnss_open_channel(wcnss, "APPS_RIVA_BT_ACL",
144 btqcomsmd_acl_callback, btq);
145 if (IS_ERR(btq->acl_channel))
146 return PTR_ERR(btq->acl_channel);
147
148 btq->cmd_channel = qcom_wcnss_open_channel(wcnss, "APPS_RIVA_BT_CMD",
149 btqcomsmd_cmd_callback, btq);
150 if (IS_ERR(btq->cmd_channel))
151 return PTR_ERR(btq->cmd_channel);
152
153 /* The local-bd-address DT property is usually injected by the
154 * bootloader which has access to the allocated BD address.
155 */
156 local_bd_addr = of_get_property(pdev->dev.of_node, "local-mac-address",
157 &ret);
158 if (local_bd_addr && ret == sizeof(bdaddr_t)) {
159 /* local-bd-address stored with most significant byte first */
> 160 baswap(&btq->bdaddr, local_bd_addr);
161 BT_INFO("BD address %pMR retrieved from device-tree",
162 &btq->bdaddr);
163 }
164
165 hdev = hci_alloc_dev();
166 if (!hdev)
167 return -ENOMEM;
168
169 hci_set_drvdata(hdev, btq);
170 btq->hdev = hdev;
171 SET_HCIDEV_DEV(hdev, &pdev->dev);
172
173 hdev->bus = HCI_SMD;
174 hdev->open = btqcomsmd_open;
175 hdev->close = btqcomsmd_close;
176 hdev->send = btqcomsmd_send;
177 hdev->setup = btqcomsmd_setup;
178 hdev->set_bdaddr = qca_set_bdaddr_rome;
179
180 ret = hci_register_dev(hdev);
181 if (ret < 0) {
182 hci_free_dev(hdev);
183 return ret;
184 }
185
186 platform_set_drvdata(pdev, btq);
187
188 return 0;
189 }
190
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51034 bytes --]
next prev parent reply other threads:[~2017-09-08 3:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 10:26 [PATCH v4 1/3] dt-bindings: soc: qcom: Add local-bd-address property to WCNSS-BT Loic Poulain
2017-09-05 10:26 ` [PATCH v4 2/3] Bluetooth: btqcomsmd: BD address setup Loic Poulain
[not found] ` <1504607164-12645-2-git-send-email-loic.poulain-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-09-05 12:14 ` Marcel Holtmann
2017-09-05 12:14 ` Marcel Holtmann
[not found] ` <1504607164-12645-1-git-send-email-loic.poulain-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-09-05 10:26 ` [PATCH v4 3/3] Bluetooth: btqcomsmd: retieve BD address from DT Loic Poulain
2017-09-05 10:26 ` Loic Poulain
[not found] ` <1504607164-12645-3-git-send-email-loic.poulain-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-09-05 12:13 ` Marcel Holtmann
2017-09-05 12:13 ` Marcel Holtmann
2017-09-08 3:54 ` kbuild test robot [this message]
2017-09-08 3:54 ` kbuild test robot
2017-09-05 11:54 ` [PATCH v4 1/3] dt-bindings: soc: qcom: Add local-bd-address property to WCNSS-BT Marcel Holtmann
2017-09-05 11:54 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201709081147.ycxyM39v%fengguang.wu@intel.com \
--to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=johan.hedberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
--cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=loic.poulain-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.