All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute declaration must precede definition
Date: Sun, 27 Dec 2020 05:31:58 +0800	[thread overview]
Message-ID: <202012270553.exjchmGL-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f838f8d2b694cf9d524dc4423e9dd2db13892f3f
commit: 95393f3e07ab53855b91881692a4a5b52dcdc03c i3c/master/mipi-i3c-hci: quiet maybe-unused variable warning
date:   10 days ago
config: x86_64-randconfig-r025-20201221 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=95393f3e07ab53855b91881692a4a5b52dcdc03c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 95393f3e07ab53855b91881692a4a5b52dcdc03c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute declaration must precede definition [-Wignored-attributes]
   static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
                       ^
   include/linux/compiler_attributes.h:267:56: note: expanded from macro '__maybe_unused'
   #define __maybe_unused                  __attribute__((__unused__))
                                                          ^
   include/linux/mod_devicetable.h:262:8: note: previous definition is here
   struct of_device_id {
          ^
   drivers/i3c/master/mipi-i3c-hci/core.c:780:49: warning: unused variable 'i3c_hci_of_match' [-Wunused-const-variable]
   static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
                                                   ^
   2 warnings generated.


vim +780 drivers/i3c/master/mipi-i3c-hci/core.c

   779	
 > 780	static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
   781		{ .compatible = "mipi-i3c-hci", },
   782		{},
   783	};
   784	MODULE_DEVICE_TABLE(of, i3c_hci_of_match);
   785	

---
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: 31406 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Nicolas Pitre <npitre@baylibre.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org,
	Boris Brezillon <bbrezillon@kernel.org>
Subject: drivers/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute declaration must precede definition
Date: Sun, 27 Dec 2020 05:31:58 +0800	[thread overview]
Message-ID: <202012270553.exjchmGL-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f838f8d2b694cf9d524dc4423e9dd2db13892f3f
commit: 95393f3e07ab53855b91881692a4a5b52dcdc03c i3c/master/mipi-i3c-hci: quiet maybe-unused variable warning
date:   10 days ago
config: x86_64-randconfig-r025-20201221 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=95393f3e07ab53855b91881692a4a5b52dcdc03c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 95393f3e07ab53855b91881692a4a5b52dcdc03c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute declaration must precede definition [-Wignored-attributes]
   static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
                       ^
   include/linux/compiler_attributes.h:267:56: note: expanded from macro '__maybe_unused'
   #define __maybe_unused                  __attribute__((__unused__))
                                                          ^
   include/linux/mod_devicetable.h:262:8: note: previous definition is here
   struct of_device_id {
          ^
   drivers/i3c/master/mipi-i3c-hci/core.c:780:49: warning: unused variable 'i3c_hci_of_match' [-Wunused-const-variable]
   static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
                                                   ^
   2 warnings generated.


vim +780 drivers/i3c/master/mipi-i3c-hci/core.c

   779	
 > 780	static const struct __maybe_unused of_device_id i3c_hci_of_match[] = {
   781		{ .compatible = "mipi-i3c-hci", },
   782		{},
   783	};
   784	MODULE_DEVICE_TABLE(of, i3c_hci_of_match);
   785	

---
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: 31406 bytes --]

             reply	other threads:[~2020-12-26 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-26 21:31 kernel test robot [this message]
2020-12-26 21:31 ` drivers/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute declaration must precede definition kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-12-27  1:28 kernel test robot
2020-12-27  1:28 ` kernel test robot
2021-01-05 19:37 ` Nick Desaulniers
2021-01-05 19:37   ` Nick Desaulniers

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=202012270553.exjchmGL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.