tree:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-4.19.y
head: 3a10b2060ca30843d9251b80a2e1ca71e68035bd
commit: f66a52d991de7ca6c6dc7db768b50e6a28916d1f [4058/6859] kbuild: clang: choose
GCC_TOOLCHAIN_DIR not on LD
config: powerpc64-randconfig-r001-20201231 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
6b316febb4388764789677f81f03aff373ec35b2)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout f66a52d991de7ca6c6dc7db768b50e6a28916d1f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
^
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:51:
include/linux/netdevice.h:3474:15: warning: comparison of integers of different signs:
'int' and 'unsigned int' [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
~~~~~ ^ ~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/bug.h:77:7: note: expanded from macro 'BUG_ON'
if (x) \
^
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:51:
include/linux/netdevice.h:3785:37: warning: comparison of integers of different signs:
'int' and 'unsigned long' [-Wsign-compare]
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
In file included from include/net/sch_generic.h:16:
In file included from include/net/rtnetlink.h:6:
include/net/netlink.h:358:18: warning: comparison of integers of different signs:
'const __u32' (aka 'const unsigned int') and 'int'
[-Wsign-compare]
nlh->nlmsg_len <= remaining);
~~~~~~~~~~~~~~ ^ ~~~~~~~~~
include/net/netlink.h:395:21: warning: comparison of integers of different signs:
'const __u32' (aka 'const unsigned int') and 'int'
[-Wsign-compare]
if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
include/net/netlink.h:430:21: warning: comparison of integers of different signs:
'const __u32' (aka 'const unsigned int') and 'int'
[-Wsign-compare]
if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
In file included from include/net/sch_generic.h:16:
include/net/rtnetlink.h:25:21: warning: comparison of integers of different signs:
'int' and 'unsigned long' [-Wsign-compare]
if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
include/net/sch_generic.h:387:33: warning: comparison of integers of different signs:
'unsigned long' and 'int' [-Wsign-compare]
BUILD_BUG_ON(sizeof(qcb->data) < sz);
~~~~~~~~~~~~~~~~~ ^ ~~
include/linux/build_bug.h:69:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~
include/linux/build_bug.h:45:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~
include/linux/compiler.h:360:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~
include/linux/compiler.h:348:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:337:18: note: expanded from macro
'__compiletime_assert'
int __cond = !(condition); \
^~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
include/net/sch_generic.h:488:13: warning: comparison of integers of different signs:
'int' and 'const unsigned int' [-Wsign-compare]
return ntx < dev->real_num_tx_queues ?
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
include/net/sch_generic.h:532:15: warning: comparison of integers of different signs:
'u32' (aka 'unsigned int') and 'int' [-Wsign-compare]
return (hwtc < netdev_get_num_tc(dev)) ? hwtc : -EINVAL;
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
include/linux/filter.h:1009:16: warning: comparison of integers of different signs:
'const __u32' (aka 'const unsigned int') and 'int'
[-Wsign-compare]
if (first->k == SKF_AD_OFF + SKF_AD_ALU_XOR_X)
~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
include/net/sock.h:2241:43: warning: comparison of integers of different signs:
'unsigned int' and 'int' [-Wsign-compare]
return refcount_read(&sk->sk_wmem_alloc) < (sk->sk_sndbuf >>
1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
drivers/bluetooth/hci_bcm.c:776:42: warning: missing field 'quirks' initializer
[-Wmissing-field-initializers]
{ "device-wakeup-gpios", &first_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:777:38: warning: missing field 'quirks' initializer
[-Wmissing-field-initializers]
{ "shutdown-gpios", &second_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:778:40: warning: missing field 'quirks' initializer
[-Wmissing-field-initializers]
{ "host-wakeup-gpios", &third_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:783:40: warning: missing field 'quirks' initializer
[-Wmissing-field-initializers]
{ "host-wakeup-gpios", &first_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:784:43: warning: missing field 'quirks' initializer
[-Wmissing-field-initializers]
{ "device-wakeup-gpios", &second_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:785:37: warning: missing field 'quirks' initializer
[-Wmissing-field-initializers]
{ "shutdown-gpios", &third_gpio, 1 },
^
> drivers/bluetooth/hci_bcm.c:775:39: warning: unused variable
'acpi_bcm_int_last_gpios' [-Wunused-const-variable]
static const struct
acpi_gpio_mapping acpi_bcm_int_last_gpios[] = {
^
> drivers/bluetooth/hci_bcm.c:782:39: warning: unused variable
'acpi_bcm_int_first_gpios' [-Wunused-const-variable]
static const struct
acpi_gpio_mapping acpi_bcm_int_first_gpios[] = {
^
33 warnings generated.
Assembler messages:
Fatal error: invalid listing option `6'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
vim +/acpi_bcm_int_last_gpios +775 drivers/bluetooth/hci_bcm.c
89ab37b489d11e2 Daniel Drake 2017-01-05 774
89ab37b489d11e2 Daniel Drake 2017-01-05 @775 static const struct acpi_gpio_mapping
acpi_bcm_int_last_gpios[] = {
9644e6b98cda048 Hans de Goede 2018-03-16 776 { "device-wakeup-gpios",
&first_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 777 { "shutdown-gpios",
&second_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 778 { "host-wakeup-gpios",
&third_gpio, 1 },
89ab37b489d11e2 Daniel Drake 2017-01-05 779 { },
89ab37b489d11e2 Daniel Drake 2017-01-05 780 };
89ab37b489d11e2 Daniel Drake 2017-01-05 781
89ab37b489d11e2 Daniel Drake 2017-01-05 @782 static const struct acpi_gpio_mapping
acpi_bcm_int_first_gpios[] = {
9644e6b98cda048 Hans de Goede 2018-03-16 783 { "host-wakeup-gpios",
&first_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 784 { "device-wakeup-gpios",
&second_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 785 { "shutdown-gpios",
&third_gpio, 1 },
0395ffc1ee0509d Frederic Danis 2015-08-11 786 { },
0395ffc1ee0509d Frederic Danis 2015-08-11 787 };
0395ffc1ee0509d Frederic Danis 2015-08-11 788
:::::: The code at line 775 was first introduced by commit
:::::: 89ab37b489d11e2ec3a70635139dcda076c16354 Bluetooth: hci_bcm: Add support for
BCM2E95 and BCM2E96
:::::: TO: Daniel Drake <drake(a)endlessm.com>
:::::: CC: Marcel Holtmann <marcel(a)holtmann.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org