Re: [RFC,PATCH 3/6] mmc: host: Add UHS-II support in host layer
by kbuild test robot
Hi Ben,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on v5.5-rc2]
[cannot apply to xlnx/master linus/master mmc/mmc-next v5.5-rc4 v5.5-rc3 next-20191220]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Ben-Chuang/Add-support-UHS-II-fo...
base: d1eef1c619749b2a57e514a3fa67d9a516ffa919
config: nds32-randconfig-a001-20191230 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.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
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/mmc/host/sdhci-milbeaut.c: In function 'sdhci_milbeaut_set_power':
drivers/mmc/host/sdhci-milbeaut.c:132:2: error: too few arguments to function 'sdhci_set_power_noreg'
132 | sdhci_set_power_noreg(host, mode, vdd);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/mmc/host/sdhci-pltfm.h:13,
from drivers/mmc/host/sdhci-milbeaut.c:19:
drivers/mmc/host/sdhci.h:1045:13: note: declared here
1045 | extern void sdhci_set_power_noreg(struct sdhci_host *host, unsigned char mode,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/mmc/host/sdhci-milbeaut.c: At top level:
>> drivers/mmc/host/sdhci-milbeaut.c:142:15: error: initialization of 'void (*)(struct sdhci_host *, unsigned char, short unsigned int, short unsigned int)' from incompatible pointer type 'void (*)(struct sdhci_host *, unsigned char, short unsigned int)' [-Werror=incompatible-pointer-types]
142 | .set_power = sdhci_milbeaut_set_power,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/mmc/host/sdhci-milbeaut.c:142:15: note: (near initialization for 'sdhci_milbeaut_ops.set_power')
cc1: some warnings being treated as errors
vim +142 drivers/mmc/host/sdhci-milbeaut.c
dd79b7e367033b Takao Orito 2019-09-10 123
dd79b7e367033b Takao Orito 2019-09-10 124 static void sdhci_milbeaut_set_power(struct sdhci_host *host,
dd79b7e367033b Takao Orito 2019-09-10 125 unsigned char mode, unsigned short vdd)
dd79b7e367033b Takao Orito 2019-09-10 126 {
dd79b7e367033b Takao Orito 2019-09-10 127 if (!IS_ERR(host->mmc->supply.vmmc)) {
dd79b7e367033b Takao Orito 2019-09-10 128 struct mmc_host *mmc = host->mmc;
dd79b7e367033b Takao Orito 2019-09-10 129
dd79b7e367033b Takao Orito 2019-09-10 130 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
dd79b7e367033b Takao Orito 2019-09-10 131 }
dd79b7e367033b Takao Orito 2019-09-10 @132 sdhci_set_power_noreg(host, mode, vdd);
dd79b7e367033b Takao Orito 2019-09-10 133 }
dd79b7e367033b Takao Orito 2019-09-10 134
dd79b7e367033b Takao Orito 2019-09-10 135 static const struct sdhci_ops sdhci_milbeaut_ops = {
dd79b7e367033b Takao Orito 2019-09-10 136 .voltage_switch = sdhci_milbeaut_soft_voltage_switch,
dd79b7e367033b Takao Orito 2019-09-10 137 .get_min_clock = sdhci_milbeaut_get_min_clock,
dd79b7e367033b Takao Orito 2019-09-10 138 .reset = sdhci_milbeaut_reset,
dd79b7e367033b Takao Orito 2019-09-10 139 .set_clock = sdhci_set_clock,
dd79b7e367033b Takao Orito 2019-09-10 140 .set_bus_width = sdhci_set_bus_width,
dd79b7e367033b Takao Orito 2019-09-10 141 .set_uhs_signaling = sdhci_set_uhs_signaling,
dd79b7e367033b Takao Orito 2019-09-10 @142 .set_power = sdhci_milbeaut_set_power,
dd79b7e367033b Takao Orito 2019-09-10 143 };
dd79b7e367033b Takao Orito 2019-09-10 144
:::::: The code at line 142 was first introduced by commit
:::::: dd79b7e367033bacff8ff8c1bd85b2a848cf475d mmc: sdhci-milbeaut: add Milbeaut SD controller driver
:::::: TO: Takao Orito <orito.takao(a)socionext.com>
:::::: CC: Ulf Hansson <ulf.hansson(a)linaro.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
Re: [PATCH 1/2] usb: host: Enable compile testing for some of drivers
by kbuild test robot
Hi Krzysztof,
I love your patch! Yet something to improve:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on char-misc/char-misc-testing v5.5-rc4 next-20191220]
[cannot apply to balbi-usb/next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Krzysztof-Kozlowski/usb-host-Ena...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.5.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
GCC_VERSION=7.5.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/usb/chipidea/host.c:18:0:
drivers/usb/chipidea/../host/ehci.h: In function 'ehci_readl':
>> drivers/usb/chipidea/../host/ehci.h:743:3: error: implicit declaration of function 'readl_be'; did you mean 'readsb'? [-Werror=implicit-function-declaration]
readl_be(regs) :
^~~~~~~~
readsb
drivers/usb/chipidea/../host/ehci.h: In function 'ehci_writel':
>> drivers/usb/chipidea/../host/ehci.h:767:3: error: implicit declaration of function 'writel_be'; did you mean 'writesb'? [-Werror=implicit-function-declaration]
writel_be(val, regs) :
^~~~~~~~~
writesb
cc1: some warnings being treated as errors
--
In file included from drivers/usb/host/ehci-hcd.c:96:0:
drivers/usb/host/ehci.h: In function 'ehci_readl':
>> drivers/usb/host/ehci.h:743:3: error: implicit declaration of function 'readl_be'; did you mean 'readsb'? [-Werror=implicit-function-declaration]
readl_be(regs) :
^~~~~~~~
readsb
drivers/usb/host/ehci.h: In function 'ehci_writel':
>> drivers/usb/host/ehci.h:767:3: error: implicit declaration of function 'writel_be'; did you mean 'writesb'? [-Werror=implicit-function-declaration]
writel_be(val, regs) :
^~~~~~~~~
writesb
cc1: some warnings being treated as errors
vim +743 drivers/usb/chipidea/../host/ehci.h
91bc4d31e81b15 Vladimir Barinov 2007-12-30 737
083522d76662cd Benjamin Herrenschmidt 2006-12-15 738 static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
083522d76662cd Benjamin Herrenschmidt 2006-12-15 739 __u32 __iomem *regs)
083522d76662cd Benjamin Herrenschmidt 2006-12-15 740 {
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 741 #ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
083522d76662cd Benjamin Herrenschmidt 2006-12-15 742 return ehci_big_endian_mmio(ehci) ?
68f50e52554a0a Al Viro 2007-02-09 @743 readl_be(regs) :
68f50e52554a0a Al Viro 2007-02-09 744 readl(regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 745 #else
68f50e52554a0a Al Viro 2007-02-09 746 return readl(regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 747 #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15 748 }
083522d76662cd Benjamin Herrenschmidt 2006-12-15 749
feffe09f510c47 Peter Chen 2014-01-10 750 #ifdef CONFIG_SOC_IMX28
feffe09f510c47 Peter Chen 2014-01-10 751 static inline void imx28_ehci_writel(const unsigned int val,
feffe09f510c47 Peter Chen 2014-01-10 752 volatile __u32 __iomem *addr)
feffe09f510c47 Peter Chen 2014-01-10 753 {
feffe09f510c47 Peter Chen 2014-01-10 754 __asm__ ("swp %0, %0, [%1]" : : "r"(val), "r"(addr));
feffe09f510c47 Peter Chen 2014-01-10 755 }
feffe09f510c47 Peter Chen 2014-01-10 756 #else
feffe09f510c47 Peter Chen 2014-01-10 757 static inline void imx28_ehci_writel(const unsigned int val,
feffe09f510c47 Peter Chen 2014-01-10 758 volatile __u32 __iomem *addr)
feffe09f510c47 Peter Chen 2014-01-10 759 {
feffe09f510c47 Peter Chen 2014-01-10 760 }
feffe09f510c47 Peter Chen 2014-01-10 761 #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15 762 static inline void ehci_writel(const struct ehci_hcd *ehci,
083522d76662cd Benjamin Herrenschmidt 2006-12-15 763 const unsigned int val, __u32 __iomem *regs)
083522d76662cd Benjamin Herrenschmidt 2006-12-15 764 {
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 765 #ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
083522d76662cd Benjamin Herrenschmidt 2006-12-15 766 ehci_big_endian_mmio(ehci) ?
68f50e52554a0a Al Viro 2007-02-09 @767 writel_be(val, regs) :
68f50e52554a0a Al Viro 2007-02-09 768 writel(val, regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 769 #else
feffe09f510c47 Peter Chen 2014-01-10 770 if (ehci->imx28_write_fix)
feffe09f510c47 Peter Chen 2014-01-10 771 imx28_ehci_writel(val, regs);
feffe09f510c47 Peter Chen 2014-01-10 772 else
68f50e52554a0a Al Viro 2007-02-09 773 writel(val, regs);
d728e327d4f86d Benjamin Herrenschmidt 2006-12-28 774 #endif
083522d76662cd Benjamin Herrenschmidt 2006-12-15 775 }
8cd42e97bf451b Kumar Gala 2006-01-20 776
:::::: The code at line 743 was first introduced by commit
:::::: 68f50e52554a0a55dfe2e3fdf659ee0569d73c3f [PATCH] hci_{read,write}l() does force casts to wrong type for no reason
:::::: TO: Al Viro <viro(a)ftp.linux.org.uk>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
Re: [RFC net-next v2] net: dsa: Remove indirect function call for flow dissection
by kbuild test robot
Hi Florian,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
[also build test ERROR on net/master v5.5-rc4]
[cannot apply to ipvs/master next-20191220]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Florian-Fainelli/net-dsa-Remove-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1a1fda57b400160c79287479dc05d8b8b3f7113d
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.5.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
GCC_VERSION=7.5.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> net//dsa/tag_qca.c:99:3: error: 'const struct dsa_device_ops' has no member named 'proto_offset'; did you mean 'proto_off'?
.proto_offset = 0,
^~~~~~~~~~~~
proto_off
vim +99 net//dsa/tag_qca.c
92
93 static const struct dsa_device_ops qca_netdev_ops = {
94 .name = "qca",
95 .proto = DSA_TAG_PROTO_QCA,
96 .xmit = qca_tag_xmit,
97 .rcv = qca_tag_rcv,
98 .overhead = QCA_HDR_LEN,
> 99 .proto_offset = 0,
100 };
101
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[linux-review:UPDATE-20191227-152331/Rocky-Liao/Bluetooth-hci_qca-Add-QCA-Rome-power-off-support-to-the-qca_power_off/20191226-050402 4/4] drivers//bluetooth/hci_qca.c:1346:21: error: assignment to 'void (*)(struct hci_dev *)' from incompatible pointer type 'void (*)(struct hci_uart *)'
by kbuild test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20191227-152331/Rocky-Lia...
head: 09bd19eeb033b7c6f884736777cbddeb1119625b
commit: 09bd19eeb033b7c6f884736777cbddeb1119625b [4/4] Bluetooth: hci_qca: Add HCI command timeout handling
config: openrisc-randconfig-a001-20191230 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 09bd19eeb033b7c6f884736777cbddeb1119625b
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers//bluetooth/hci_qca.c: In function 'qca_setup':
>> drivers//bluetooth/hci_qca.c:1346:21: error: assignment to 'void (*)(struct hci_dev *)' from incompatible pointer type 'void (*)(struct hci_uart *)' [-Werror=incompatible-pointer-types]
1346 | hdev->cmd_timeout = qca_cmd_timeout;
| ^
drivers//bluetooth/hci_qca.c:1347:6: error: 'struct qca_data' has no member named 'cmd_timeout_cnt'
1347 | qca->cmd_timeout_cnt = 0;
| ^~
In file included from drivers//bluetooth/hci_qca.c:33:
drivers//bluetooth/hci_qca.c: In function 'qca_cmd_timeout':
drivers//bluetooth/hci_qca.c:1504:54: error: 'struct qca_data' has no member named 'cmd_timeout_cnt'
1504 | BT_ERR("hu %p hci cmd timeout count=0x%x", hu, ++qca->cmd_timeout_cnt);
| ^~
include/net/bluetooth/bluetooth.h:138:45: note: in definition of macro 'BT_ERR'
138 | #define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers//bluetooth/hci_qca.c:1506:9: error: 'struct qca_data' has no member named 'cmd_timeout_cnt'
1506 | if (qca->cmd_timeout_cnt >= QCA_MAX_CMD_TIMEOUT_COUNT)
| ^~
cc1: some warnings being treated as errors
vim +1346 drivers//bluetooth/hci_qca.c
1264
1265 static int qca_setup(struct hci_uart *hu)
1266 {
1267 struct hci_dev *hdev = hu->hdev;
1268 struct qca_data *qca = hu->priv;
1269 struct qca_serdev *qcadev;
1270 unsigned int speed, qca_baudrate = QCA_BAUDRATE_115200;
1271 unsigned int init_retry_count = 0;
1272 enum qca_btsoc_type soc_type = qca_soc_type(hu);
1273 const char *firmware_name = qca_get_firmware_name(hu);
1274 int ret;
1275 int soc_ver = 0;
1276
1277 ret = qca_check_speeds(hu);
1278 if (ret)
1279 return ret;
1280
1281 /* Patch downloading has to be done without IBS mode */
1282 clear_bit(QCA_IBS_ENABLED, &qca->flags);
1283
1284 /* Enable controller to do both LE scan and BR/EDR inquiry
1285 * simultaneously.
1286 */
1287 set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
1288
1289 retry:
1290 if (qca_is_wcn399x(soc_type)) {
1291 bt_dev_info(hdev, "setting up wcn3990");
1292
1293 /* Enable NON_PERSISTENT_SETUP QUIRK to ensure to execute
1294 * setup for every hci up.
1295 */
1296 set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
1297 set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
1298 hu->hdev->shutdown = qca_power_off;
1299 ret = qca_wcn3990_init(hu);
1300 if (ret)
1301 return ret;
1302
1303 ret = qca_read_soc_version(hdev, &soc_ver, soc_type);
1304 if (ret)
1305 return ret;
1306 } else {
1307 bt_dev_info(hdev, "ROME setup");
1308 if (hu->serdev) {
1309 /* Enable NON_PERSISTENT_SETUP QUIRK to ensure to
1310 * execute setup for every hci up.
1311 */
1312 set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
1313 hu->hdev->shutdown = qca_power_off;
1314 qcadev = serdev_device_get_drvdata(hu->serdev);
1315 gpiod_set_value_cansleep(qcadev->bt_en, 1);
1316 /* Controller needs time to bootup. */
1317 msleep(150);
1318 }
1319 qca_set_speed(hu, QCA_INIT_SPEED);
1320 }
1321
1322 /* Setup user speed if needed */
1323 speed = qca_get_speed(hu, QCA_OPER_SPEED);
1324 if (speed) {
1325 ret = qca_set_speed(hu, QCA_OPER_SPEED);
1326 if (ret)
1327 return ret;
1328
1329 qca_baudrate = qca_get_baudrate_value(speed);
1330 }
1331
1332 if (!qca_is_wcn399x(soc_type)) {
1333 /* Get QCA version information */
1334 ret = qca_read_soc_version(hdev, &soc_ver, soc_type);
1335 if (ret)
1336 return ret;
1337 }
1338
1339 bt_dev_info(hdev, "QCA controller version 0x%08x", soc_ver);
1340 /* Setup patch / NVM configurations */
1341 ret = qca_uart_setup(hdev, qca_baudrate, soc_type, soc_ver,
1342 firmware_name);
1343 if (!ret) {
1344 set_bit(QCA_IBS_ENABLED, &qca->flags);
1345 qca_debugfs_init(hdev);
> 1346 hdev->cmd_timeout = qca_cmd_timeout;
1347 qca->cmd_timeout_cnt = 0;
1348 } else if (ret == -ENOENT) {
1349 /* No patch/nvm-config found, run with original fw/config */
1350 ret = 0;
1351 } else if (ret == -EAGAIN) {
1352 /*
1353 * Userspace firmware loader will return -EAGAIN in case no
1354 * patch/nvm-config is found, so run with original fw/config.
1355 */
1356 ret = 0;
1357 } else {
1358 if (init_retry_count < QCA_MAX_INIT_RETRY_COUNT) {
1359 qca_power_off(hdev);
1360 if (hu->serdev) {
1361 serdev_device_close(hu->serdev);
1362 ret = serdev_device_open(hu->serdev);
1363 if (ret) {
1364 bt_dev_err(hu->hdev, "open port fail");
1365 return ret;
1366 }
1367 }
1368 init_retry_count++;
1369 goto retry;
1370 }
1371 }
1372
1373 /* Setup bdaddr */
1374 if (qca_is_wcn399x(soc_type))
1375 hu->hdev->set_bdaddr = qca_set_bdaddr;
1376 else
1377 hu->hdev->set_bdaddr = qca_set_bdaddr_rome;
1378
1379 return ret;
1380 }
1381
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
Re: [PATCH] tcp: Fix tcp_max_syn_backlog limit on connection requests
by kbuild test robot
Hi Ttttabcd,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net/master]
[also build test WARNING on net-next/master ipvs/master v5.5-rc4 next-20191220]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Ttttabcd/tcp-Fix-tcp_max_syn_bac...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git bb3d0b8bf5be61ab1d6f472c43cbf34de17e796b
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-129-g341daf20-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/ipv4/tcp_input.c:6568:27: sparse: sparse: incompatible types in comparison expression (different signedness):
>> net/ipv4/tcp_input.c:6568:27: sparse: int *
>> net/ipv4/tcp_input.c:6568:27: sparse: unsigned int *
net/ipv4/tcp_input.c:6673:17: sparse: sparse: context imbalance in 'tcp_conn_request' - unexpected unlock
vim +6568 net/ipv4/tcp_input.c
6551
6552 int tcp_conn_request(struct request_sock_ops *rsk_ops,
6553 const struct tcp_request_sock_ops *af_ops,
6554 struct sock *sk, struct sk_buff *skb)
6555 {
6556 struct tcp_fastopen_cookie foc = { .len = -1 };
6557 __u32 isn = TCP_SKB_CB(skb)->tcp_tw_isn;
6558 struct tcp_options_received tmp_opt;
6559 struct tcp_sock *tp = tcp_sk(sk);
6560 struct net *net = sock_net(sk);
6561 struct sock *fastopen_sk = NULL;
6562 struct request_sock *req;
6563 bool want_cookie = false;
6564 struct dst_entry *dst;
6565 int max_syn_backlog;
6566 struct flowi fl;
6567
> 6568 max_syn_backlog = min(net->ipv4.sysctl_max_syn_backlog,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[linux-review:UPDATE-20191227-152331/Rocky-Liao/Bluetooth-hci_qca-Add-QCA-Rome-power-off-support-to-the-qca_power_off/20191226-050402 4/4] drivers/bluetooth/hci_qca.c:1346:21: error: assignment from incompatible pointer type
by kbuild test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20191227-152331/Rocky-Lia...
head: 09bd19eeb033b7c6f884736777cbddeb1119625b
commit: 09bd19eeb033b7c6f884736777cbddeb1119625b [4/4] Bluetooth: hci_qca: Add HCI command timeout handling
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 09bd19eeb033b7c6f884736777cbddeb1119625b
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/bluetooth/hci_qca.c: In function 'qca_setup':
>> drivers/bluetooth/hci_qca.c:1346:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
hdev->cmd_timeout = qca_cmd_timeout;
^
>> drivers/bluetooth/hci_qca.c:1347:6: error: 'struct qca_data' has no member named 'cmd_timeout_cnt'
qca->cmd_timeout_cnt = 0;
^~
In file included from drivers/bluetooth/hci_qca.c:33:0:
drivers/bluetooth/hci_qca.c: In function 'qca_cmd_timeout':
drivers/bluetooth/hci_qca.c:1504:54: error: 'struct qca_data' has no member named 'cmd_timeout_cnt'
BT_ERR("hu %p hci cmd timeout count=0x%x", hu, ++qca->cmd_timeout_cnt);
^
include/net/bluetooth/bluetooth.h:138:45: note: in definition of macro 'BT_ERR'
#define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
^~~~~~~~~~~
drivers/bluetooth/hci_qca.c:1506:9: error: 'struct qca_data' has no member named 'cmd_timeout_cnt'
if (qca->cmd_timeout_cnt >= QCA_MAX_CMD_TIMEOUT_COUNT)
^~
cc1: some warnings being treated as errors
vim +1346 drivers/bluetooth/hci_qca.c
1264
1265 static int qca_setup(struct hci_uart *hu)
1266 {
1267 struct hci_dev *hdev = hu->hdev;
1268 struct qca_data *qca = hu->priv;
1269 struct qca_serdev *qcadev;
1270 unsigned int speed, qca_baudrate = QCA_BAUDRATE_115200;
1271 unsigned int init_retry_count = 0;
1272 enum qca_btsoc_type soc_type = qca_soc_type(hu);
1273 const char *firmware_name = qca_get_firmware_name(hu);
1274 int ret;
1275 int soc_ver = 0;
1276
1277 ret = qca_check_speeds(hu);
1278 if (ret)
1279 return ret;
1280
1281 /* Patch downloading has to be done without IBS mode */
1282 clear_bit(QCA_IBS_ENABLED, &qca->flags);
1283
1284 /* Enable controller to do both LE scan and BR/EDR inquiry
1285 * simultaneously.
1286 */
1287 set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
1288
1289 retry:
1290 if (qca_is_wcn399x(soc_type)) {
1291 bt_dev_info(hdev, "setting up wcn3990");
1292
1293 /* Enable NON_PERSISTENT_SETUP QUIRK to ensure to execute
1294 * setup for every hci up.
1295 */
1296 set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
1297 set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
1298 hu->hdev->shutdown = qca_power_off;
1299 ret = qca_wcn3990_init(hu);
1300 if (ret)
1301 return ret;
1302
1303 ret = qca_read_soc_version(hdev, &soc_ver, soc_type);
1304 if (ret)
1305 return ret;
1306 } else {
1307 bt_dev_info(hdev, "ROME setup");
1308 if (hu->serdev) {
1309 /* Enable NON_PERSISTENT_SETUP QUIRK to ensure to
1310 * execute setup for every hci up.
1311 */
1312 set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks);
1313 hu->hdev->shutdown = qca_power_off;
1314 qcadev = serdev_device_get_drvdata(hu->serdev);
1315 gpiod_set_value_cansleep(qcadev->bt_en, 1);
1316 /* Controller needs time to bootup. */
1317 msleep(150);
1318 }
1319 qca_set_speed(hu, QCA_INIT_SPEED);
1320 }
1321
1322 /* Setup user speed if needed */
1323 speed = qca_get_speed(hu, QCA_OPER_SPEED);
1324 if (speed) {
1325 ret = qca_set_speed(hu, QCA_OPER_SPEED);
1326 if (ret)
1327 return ret;
1328
1329 qca_baudrate = qca_get_baudrate_value(speed);
1330 }
1331
1332 if (!qca_is_wcn399x(soc_type)) {
1333 /* Get QCA version information */
1334 ret = qca_read_soc_version(hdev, &soc_ver, soc_type);
1335 if (ret)
1336 return ret;
1337 }
1338
1339 bt_dev_info(hdev, "QCA controller version 0x%08x", soc_ver);
1340 /* Setup patch / NVM configurations */
1341 ret = qca_uart_setup(hdev, qca_baudrate, soc_type, soc_ver,
1342 firmware_name);
1343 if (!ret) {
1344 set_bit(QCA_IBS_ENABLED, &qca->flags);
1345 qca_debugfs_init(hdev);
> 1346 hdev->cmd_timeout = qca_cmd_timeout;
> 1347 qca->cmd_timeout_cnt = 0;
1348 } else if (ret == -ENOENT) {
1349 /* No patch/nvm-config found, run with original fw/config */
1350 ret = 0;
1351 } else if (ret == -EAGAIN) {
1352 /*
1353 * Userspace firmware loader will return -EAGAIN in case no
1354 * patch/nvm-config is found, so run with original fw/config.
1355 */
1356 ret = 0;
1357 } else {
1358 if (init_retry_count < QCA_MAX_INIT_RETRY_COUNT) {
1359 qca_power_off(hdev);
1360 if (hu->serdev) {
1361 serdev_device_close(hu->serdev);
1362 ret = serdev_device_open(hu->serdev);
1363 if (ret) {
1364 bt_dev_err(hu->hdev, "open port fail");
1365 return ret;
1366 }
1367 }
1368 init_retry_count++;
1369 goto retry;
1370 }
1371 }
1372
1373 /* Setup bdaddr */
1374 if (qca_is_wcn399x(soc_type))
1375 hu->hdev->set_bdaddr = qca_set_bdaddr;
1376 else
1377 hu->hdev->set_bdaddr = qca_set_bdaddr_rome;
1378
1379 return ret;
1380 }
1381
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[mbroz-linux:dm-cryptsetup 1/1] drivers/md/dm-crypt.c:786:44: sparse: sparse: restricted __le32 degrades to integer
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mbroz/linux.git dm-cryptsetup
head: 143a1bb5cdc03325e4fbfbdb8d4fb96bafa830ee
commit: 143a1bb5cdc03325e4fbfbdb8d4fb96bafa830ee [1/1] dm-crypt: Implement Elephant diffuser for Bitlocker compatibility
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-129-g341daf20-dirty
git checkout 143a1bb5cdc03325e4fbfbdb8d4fb96bafa830ee
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/md/dm-crypt.c:786:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:786:57: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:786:35: sparse: sparse: restricted __le32 degrades to integer
>> drivers/md/dm-crypt.c:786:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:792:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:798:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:798:58: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:798:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:798:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:801:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:817:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:820:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:820:58: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:820:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:820:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:826:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:832:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:832:57: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:832:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:832:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:848:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:851:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:851:58: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:851:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:851:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:857:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:863:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:863:58: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:863:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:863:31: sparse: sparse: bad assignment (+=) to restricted __le32
drivers/md/dm-crypt.c:879:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:879:58: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:879:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:879:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:885:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:891:44: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:891:58: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:891:35: sparse: sparse: restricted __le32 degrades to integer
drivers/md/dm-crypt.c:891:31: sparse: sparse: bad assignment (-=) to restricted __le32
drivers/md/dm-crypt.c:894:31: sparse: sparse: bad assignment (-=) to restricted __le32
vim +786 drivers/md/dm-crypt.c
775
776 static void diffuser_a_decrypt(__le32 *d, size_t n)
777 {
778 int i, i1, i2, i3;
779
780 for (i = 0; i < 5; i++) {
781 i1 = 0;
782 i2 = n - 2;
783 i3 = n - 5;
784
785 while (i1 < (n - 1)) {
> 786 d[i1] += d[i2] ^ (d[i3] << 9 | d[i3] >> 23);
787 i1++; i2++; i3++;
788
789 if (i3 >= n)
790 i3 -= n;
791
792 d[i1] += d[i2] ^ d[i3];
793 i1++; i2++; i3++;
794
795 if (i2 >= n)
796 i2 -= n;
797
798 d[i1] += d[i2] ^ (d[i3] << 13 | d[i3] >> 19);
799 i1++; i2++; i3++;
800
801 d[i1] += d[i2] ^ d[i3];
802 i1++; i2++; i3++;
803 }
804 }
805 }
806
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months