All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: Maciej Strozek <mstrozek@opensource.cirrus.com>,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
	Mark Brown <broonie@kernel.org>,
	linux-sound@vger.kernel.org, patches@opensource.cirrus.com,
	llvm@lists.linux.dev, patches@lists.linux.dev
Subject: Re: [PATCH] ASoC: SDCA: Fix uninitialized use of name in sdca_irq_populate()
Date: Wed, 16 Jul 2025 16:02:51 -0400	[thread overview]
Message-ID: <20250716200251.GB4010969@ax162> (raw)
In-Reply-To: <aHdh8LOJblKP01rd@opensource.cirrus.com>

On Wed, Jul 16, 2025 at 09:25:20AM +0100, Charles Keepax wrote:
> On Tue, Jul 15, 2025 at 08:34:21PM -0700, Nathan Chancellor wrote:
> > After a recent change in clang to strengthen uninitialized warnings [1],
> > it points out that name is used uninitialized in sdca_irq_populate():
> > 
> >   sound/soc/sdca/sdca_interrupts.c:388:6: error: variable 'name' is uninitialized when used here [-Werror,-Wuninitialized]
> >     388 |                                         name, ret);
> >         |                                         ^~~~
> > 
> > Remove name and use the name member in the interrupt variable, as that
> > is the proper string to print.
> > 
> > Fixes: b126394d9ec6 ("ASoC: SDCA: Generic interrupt support")
> > Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1]
> > Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> > ---
> 
> A fix is already pending for this one:
> 
> https://lore.kernel.org/linux-sound/20250715151723.2964336-3-ckeepax@opensource.cirrus.com/T/#u
> 
> Although they are identical so don't mind which gets merged :-)

Whoops, I should have checked for duplicates like I usually do...

I see Mark has merged your change now so we are all good here.

https:///git.kernel.org/broonie/sound/c/71562278a189af2ca202eafa0ab71a9b68469207

Cheers,
Nathan

      reply	other threads:[~2025-07-16 20:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-16  3:34 [PATCH] ASoC: SDCA: Fix uninitialized use of name in sdca_irq_populate() Nathan Chancellor
2025-07-16  8:25 ` Charles Keepax
2025-07-16 20:02   ` Nathan Chancellor [this message]

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=20250716200251.GB4010969@ax162 \
    --to=nathan@kernel.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mstrozek@opensource.cirrus.com \
    --cc=patches@lists.linux.dev \
    --cc=patches@opensource.cirrus.com \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=yung-chuan.liao@linux.intel.com \
    /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.