[PATCH v2] drivers: spi: Insert the missing pci_dev_put()before return

Mark Brown broonie at kernel.org
Mon Sep 2 04:48:37 PDT 2024


On Fri, Aug 30, 2024 at 03:23:32PM -0700, Nathan Chancellor wrote:
> On Fri, Aug 30, 2024 at 08:57:47PM +0100, Mark Brown wrote:

> > I'm a bit concerned that this isn't picked up by an allmodconfig with
> > the -Werror...  I'm currently using GCC 12 for that.
> 
> It shows up with -Wmaybe-uninitialized for GCC but that's disabled for
> the normal kernel build with commit 78a5255ffb6a ("Stop the ad-hoc games
> with -Wno-maybe-initialized"). With GCC 12:

...

> Perhaps a KCFLAGS=-Wmaybe-uninitialized in your make command or adding
> 
>   subdir-ccflags-$(CONFIG_CC_IS_GCC) := -Wmaybe-uninitialized
> 
> to the makefiles of the drivers that you maintain might not be a bad
> idea.

If it's causing so many false positives that it's been disabled then
that'll just cause trouble, it's always miserable whenever a subsystem
decides to go with custom warning options.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240902/085003a1/attachment.sig>


More information about the linux-arm-kernel mailing list