All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject
Date: Sun, 14 Nov 2021 10:10:27 +0000	[thread overview]
Message-ID: <0b7463e699956abb0f8b0da7a9254500@kernel.org> (raw)
In-Reply-To: <202111141650.o5b2LSZU-lkp@intel.com>

On 2021-11-14 08:25, kernel test robot wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
> hack/m1-pmu
> head:   a905c66ae0b391425e9ad7f261ad7b4c33af2c07
> commit: a905c66ae0b391425e9ad7f261ad7b4c33af2c07 [8/8] drivers/perf:
> Add Apple icestorm/firestorm CPU PMU driver
> config: arm64-randconfig-r036-20211114 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project
> c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
> 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 arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         #
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=a905c66ae0b391425e9ad7f261ad7b4c33af2c07
>         git remote add arm-platforms
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
>         git fetch --no-tags arm-platforms hack/m1-pmu
>         git checkout a905c66ae0b391425e9ad7f261ad7b4c33af2c07
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1
> ARCH=arm64
> 
> 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/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer 
>>> overrides prior initialization of this subobject 
>>> [-Winitializer-overrides]
>            [M1_PMU_PERFCTR_UNKNOWN_01]     = BIT(7),
>                                              ^~~~~~
>    include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
>    #define BIT(nr)                 (UL(1) << (nr))
>                                    ^~~~~~~~~~~~~~~
>    drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization 
> is here
>            [0 ... M1_PMU_PERFCTR_LAST]     = ANY_BUT_0_1,
>                                              ^~~~~~~~~~~

Oh please, not that thing again. I've commented on this many times,
and this warning is just bogus. Initialisation override is a necessity,
and working around this warning leads to something that is far less
maintainable, and thus more *dangerous* than this.

I really wish this warning was simply turned off, because it only
leads to the robot emails to be ignored do to the number of false 
positives.

         M.
-- 
Jazz is not dead. It just smells funny...

WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <maz@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject
Date: Sun, 14 Nov 2021 10:10:27 +0000	[thread overview]
Message-ID: <0b7463e699956abb0f8b0da7a9254500@kernel.org> (raw)
In-Reply-To: <202111141650.o5b2LSZU-lkp@intel.com>

On 2021-11-14 08:25, kernel test robot wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
> hack/m1-pmu
> head:   a905c66ae0b391425e9ad7f261ad7b4c33af2c07
> commit: a905c66ae0b391425e9ad7f261ad7b4c33af2c07 [8/8] drivers/perf:
> Add Apple icestorm/firestorm CPU PMU driver
> config: arm64-randconfig-r036-20211114 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project
> c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
> 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 arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         #
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=a905c66ae0b391425e9ad7f261ad7b4c33af2c07
>         git remote add arm-platforms
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
>         git fetch --no-tags arm-platforms hack/m1-pmu
>         git checkout a905c66ae0b391425e9ad7f261ad7b4c33af2c07
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1
> ARCH=arm64
> 
> 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/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer 
>>> overrides prior initialization of this subobject 
>>> [-Winitializer-overrides]
>            [M1_PMU_PERFCTR_UNKNOWN_01]     = BIT(7),
>                                              ^~~~~~
>    include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
>    #define BIT(nr)                 (UL(1) << (nr))
>                                    ^~~~~~~~~~~~~~~
>    drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization 
> is here
>            [0 ... M1_PMU_PERFCTR_LAST]     = ANY_BUT_0_1,
>                                              ^~~~~~~~~~~

Oh please, not that thing again. I've commented on this many times,
and this warning is just bogus. Initialisation override is a necessity,
and working around this warning leads to something that is far less
maintainable, and thus more *dangerous* than this.

I really wish this warning was simply turned off, because it only
leads to the robot emails to be ignored do to the number of false 
positives.

         M.
-- 
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <maz@kernel.org>
To: kbuild-all@lists.01.org
Subject: Re: [arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject
Date: Sun, 14 Nov 2021 10:10:27 +0000	[thread overview]
Message-ID: <0b7463e699956abb0f8b0da7a9254500@kernel.org> (raw)
In-Reply-To: <202111141650.o5b2LSZU-lkp@intel.com>

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

On 2021-11-14 08:25, kernel test robot wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
> hack/m1-pmu
> head:   a905c66ae0b391425e9ad7f261ad7b4c33af2c07
> commit: a905c66ae0b391425e9ad7f261ad7b4c33af2c07 [8/8] drivers/perf:
> Add Apple icestorm/firestorm CPU PMU driver
> config: arm64-randconfig-r036-20211114 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project
> c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
> 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 arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         #
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=a905c66ae0b391425e9ad7f261ad7b4c33af2c07
>         git remote add arm-platforms
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
>         git fetch --no-tags arm-platforms hack/m1-pmu
>         git checkout a905c66ae0b391425e9ad7f261ad7b4c33af2c07
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1
> ARCH=arm64
> 
> 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/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer 
>>> overrides prior initialization of this subobject 
>>> [-Winitializer-overrides]
>            [M1_PMU_PERFCTR_UNKNOWN_01]     = BIT(7),
>                                              ^~~~~~
>    include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
>    #define BIT(nr)                 (UL(1) << (nr))
>                                    ^~~~~~~~~~~~~~~
>    drivers/perf/apple_m1_cpu_pmu.c:99:32: note: previous initialization 
> is here
>            [0 ... M1_PMU_PERFCTR_LAST]     = ANY_BUT_0_1,
>                                              ^~~~~~~~~~~

Oh please, not that thing again. I've commented on this many times,
and this warning is just bogus. Initialisation override is a necessity,
and working around this warning leads to something that is far less
maintainable, and thus more *dangerous* than this.

I really wish this warning was simply turned off, because it only
leads to the robot emails to be ignored do to the number of false 
positives.

         M.
-- 
Jazz is not dead. It just smells funny...

  reply	other threads:[~2021-11-14 10:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14  8:25 [arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject kernel test robot
2021-11-14  8:25 ` kernel test robot
2021-11-14  8:25 ` kernel test robot
2021-11-14 10:10 ` Marc Zyngier [this message]
2021-11-14 10:10   ` Marc Zyngier
2021-11-14 10:10   ` Marc Zyngier
2021-11-14 11:07   ` Ard Biesheuvel
2021-11-14 11:07     ` Ard Biesheuvel
2021-11-14 11:07     ` Ard Biesheuvel
2021-11-14 12:24     ` Miguel Ojeda
2021-11-14 12:24       ` Miguel Ojeda
2021-11-14 12:24       ` Miguel Ojeda
2021-11-14 21:42       ` Nathan Chancellor
2021-11-14 21:42         ` Nathan Chancellor
2021-11-14 21:42         ` Nathan Chancellor

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=0b7463e699956abb0f8b0da7a9254500@kernel.org \
    --to=maz@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    /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.