public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Ilkka Koskinen <ilkka@os.amperecomputing.com>
To: Will Deacon <will@kernel.org>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
	 Ilkka Koskinen <ilkka@os.amperecomputing.com>,
	oe-kbuild@lists.linux.dev,  lkp@intel.com,
	oe-kbuild-all@lists.linux.dev,
	 linux-arm-kernel@lists.infradead.org
Subject: Re: [arm64:for-next/perf 5/28] drivers/perf/dwc_pcie_pmu.c:418 dwc_pcie_pmu_validate_group() error: uninitialized symbol 'time_event'.
Date: Tue, 23 Sep 2025 14:16:27 -0700 (PDT)	[thread overview]
Message-ID: <5c1ca3a3-6de-6631-a18-abc55a702862@os.amperecomputing.com> (raw)
In-Reply-To: <aNJjQkj70kCArFf1@willie-the-truck>


On Tue, 23 Sep 2025, Will Deacon wrote:
> On Tue, Sep 23, 2025 at 09:35:18AM +0100, Will Deacon wrote:
>> On Tue, Sep 23, 2025 at 11:27:21AM +0300, Dan Carpenter wrote:
>>> On Tue, Sep 23, 2025 at 12:55:01AM -0700, Ilkka Koskinen wrote:
>>>> That's cleary a bug and I don't know how I missed it.
>>>
>>> Because we disabled uninitialized variable warnings for GCC and because
>>> everyone has CONFIG_INIT_STACK_ALL_ZERO set so it wouldn't show up in
>>> testing either.
>>
>> The more annoying thing is that I run smatch on my tree before pushing
>> but somehow I didn't notice this. I'll run it again to see whether it
>> detected it in the first place...
>
> bah, there it is:
>
> +drivers/perf/dwc_pcie_pmu.c:418 dwc_pcie_pmu_validate_group() error: uninitialized symbol 'time_event'. [smatch]
>
> so not sure why I missed this. Maybe I used the wrong .config (this
> driver isn't enabled in defconfig).
>
> Will

Interestingly, the gcc version I was using to doesn't raise a warning even 
if I have -Wmaybe-initialized set. It does warn though if I move the if 
line outside the loop.

Anyways, I'm glad Dan and the test bot caught the bug.

Cheers, Ilkka


  reply	other threads:[~2025-09-23 21:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-23  5:32 [arm64:for-next/perf 5/28] drivers/perf/dwc_pcie_pmu.c:418 dwc_pcie_pmu_validate_group() error: uninitialized symbol 'time_event' Dan Carpenter
2025-09-23  7:55 ` Ilkka Koskinen
2025-09-23  8:27   ` Dan Carpenter
2025-09-23  8:35     ` Will Deacon
2025-09-23  9:07       ` Will Deacon
2025-09-23 21:16         ` Ilkka Koskinen [this message]
2025-09-23  8:29   ` Will Deacon

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=5c1ca3a3-6de-6631-a18-abc55a702862@os.amperecomputing.com \
    --to=ilkka@os.amperecomputing.com \
    --cc=dan.carpenter@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=oe-kbuild@lists.linux.dev \
    --cc=will@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox