All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sid Manning <sidneym@codeaurora.org>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Brian Cain <bcain@codeaurora.org>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: [linux-stable-rc:linux-5.10.y 3/1438] drivers/bluetooth/hci_ll.c:768:34: warning: unused variable 'hci_ti_of_match'
Date: Wed, 4 Aug 2021 12:30:27 +0800	[thread overview]
Message-ID: <202108041216.K83eWp32-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3911 bytes --]

Hi Sid,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head:   f9063e43ccbb353c5b2cafe59c6b9534aa7ddc14
commit: 243f325ecc902c9936d1edb838454f4a4dd75034 [3/1438] Hexagon: fix build errors
config: hexagon-buildonly-randconfig-r004-20210804 (attached as .config)
compiler: clang version 12.0.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=243f325ecc902c9936d1edb838454f4a4dd75034
        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-5.10.y
        git checkout 243f325ecc902c9936d1edb838454f4a4dd75034
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/bluetooth/hci_ll.c:768:34: warning: unused variable 'hci_ti_of_match' [-Wunused-const-variable]
   static const struct of_device_id hci_ti_of_match[] = {
                                    ^
   1 warning generated.
--
>> net/bluetooth/hci_core.c:2109:26: warning: result of comparison of constant 65536 with expression of type '__u16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
           if (!dev_num || dev_num > (PAGE_SIZE * 2) / sizeof(*dr))
                           ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_SOC_MAX98357A
   Depends on SOUND && !UML && SND && SND_SOC && GPIOLIB
   Selected by
   - SND_SOC_STORM && SOUND && !UML && SND && SND_SOC && SND_SOC_QCOM


vim +/hci_ti_of_match +768 drivers/bluetooth/hci_ll.c

371805522f8709 Rob Herring       2017-04-13  767  
371805522f8709 Rob Herring       2017-04-13 @768  static const struct of_device_id hci_ti_of_match[] = {
4166493c97c0c7 David Lechner     2017-12-12  769  	{ .compatible = "ti,cc2560" },
c127a871357b8d Sebastian Reichel 2017-06-08  770  	{ .compatible = "ti,wl1271-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  771  	{ .compatible = "ti,wl1273-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  772  	{ .compatible = "ti,wl1281-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  773  	{ .compatible = "ti,wl1283-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  774  	{ .compatible = "ti,wl1285-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  775  	{ .compatible = "ti,wl1801-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  776  	{ .compatible = "ti,wl1805-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  777  	{ .compatible = "ti,wl1807-st" },
371805522f8709 Rob Herring       2017-04-13  778  	{ .compatible = "ti,wl1831-st" },
371805522f8709 Rob Herring       2017-04-13  779  	{ .compatible = "ti,wl1835-st" },
371805522f8709 Rob Herring       2017-04-13  780  	{ .compatible = "ti,wl1837-st" },
371805522f8709 Rob Herring       2017-04-13  781  	{},
371805522f8709 Rob Herring       2017-04-13  782  };
371805522f8709 Rob Herring       2017-04-13  783  MODULE_DEVICE_TABLE(of, hci_ti_of_match);
371805522f8709 Rob Herring       2017-04-13  784  

:::::: The code at line 768 was first introduced by commit
:::::: 371805522f870986144fcd88727a47858e364a2c bluetooth: hci_uart: add LL protocol serdev driver support

:::::: TO: Rob Herring <robh@kernel.org>
:::::: CC: Marcel Holtmann <marcel@holtmann.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26415 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-stable-rc:linux-5.10.y 3/1438] drivers/bluetooth/hci_ll.c:768:34: warning: unused variable 'hci_ti_of_match'
Date: Wed, 04 Aug 2021 12:30:27 +0800	[thread overview]
Message-ID: <202108041216.K83eWp32-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3984 bytes --]

Hi Sid,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head:   f9063e43ccbb353c5b2cafe59c6b9534aa7ddc14
commit: 243f325ecc902c9936d1edb838454f4a4dd75034 [3/1438] Hexagon: fix build errors
config: hexagon-buildonly-randconfig-r004-20210804 (attached as .config)
compiler: clang version 12.0.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=243f325ecc902c9936d1edb838454f4a4dd75034
        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-5.10.y
        git checkout 243f325ecc902c9936d1edb838454f4a4dd75034
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/bluetooth/hci_ll.c:768:34: warning: unused variable 'hci_ti_of_match' [-Wunused-const-variable]
   static const struct of_device_id hci_ti_of_match[] = {
                                    ^
   1 warning generated.
--
>> net/bluetooth/hci_core.c:2109:26: warning: result of comparison of constant 65536 with expression of type '__u16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
           if (!dev_num || dev_num > (PAGE_SIZE * 2) / sizeof(*dr))
                           ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_SOC_MAX98357A
   Depends on SOUND && !UML && SND && SND_SOC && GPIOLIB
   Selected by
   - SND_SOC_STORM && SOUND && !UML && SND && SND_SOC && SND_SOC_QCOM


vim +/hci_ti_of_match +768 drivers/bluetooth/hci_ll.c

371805522f8709 Rob Herring       2017-04-13  767  
371805522f8709 Rob Herring       2017-04-13 @768  static const struct of_device_id hci_ti_of_match[] = {
4166493c97c0c7 David Lechner     2017-12-12  769  	{ .compatible = "ti,cc2560" },
c127a871357b8d Sebastian Reichel 2017-06-08  770  	{ .compatible = "ti,wl1271-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  771  	{ .compatible = "ti,wl1273-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  772  	{ .compatible = "ti,wl1281-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  773  	{ .compatible = "ti,wl1283-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  774  	{ .compatible = "ti,wl1285-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  775  	{ .compatible = "ti,wl1801-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  776  	{ .compatible = "ti,wl1805-st" },
c127a871357b8d Sebastian Reichel 2017-06-08  777  	{ .compatible = "ti,wl1807-st" },
371805522f8709 Rob Herring       2017-04-13  778  	{ .compatible = "ti,wl1831-st" },
371805522f8709 Rob Herring       2017-04-13  779  	{ .compatible = "ti,wl1835-st" },
371805522f8709 Rob Herring       2017-04-13  780  	{ .compatible = "ti,wl1837-st" },
371805522f8709 Rob Herring       2017-04-13  781  	{},
371805522f8709 Rob Herring       2017-04-13  782  };
371805522f8709 Rob Herring       2017-04-13  783  MODULE_DEVICE_TABLE(of, hci_ti_of_match);
371805522f8709 Rob Herring       2017-04-13  784  

:::::: The code at line 768 was first introduced by commit
:::::: 371805522f870986144fcd88727a47858e364a2c bluetooth: hci_uart: add LL protocol serdev driver support

:::::: TO: Rob Herring <robh@kernel.org>
:::::: CC: Marcel Holtmann <marcel@holtmann.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26415 bytes --]

             reply	other threads:[~2021-08-04  4:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  4:30 kernel test robot [this message]
2021-08-04  4:30 ` [linux-stable-rc:linux-5.10.y 3/1438] drivers/bluetooth/hci_ll.c:768:34: warning: unused variable 'hci_ti_of_match' kernel test robot

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=202108041216.K83eWp32-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bcain@codeaurora.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=sidneym@codeaurora.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.