lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAKwvOdn978FV_FmikQXjMwKYZi_OUXw_f3t56NnMXHiawXDOzw@mail.gmail.com>
Date:   Tue, 5 Jan 2021 11:37:55 -0800
From:   Nick Desaulniers <ndesaulniers@...gle.com>
To:     kernel test robot <lkp@...el.com>
Cc:     Nicolas Pitre <npitre@...libre.com>, kbuild-all@...ts.01.org,
        clang-built-linux <clang-built-linux@...glegroups.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Boris Brezillon <bbrezillon@...nel.org>
Subject: Re: drivers/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute
 declaration must precede definition

Fix already applied:
https://lore.kernel.org/lkml/160943653614.132002.12499200411415721355.b4-ty@bootlin.com/

On Sat, Dec 26, 2020 at 5:29 PM kernel test robot <lkp@...el.com> wrote:
>
> Hi Nicolas,
>
> FYI, the error/warning still remains.
>
> 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: arm-randconfig-r011-20201220 (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 arm cross compiling tool for clang build
>         # apt-get install binutils-arm-linux-gnueabi
>         # 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=arm
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.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
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@...glegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202012270950.HNbQuTpw-lkp%40intel.com.



-- 
Thanks,
~Nick Desaulniers

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ