linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the char-misc tree
@ 2018-10-02  5:31 Stephen Rothwell
  2018-10-02  8:34 ` Bartosz Golaszewski
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2018-10-02  5:31 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List,
	Bartosz Golaszewski, Srinivas Kandagatla

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

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/nvmem/lpc18xx_eeprom.c: In function 'lpc18xx_eeprom_remove':
drivers/nvmem/lpc18xx_eeprom.c:258:6: warning: unused variable 'ret' [-Wunused-variable]
  int ret;
      ^~~

Introduced by commit

  226014d13fa5 ("nvmem: lpc18xx_eeprom: use devm_nvmem_register()")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2018-10-02  5:31 linux-next: build warning after merge of the char-misc tree Stephen Rothwell
@ 2018-10-02  8:34 ` Bartosz Golaszewski
  0 siblings, 0 replies; 43+ messages in thread
From: Bartosz Golaszewski @ 2018-10-02  8:34 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Greg KH, Arnd Bergmann, linux-next, Linux Kernel Mailing List,
	Bartosz Golaszewski, Srinivas Kandagatla

wt., 2 paź 2018 o 07:31 Stephen Rothwell <sfr@canb.auug.org.au> napisał(a):
>
> Hi all,
>
> After merging the char-misc tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/nvmem/lpc18xx_eeprom.c: In function 'lpc18xx_eeprom_remove':
> drivers/nvmem/lpc18xx_eeprom.c:258:6: warning: unused variable 'ret' [-Wunused-variable]
>   int ret;
>       ^~~
>
> Introduced by commit
>
>   226014d13fa5 ("nvmem: lpc18xx_eeprom: use devm_nvmem_register()")
>
> --
> Cheers,
> Stephen Rothwell

Hi Stephen,

I'll send a follow-up to fix this.

Thanks,
Bartosz

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2024-04-15  5:22 Stephen Rothwell
@ 2024-04-15  7:21 ` Greg KH
  0 siblings, 0 replies; 43+ messages in thread
From: Greg KH @ 2024-04-15  7:21 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Arnd Bergmann, Chris Packham, Linux Kernel Mailing List,
	Linux Next Mailing List

On Mon, Apr 15, 2024 at 03:22:27PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> drivers/uio/uio.c:446: warning: expecting prototype for uio_interrupt(). Prototype was for uio_interrupt_handler() instead
> 
> Introduced by commit
> 
>   f8a27dfa4b82 ("uio: use threaded interrupts")

Thanks:
	https://lore.kernel.org/r/20240414215220.2424597-1-chris.packham@alliedtelesis.co.nz
should fix this up, I'll go apply that now.

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2024-04-15  5:22 Stephen Rothwell
  2024-04-15  7:21 ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2024-04-15  5:22 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Chris Packham, Greg Kroah-Hartman, Linux Kernel Mailing List,
	Linux Next Mailing List

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

Hi all,

After merging the char-misc tree, today's linux-next build (htmldocs)
produced this warning:

drivers/uio/uio.c:446: warning: expecting prototype for uio_interrupt(). Prototype was for uio_interrupt_handler() instead

Introduced by commit

  f8a27dfa4b82 ("uio: use threaded interrupts")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2022-07-15 11:43 Stephen Rothwell
  0 siblings, 0 replies; 43+ messages in thread
From: Stephen Rothwell @ 2022-07-15 11:43 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Ang Tien Sung, Dinh Nguyen, Linux Kernel Mailing List,
	Linux Next Mailing List

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

Hi all,

After merging the char-misc tree, today's linux-next build (htmldocs)
produced this warning:

include/linux/firmware/intel/stratix10-svc-client.h:55: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
 * Flag bit for COMMAND_RECONFIG

Introduced by commit

  4a4709d470e6 ("firmware: stratix10-svc: add new FCS commands")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2021-05-24  6:19 Stephen Rothwell
  0 siblings, 0 replies; 43+ messages in thread
From: Stephen Rothwell @ 2021-05-24  6:19 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Luiz Sampaio, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the char-misc tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/w1/slaves/w1_ds2438.rst:56: WARNING: Title underline too short.

"offset"
-------

Introduced by commit

  c999fbbdcf77 ("w1: ds2438: support for writing to offset register")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2021-04-06 17:28       ` Gustavo Pimentel
@ 2021-04-06 17:33         ` Greg KH
  0 siblings, 0 replies; 43+ messages in thread
From: Greg KH @ 2021-04-06 17:33 UTC (permalink / raw)
  To: Gustavo Pimentel
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, Apr 06, 2021 at 05:28:36PM +0000, Gustavo Pimentel wrote:
> On Tue, Apr 6, 2021 at 15:15:40, Greg KH <greg@kroah.com> wrote:
> 
> > On Tue, Apr 06, 2021 at 02:13:53PM +0000, Gustavo Pimentel wrote:
> > > On Tue, Apr 6, 2021 at 15:7:23, Greg KH <greg@kroah.com> wrote:
> > > 
> > > > On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote:
> > > > > Hi all,
> > > > > 
> > > > > After merging the char-misc tree, today's linux-next build (htmldocs)
> > > > > produced this warning:
> > > > > 
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
> > > > > Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.
> > > > > 
> > > > > Introduced by commit
> > > > > 
> > > > >   e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")
> > > > 
> > > > Gustavo, can you send a follow-on patch to fix this up?
> > > 
> > > Yes, I have already made a fix for it.
> > > My apologies for my ignorance on this matter, there is some way to check 
> > > if my fixes are okay through some script or other way as Stephen has 
> > > done?
> > 
> > Yes, run 'make htmldocs' in the kernel tree with your change applied and
> > see if the warnings go away.
> 
> Done. I submitted now the v11 with the fixes.

I can not take these as your patches are already in my public tree.  I
can revert the existing ones, but that's a mess, just send me a set of
patches to fix this issue, like you would for any future change to this
driver.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* RE: linux-next: build warning after merge of the char-misc tree
  2021-04-06 14:15     ` Greg KH
@ 2021-04-06 17:28       ` Gustavo Pimentel
  2021-04-06 17:33         ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Gustavo Pimentel @ 2021-04-06 17:28 UTC (permalink / raw)
  To: Greg KH
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, Apr 6, 2021 at 15:15:40, Greg KH <greg@kroah.com> wrote:

> On Tue, Apr 06, 2021 at 02:13:53PM +0000, Gustavo Pimentel wrote:
> > On Tue, Apr 6, 2021 at 15:7:23, Greg KH <greg@kroah.com> wrote:
> > 
> > > On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote:
> > > > Hi all,
> > > > 
> > > > After merging the char-misc tree, today's linux-next build (htmldocs)
> > > > produced this warning:
> > > > 
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
> > > > Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.
> > > > 
> > > > Introduced by commit
> > > > 
> > > >   e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")
> > > 
> > > Gustavo, can you send a follow-on patch to fix this up?
> > 
> > Yes, I have already made a fix for it.
> > My apologies for my ignorance on this matter, there is some way to check 
> > if my fixes are okay through some script or other way as Stephen has 
> > done?
> 
> Yes, run 'make htmldocs' in the kernel tree with your change applied and
> see if the warnings go away.

Done. I submitted now the v11 with the fixes.

-Gustavo
> 
> thanks,
> 
> greg k-h



^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2021-04-06 14:13   ` Gustavo Pimentel
@ 2021-04-06 14:15     ` Greg KH
  2021-04-06 17:28       ` Gustavo Pimentel
  0 siblings, 1 reply; 43+ messages in thread
From: Greg KH @ 2021-04-06 14:15 UTC (permalink / raw)
  To: Gustavo Pimentel
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, Apr 06, 2021 at 02:13:53PM +0000, Gustavo Pimentel wrote:
> On Tue, Apr 6, 2021 at 15:7:23, Greg KH <greg@kroah.com> wrote:
> 
> > On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote:
> > > Hi all,
> > > 
> > > After merging the char-misc tree, today's linux-next build (htmldocs)
> > > produced this warning:
> > > 
> > > Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
> > > Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
> > > Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
> > > Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
> > > Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
> > > Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
> > > Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.
> > > 
> > > Introduced by commit
> > > 
> > >   e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")
> > 
> > Gustavo, can you send a follow-on patch to fix this up?
> 
> Yes, I have already made a fix for it.
> My apologies for my ignorance on this matter, there is some way to check 
> if my fixes are okay through some script or other way as Stephen has 
> done?

Yes, run 'make htmldocs' in the kernel tree with your change applied and
see if the warnings go away.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* RE: linux-next: build warning after merge of the char-misc tree
  2021-04-06 14:07 ` Greg KH
@ 2021-04-06 14:13   ` Gustavo Pimentel
  2021-04-06 14:15     ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Gustavo Pimentel @ 2021-04-06 14:13 UTC (permalink / raw)
  To: Greg KH
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, Apr 6, 2021 at 15:7:23, Greg KH <greg@kroah.com> wrote:

> On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote:
> > Hi all,
> > 
> > After merging the char-misc tree, today's linux-next build (htmldocs)
> > produced this warning:
> > 
> > Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
> > Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
> > Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
> > Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
> > Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
> > Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
> > Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.
> > 
> > Introduced by commit
> > 
> >   e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")
> 
> Gustavo, can you send a follow-on patch to fix this up?

Yes, I have already made a fix for it.
My apologies for my ignorance on this matter, there is some way to check 
if my fixes are okay through some script or other way as Stephen has 
done?

-Gustavo

> 
> thanks,
> 
> greg k-h



^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2021-04-06 11:44 Stephen Rothwell
  2021-04-06 11:46 ` Stephen Rothwell
@ 2021-04-06 14:07 ` Greg KH
  2021-04-06 14:13   ` Gustavo Pimentel
  1 sibling, 1 reply; 43+ messages in thread
From: Greg KH @ 2021-04-06 14:07 UTC (permalink / raw)
  To: Gustavo Pimentel
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Kernel Mailing List,
	Linux Next Mailing List

On Tue, Apr 06, 2021 at 09:44:41PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
> Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
> Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.
> 
> Introduced by commit
> 
>   e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")

Gustavo, can you send a follow-on patch to fix this up?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2021-04-06 11:44 Stephen Rothwell
@ 2021-04-06 11:46 ` Stephen Rothwell
  2021-04-06 14:07 ` Greg KH
  1 sibling, 0 replies; 43+ messages in thread
From: Stephen Rothwell @ 2021-04-06 11:46 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Gustavo Pimentel, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

On Tue, 6 Apr 2021 21:44:41 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the char-misc tree, today's linux-next build (htmldocs)
> produced this warning:
> 
> Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
> Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
> Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
> Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.
> 
> Introduced by commit
> 
>   e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")

Also:

Documentation/misc-devices/dw-xdata-pcie.rst: WARNING: document isn't included in any toctree

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2021-04-06 11:44 Stephen Rothwell
  2021-04-06 11:46 ` Stephen Rothwell
  2021-04-06 14:07 ` Greg KH
  0 siblings, 2 replies; 43+ messages in thread
From: Stephen Rothwell @ 2021-04-06 11:44 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Gustavo Pimentel, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the char-misc tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/misc-devices/dw-xdata-pcie.rst:20: WARNING: Unexpected indentation.
Documentation/misc-devices/dw-xdata-pcie.rst:24: WARNING: Unexpected indentation.
Documentation/misc-devices/dw-xdata-pcie.rst:25: WARNING: Block quote ends without a blank line; unexpected unindent.
Documentation/misc-devices/dw-xdata-pcie.rst:30: WARNING: Unexpected indentation.
Documentation/misc-devices/dw-xdata-pcie.rst:34: WARNING: Unexpected indentation.
Documentation/misc-devices/dw-xdata-pcie.rst:35: WARNING: Block quote ends without a blank line; unexpected unindent.
Documentation/misc-devices/dw-xdata-pcie.rst:40: WARNING: Unexpected indentation.

Introduced by commit

  e1181b5bbc3c ("Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2021-01-29  7:07 Stephen Rothwell
  0 siblings, 0 replies; 43+ messages in thread
From: Stephen Rothwell @ 2021-01-29  7:07 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Andy Shevchenko, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the char-misc tree, today's linux-next build (htmldocs)
produced this warning:

Documentation/driver-api/index.rst:14: WARNING: toctree contains reference to nonexisting document 'driver-api/pti_intel_mid'

Introduced by commit

  8ba59e9dee31 ("misc: pti: Remove driver for deprecated platform")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* RE: linux-next: build warning after merge of the char-misc tree
  2020-05-01  6:55 ` Greg KH
@ 2020-05-01 10:17   ` Rajan Vaja
  0 siblings, 0 replies; 43+ messages in thread
From: Rajan Vaja @ 2020-05-01 10:17 UTC (permalink / raw)
  To: Greg KH, Stephen Rothwell, Jolly Shah
  Cc: Arnd Bergmann, Linux Next Mailing List, Linux Kernel Mailing List

Hi Greg,

Thanks for notifying. I have submitted "[PATCH char-misc-next] crypto: xilinx: Handle AES PM API return status" to fix warning.

Thanks,
Rajan

> -----Original Message-----
> From: Greg KH <greg@kroah.com>
> Sent: Friday, May 1, 2020 12:25 PM
> To: Stephen Rothwell <sfr@canb.auug.org.au>; Rajan Vaja
> <RAJANV@xilinx.com>; Jolly Shah <JOLLYS@xilinx.com>
> Cc: Arnd Bergmann <arnd@arndb.de>; Linux Next Mailing List <linux-
> next@vger.kernel.org>; Linux Kernel Mailing List <linux-
> kernel@vger.kernel.org>
> Subject: Re: linux-next: build warning after merge of the char-misc tree
> 
> CAUTION: This message has originated from an External Source. Please use
> proper judgment and caution when opening attachments, clicking links, or
> responding to this email.
> 
> 
> On Fri, May 01, 2020 at 04:28:06PM +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the char-misc tree, today's linux-next build (x86_64
> > allmodconfig) produced this warning:
> >
> > drivers/crypto/xilinx/zynqmp-aes-gcm.c: In function
> 'zynqmp_handle_aes_req':
> > drivers/crypto/xilinx/zynqmp-aes-gcm.c:137:5: warning: 'status' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> >   137 |  if (status) {
> >       |     ^
> > drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declared
> here
> >    87 |  unsigned int status;
> >       |               ^~~~~~
> >
> > Introduced by commit
> >
> >   bc86f9c54616 ("firmware: xilinx: Remove eemi ops for aes engine")
> 
> Rajan, can you send me a patch to fix this up please?
> 
> thanks,
> 
> greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2020-05-01  6:28 Stephen Rothwell
@ 2020-05-01  6:55 ` Greg KH
  2020-05-01 10:17   ` Rajan Vaja
  0 siblings, 1 reply; 43+ messages in thread
From: Greg KH @ 2020-05-01  6:55 UTC (permalink / raw)
  To: Stephen Rothwell, Rajan Vaja, Jolly Shah
  Cc: Arnd Bergmann, Linux Next Mailing List, Linux Kernel Mailing List

On Fri, May 01, 2020 at 04:28:06PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/crypto/xilinx/zynqmp-aes-gcm.c: In function 'zynqmp_handle_aes_req':
> drivers/crypto/xilinx/zynqmp-aes-gcm.c:137:5: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   137 |  if (status) {
>       |     ^
> drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declared here
>    87 |  unsigned int status;
>       |               ^~~~~~
> 
> Introduced by commit
> 
>   bc86f9c54616 ("firmware: xilinx: Remove eemi ops for aes engine")

Rajan, can you send me a patch to fix this up please?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2020-05-01  6:28 Stephen Rothwell
  2020-05-01  6:55 ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2020-05-01  6:28 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Rajan Vaja,
	Jolly Shah

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

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/crypto/xilinx/zynqmp-aes-gcm.c: In function 'zynqmp_handle_aes_req':
drivers/crypto/xilinx/zynqmp-aes-gcm.c:137:5: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized]
  137 |  if (status) {
      |     ^
drivers/crypto/xilinx/zynqmp-aes-gcm.c:87:15: note: 'status' was declared here
   87 |  unsigned int status;
      |               ^~~~~~

Introduced by commit

  bc86f9c54616 ("firmware: xilinx: Remove eemi ops for aes engine")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2019-04-26 14:30   ` Patrick Venture
@ 2019-04-26 18:00     ` Patrick Venture
  0 siblings, 0 replies; 43+ messages in thread
From: Patrick Venture @ 2019-04-26 18:00 UTC (permalink / raw)
  To: Greg KH
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Next Mailing List,
	Linux Kernel Mailing List, Andrew Jeffery

On Fri, Apr 26, 2019 at 7:30 AM Patrick Venture <venture@google.com> wrote:
>
> On Thu, Apr 25, 2019 at 11:25 PM Greg KH <greg@kroah.com> wrote:
> >
> > On Fri, Apr 26, 2019 at 03:56:53PM +1000, Stephen Rothwell wrote:
> > > Hi all,
> > >
> > > After merging the char-misc tree, today's linux-next build (x86_64
> > > allmodconfig) produced this warning:
> > >
> > > drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
> > > drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
> > >   pgprot_t prot = vma->vm_page_prot;
> > >   ^~~~~~~~
> > >
> > > Introduced by commit
> > >
> > >   01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")
> >
> > Patrick, I thought you fixed all of these already?  Can you send a patch
> > again?
>
> I fixed the ones caught by the robot.  I'll have to switch up my build
> environment a bit to fault on warnings for the kernel, not sure why it
> isn't --

Verified the warnings being ignored isn't a local configuration issue,
but the way OpenBMC is configured.  Verified the warning via normal
kernel compilation and fixed the issue.  Reran and found no other
issues for that drivers.  Submitted patch for review.

>
> >
> > Can you also make the driver so it can build with CONFIG_COMPILE_TEST
> > enabled so that others can find your problems earlier in the review
> > process?

Verified the driver builds and produces no warnings.

Thanks,
Patrick

>
> Roger that.
>
> >
> > thanks,
> >
> > greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2019-04-26  6:25 ` Greg KH
@ 2019-04-26 14:30   ` Patrick Venture
  2019-04-26 18:00     ` Patrick Venture
  0 siblings, 1 reply; 43+ messages in thread
From: Patrick Venture @ 2019-04-26 14:30 UTC (permalink / raw)
  To: Greg KH
  Cc: Stephen Rothwell, Arnd Bergmann, Linux Next Mailing List,
	Linux Kernel Mailing List, Andrew Jeffery

On Thu, Apr 25, 2019 at 11:25 PM Greg KH <greg@kroah.com> wrote:
>
> On Fri, Apr 26, 2019 at 03:56:53PM +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the char-misc tree, today's linux-next build (x86_64
> > allmodconfig) produced this warning:
> >
> > drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
> > drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
> >   pgprot_t prot = vma->vm_page_prot;
> >   ^~~~~~~~
> >
> > Introduced by commit
> >
> >   01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")
>
> Patrick, I thought you fixed all of these already?  Can you send a patch
> again?

I fixed the ones caught by the robot.  I'll have to switch up my build
environment a bit to fault on warnings for the kernel, not sure why it
isn't --

>
> Can you also make the driver so it can build with CONFIG_COMPILE_TEST
> enabled so that others can find your problems earlier in the review
> process?

Roger that.

>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2019-04-26  5:56 Stephen Rothwell
@ 2019-04-26  6:25 ` Greg KH
  2019-04-26 14:30   ` Patrick Venture
  0 siblings, 1 reply; 43+ messages in thread
From: Greg KH @ 2019-04-26  6:25 UTC (permalink / raw)
  To: Stephen Rothwell, Patrick Venture
  Cc: Arnd Bergmann, Linux Next Mailing List,
	Linux Kernel Mailing List, Andrew Jeffery

On Fri, Apr 26, 2019 at 03:56:53PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
> drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
>   pgprot_t prot = vma->vm_page_prot;
>   ^~~~~~~~
> 
> Introduced by commit
> 
>   01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")

Patrick, I thought you fixed all of these already?  Can you send a patch
again?

Can you also make the driver so it can build with CONFIG_COMPILE_TEST
enabled so that others can find your problems earlier in the review
process?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2019-04-26  5:56 Stephen Rothwell
  2019-04-26  6:25 ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2019-04-26  5:56 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Patrick Venture, Andrew Jeffery

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

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  pgprot_t prot = vma->vm_page_prot;
  ^~~~~~~~

Introduced by commit

  01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2018-10-02  9:56   ` Srinivas Kandagatla
@ 2018-10-02 10:04     ` Bartosz Golaszewski
  0 siblings, 0 replies; 43+ messages in thread
From: Bartosz Golaszewski @ 2018-10-02 10:04 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: Stephen Rothwell, Greg KH, Arnd Bergmann, linux-next,
	Linux Kernel Mailing List, Bartosz Golaszewski

wt., 2 paź 2018 o 11:56 Srinivas Kandagatla
<srinivas.kandagatla@linaro.org> napisał(a):
>
>
>
> On 02/10/18 10:49, Bartosz Golaszewski wrote:
> > this looks like a false positive - this routine is used in
> > ./drivers/nvmem/core.c at line 943 in this revision.
> >
> Note that the caller is under
>   #if IS_ENABLED(CONFIG_OF)
> so this warning!
>
>
> --srini
>
> > Best regards,

Right. Let me fix that then.

Thanks!
Bartosz

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2018-10-02  9:49 ` Bartosz Golaszewski
@ 2018-10-02  9:56   ` Srinivas Kandagatla
  2018-10-02 10:04     ` Bartosz Golaszewski
  0 siblings, 1 reply; 43+ messages in thread
From: Srinivas Kandagatla @ 2018-10-02  9:56 UTC (permalink / raw)
  To: Bartosz Golaszewski, Stephen Rothwell
  Cc: Greg KH, Arnd Bergmann, linux-next, Linux Kernel Mailing List,
	Bartosz Golaszewski



On 02/10/18 10:49, Bartosz Golaszewski wrote:
> this looks like a false positive - this routine is used in
> ./drivers/nvmem/core.c at line 943 in this revision.
> 
Note that the caller is under
  #if IS_ENABLED(CONFIG_OF)
so this warning!


--srini

> Best regards,

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2018-10-02  9:12 Stephen Rothwell
@ 2018-10-02  9:49 ` Bartosz Golaszewski
  2018-10-02  9:56   ` Srinivas Kandagatla
  0 siblings, 1 reply; 43+ messages in thread
From: Bartosz Golaszewski @ 2018-10-02  9:49 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Greg KH, Arnd Bergmann, linux-next, Linux Kernel Mailing List,
	Bartosz Golaszewski, Srinivas Kandagatla

wt., 2 paź 2018 o 11:12 Stephen Rothwell <sfr@canb.auug.org.au> napisał(a):
>
> Hi all,
>
> After merging the char-misc tree, today's linux-next build (i386
> defconfig) produced this warning:
>
> drivers/nvmem/core.c:496:1: warning: 'nvmem_find_cell_by_index' defined but not used [-Wunused-function]
>  nvmem_find_cell_by_index(struct nvmem_device *nvmem, int index)
>  ^~~~~~~~~~~~~~~~~~~~~~~~
>
> Introduced by commit
>
>   e888d445ac33 ("nvmem: resolve cells from DT at registration time")
>
> --
> Cheers,
> Stephen Rothwell

Hi Stephen,

this looks like a false positive - this routine is used in
./drivers/nvmem/core.c at line 943 in this revision.

Best regards,
Bartosz Golaszewski

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2018-10-02  9:12 Stephen Rothwell
  2018-10-02  9:49 ` Bartosz Golaszewski
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2018-10-02  9:12 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List,
	Bartosz Golaszewski, Srinivas Kandagatla

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

Hi all,

After merging the char-misc tree, today's linux-next build (i386
defconfig) produced this warning:

drivers/nvmem/core.c:496:1: warning: 'nvmem_find_cell_by_index' defined but not used [-Wunused-function]
 nvmem_find_cell_by_index(struct nvmem_device *nvmem, int index)
 ^~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

  e888d445ac33 ("nvmem: resolve cells from DT at registration time")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2017-12-12  3:39 Stephen Rothwell
@ 2017-12-12 11:49 ` Greg KH
  0 siblings, 0 replies; 43+ messages in thread
From: Greg KH @ 2017-12-12 11:49 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Arnd Bergmann, Linux-Next Mailing List,
	Linux Kernel Mailing List, Vasyl Gomonovych

On Tue, Dec 12, 2017 at 02:39:10PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, today's linux-next build
> (x86_64_allmodconfig) produced this warning:
> 
> drivers/misc/mic/vop/vop_vringh.c: In function 'vop_ioctl':
> drivers/misc/mic/vop/vop_vringh.c:1001:1: warning: label 'done' defined but not used [-Wunused-label]
>  done:
>  ^
> 
> Introduced by commit
> 
>   30b7a2c19e29 ("misc: mic: Use memdup_user() as a cleanup")

Thanks, Colin sent a patch for this, will queue it up later today.

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2017-12-12  3:39 Stephen Rothwell
  2017-12-12 11:49 ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2017-12-12  3:39 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List, Vasyl Gomonovych

Hi all,

After merging the char-misc tree, today's linux-next build
(x86_64_allmodconfig) produced this warning:

drivers/misc/mic/vop/vop_vringh.c: In function 'vop_ioctl':
drivers/misc/mic/vop/vop_vringh.c:1001:1: warning: label 'done' defined but not used [-Wunused-label]
 done:
 ^

Introduced by commit

  30b7a2c19e29 ("misc: mic: Use memdup_user() as a cleanup")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 43+ messages in thread

* RE: linux-next: build warning after merge of the char-misc tree
  2017-07-20  5:13 ` Greg KH
@ 2017-07-20 14:52   ` KY Srinivasan
  0 siblings, 0 replies; 43+ messages in thread
From: KY Srinivasan @ 2017-07-20 14:52 UTC (permalink / raw)
  To: Greg KH, Stephen Rothwell
  Cc: Arnd Bergmann, Linux-Next Mailing List,
	Linux Kernel Mailing List, Vitaly Kuznetsov, Andy Shevchenko



> -----Original Message-----
> From: Greg KH [mailto:greg@kroah.com]
> Sent: Wednesday, July 19, 2017 10:13 PM
> To: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Arnd Bergmann <arnd@arndb.de>; Linux-Next Mailing List <linux-
> next@vger.kernel.org>; Linux Kernel Mailing List <linux-
> kernel@vger.kernel.org>; Vitaly Kuznetsov <vkuznets@redhat.com>; KY
> Srinivasan <kys@microsoft.com>; Andy Shevchenko
> <andy.shevchenko@gmail.com>
> Subject: Re: linux-next: build warning after merge of the char-misc tree
> 
> On Thu, Jul 20, 2017 at 02:12:03PM +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the char-misc tree, yesterday's linux-next build (i386
> > defconfig) produced this warning:
> >
> > In file included from
> /home/sfr/next/next/arch/x86/entry/vdso/vma.c:25:0:
> > /home/sfr/next/next/arch/x86/include/asm/mshyperv.h:181:15: warning:
> return type defaults to 'int' [-Wreturn-type]
> >  static inline hyperv_cleanup(void) {}
> >                ^
> >
> > Introduced by commit
> >
> >   2e252fbf777d ("x86/hyper-v: include hyperv/ only when CONFIG_HYPERV
> is set")
> 
> Ugh, KY, can you send me a fix for this?

I just saw that you reverted the patch. We will fix this up and resend.

Thanks,

K. Y
> 
> All of these gcc-7 warnings are keeping me from seeing the "real"
> problems now :(
> 
> thanks,
> 
> greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2017-07-20  4:12 Stephen Rothwell
  2017-07-20  5:13 ` Greg KH
@ 2017-07-20  9:14 ` Greg KH
  1 sibling, 0 replies; 43+ messages in thread
From: Greg KH @ 2017-07-20  9:14 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Arnd Bergmann, Linux-Next Mailing List,
	Linux Kernel Mailing List, Vitaly Kuznetsov, K. Y. Srinivasan,
	Andy Shevchenko

On Thu, Jul 20, 2017 at 02:12:03PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, yesterday's linux-next build (i386
> defconfig) produced this warning:
> 
> In file included from /home/sfr/next/next/arch/x86/entry/vdso/vma.c:25:0:
> /home/sfr/next/next/arch/x86/include/asm/mshyperv.h:181:15: warning: return type defaults to 'int' [-Wreturn-type]  
>  static inline hyperv_cleanup(void) {}
>                ^
> 
> Introduced by commit
> 
>   2e252fbf777d ("x86/hyper-v: include hyperv/ only when CONFIG_HYPERV is set")

Now reverted from my tree, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2017-07-20  4:12 Stephen Rothwell
@ 2017-07-20  5:13 ` Greg KH
  2017-07-20 14:52   ` KY Srinivasan
  2017-07-20  9:14 ` Greg KH
  1 sibling, 1 reply; 43+ messages in thread
From: Greg KH @ 2017-07-20  5:13 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Arnd Bergmann, Linux-Next Mailing List,
	Linux Kernel Mailing List, Vitaly Kuznetsov, K. Y. Srinivasan,
	Andy Shevchenko

On Thu, Jul 20, 2017 at 02:12:03PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, yesterday's linux-next build (i386
> defconfig) produced this warning:
> 
> In file included from /home/sfr/next/next/arch/x86/entry/vdso/vma.c:25:0:
> /home/sfr/next/next/arch/x86/include/asm/mshyperv.h:181:15: warning: return type defaults to 'int' [-Wreturn-type]  
>  static inline hyperv_cleanup(void) {}
>                ^
> 
> Introduced by commit
> 
>   2e252fbf777d ("x86/hyper-v: include hyperv/ only when CONFIG_HYPERV is set")

Ugh, KY, can you send me a fix for this?

All of these gcc-7 warnings are keeping me from seeing the "real"
problems now :(

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2017-07-20  4:12 Stephen Rothwell
  2017-07-20  5:13 ` Greg KH
  2017-07-20  9:14 ` Greg KH
  0 siblings, 2 replies; 43+ messages in thread
From: Stephen Rothwell @ 2017-07-20  4:12 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: Linux-Next Mailing List, Linux Kernel Mailing List,
	Vitaly Kuznetsov, K. Y. Srinivasan, Andy Shevchenko

Hi all,

After merging the char-misc tree, yesterday's linux-next build (i386
defconfig) produced this warning:

In file included from /home/sfr/next/next/arch/x86/entry/vdso/vma.c:25:0:
/home/sfr/next/next/arch/x86/include/asm/mshyperv.h:181:15: warning: return type defaults to 'int' [-Wreturn-type]  
 static inline hyperv_cleanup(void) {}
               ^

Introduced by commit

  2e252fbf777d ("x86/hyper-v: include hyperv/ only when CONFIG_HYPERV is set")

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2017-03-28  3:31 Stephen Rothwell
@ 2017-03-28  3:58 ` Masahiro Yamada
  0 siblings, 0 replies; 43+ messages in thread
From: Masahiro Yamada @ 2017-03-28  3:58 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Greg KH, Arnd Bergmann, linux-next, Linux Kernel Mailing List,
	Cyril Bur, Nicolas Dichtel

Hi Stephen,


2017-03-28 12:31 GMT+09:00 Stephen Rothwell <sfr@canb.auug.org.au>:
> Hi all,
>
> After merging the char-misc tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> ./usr/include/linux/aspeed-lpc-ctrl.h:44: found __[us]{8,16,32,64} type without #include <linux/types.h>
>
> Introduced by commit
>
>   6c4e97678501 ("drivers/misc: Add Aspeed LPC control driver")
>
> Probably exposed by commit
>
>   65017bab8a9e ("uapi: export all headers under uapi directories")
>
> from the kbuild tree (since this header had not been explicitly exported).


I think we need to do a similar fixup as the following commit:


commit a9e9c248a03abae123b301804d367ad278dad3a8
Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date:   Mon Mar 27 14:20:11 2017 +0200

    uapi: includes linux/types.h before exporting files


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2017-03-28  3:31 Stephen Rothwell
  2017-03-28  3:58 ` Masahiro Yamada
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2017-03-28  3:31 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann
  Cc: linux-next, linux-kernel, Cyril Bur, Nicolas Dichtel, Masahiro Yamada

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

./usr/include/linux/aspeed-lpc-ctrl.h:44: found __[us]{8,16,32,64} type without #include <linux/types.h>

Introduced by commit

  6c4e97678501 ("drivers/misc: Add Aspeed LPC control driver")

Probably exposed by commit

  65017bab8a9e ("uapi: export all headers under uapi directories")

from the kbuild tree (since this header had not been explicitly exported).

-- 
Cheers,
Stephen Rothwell

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2015-03-31 19:35 ` Fabian Frederick
@ 2015-04-03 14:05   ` Greg KH
  0 siblings, 0 replies; 43+ messages in thread
From: Greg KH @ 2015-04-03 14:05 UTC (permalink / raw)
  To: Fabian Frederick
  Cc: Stephen Rothwell, Arnd Bergmann, linux-kernel, linux-next

On Tue, Mar 31, 2015 at 09:35:45PM +0200, Fabian Frederick wrote:
> 
> 
> > On 27 March 2015 at 08:48 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> >
> > Hi all,
> >
> > After merging the char-misc tree, today's linux-next build (powerpc
> > allyesconfig) produced this warning:
> >
> > In file included from include/linux/module.h:17:0,
> >                  from drivers/uio/uio_pdrv_genirq.c:21:
> > include/linux/moduleparam.h:326:22: warning: initialization discards 'const'
> > qualifier from pointer target type
> >   static const struct kparam_string __param_string_##name  \
> >                       ^
> > drivers/uio/uio_pdrv_genirq.c:260:1: note: in expansion of macro
> > 'module_param_string'
> >  module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
> >  ^
> >
> > Introduced by commit 4d8beff2ae07 ("uio: constify of_device_id array").
> 
> Hi Stephen,
> 
> Absolutely, my patch is wrong ; comment below explains struct is filled
> afterwards.Sorry.
> Greg, should I send you a revert or maybe we could standardize that driver ? (it
> seems it's the only one to work that way).
> 
> static const struct of_device_id uio_of_genirq_match[] = {
>         { /* This is filled with module_parm */ },
>         { /* Sentinel */ },
> };

A revert would be great, and then work to fix it "correctly" so we can
make it constant would be wonderful.  But I don't know how you would do
that at first glance.

I'll just go revert the patch now, thanks.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2015-03-27  7:48 Stephen Rothwell
@ 2015-03-31 19:35 ` Fabian Frederick
  2015-04-03 14:05   ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Fabian Frederick @ 2015-03-31 19:35 UTC (permalink / raw)
  To: Stephen Rothwell, Arnd Bergmann, Greg KH; +Cc: linux-kernel, linux-next



> On 27 March 2015 at 08:48 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
>
> Hi all,
>
> After merging the char-misc tree, today's linux-next build (powerpc
> allyesconfig) produced this warning:
>
> In file included from include/linux/module.h:17:0,
>                  from drivers/uio/uio_pdrv_genirq.c:21:
> include/linux/moduleparam.h:326:22: warning: initialization discards 'const'
> qualifier from pointer target type
>   static const struct kparam_string __param_string_##name  \
>                       ^
> drivers/uio/uio_pdrv_genirq.c:260:1: note: in expansion of macro
> 'module_param_string'
>  module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
>  ^
>
> Introduced by commit 4d8beff2ae07 ("uio: constify of_device_id array").

Hi Stephen,

Absolutely, my patch is wrong ; comment below explains struct is filled
afterwards.Sorry.
Greg, should I send you a revert or maybe we could standardize that driver ? (it
seems it's the only one to work that way).

static const struct of_device_id uio_of_genirq_match[] = {
        { /* This is filled with module_parm */ },
        { /* Sentinel */ },
};

Regards,
Fabian

> --
> Cheers,
> Stephen Rothwell                    sfr@canb.auug.org.au

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2015-03-27  7:48 Stephen Rothwell
  2015-03-31 19:35 ` Fabian Frederick
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2015-03-27  7:48 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann; +Cc: linux-next, linux-kernel, Fabian Frederick

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

Hi all,

After merging the char-misc tree, today's linux-next build (powerpc
allyesconfig) produced this warning:

In file included from include/linux/module.h:17:0,
                 from drivers/uio/uio_pdrv_genirq.c:21:
include/linux/moduleparam.h:326:22: warning: initialization discards 'const' qualifier from pointer target type
  static const struct kparam_string __param_string_##name  \
                      ^
drivers/uio/uio_pdrv_genirq.c:260:1: note: in expansion of macro 'module_param_string'
 module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
 ^

Introduced by commit 4d8beff2ae07 ("uio: constify of_device_id array").
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2013-03-01 17:16       ` Arnd Bergmann
@ 2013-03-01 17:43         ` Sedat Dilek
  0 siblings, 0 replies; 43+ messages in thread
From: Sedat Dilek @ 2013-03-01 17:43 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Greg KH, Stephen Rothwell, linux-next, linux-kernel, David Stevenson

On Fri, Mar 1, 2013 at 6:16 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Friday 01 March 2013, Sedat Dilek wrote:
>> I have seen a lot of such failures when using the Freetz (a small
>> router project) build-system with gcc-4.7-x where "-Os" is default
>> optimization-level.
>>
>> Last, when I tried to integrate ltrace GIT snapshots into Freetz.
>> All these "build-errors" could be solved in changing ltrace code.
>> So, I would not talk about "false positives".
>
> But the point is that we should not be changing the source code to
> unnecessary initializations, because that may hide real bugs if the
> code is modified in a way that relies on a sane value of some
> variable. They are false positives if the code is actually correct
> and does not need to be changed.
>
> I actually have a newer version of my patch (see below) that uses
> the cc-disable-warning macro in order to avoid some of the
> side-effects of setting an unknown option on older gcc versions.
>
>> Furthermore, "-Wno-maybe-uninitialized" gcc-option is available
>> gcc-4-7+, so your patch is incomplete.
>
> O don't understand. The patch avoids the warnings when building
> with gcc-4.7 or higher with -Os.
>

If the ...$(call cc-disable-warning...) line is checking $compiler for
$feature_is-available than I have misunderstood it.

Looks good, thanks.

- Sedat -

>         Arnd
>
>
> From d313219a2f2e0753b8e96105b7a944e1c22566ae Mon Sep 17 00:00:00 2001
> From: Arnd Bergmann <arnd@arndb.de>
> Date: Fri, 15 Feb 2013 21:23:58 +0100
> Subject: [PATCH] Turn off -Wmaybe-uninitialized when building with -Os
>
> gcc-4.7 and higher add a lot of false positive warnings about
> potential uses of uninitialized warnings, but only when optimizing
> for size (-Os). This is the default when building allyesconfig,
> which turns on CONFIG_CC_OPTIMIZE_FOR_SIZE.
>
> In order to avoid getting a lot of patches that initialize such
> variables and accidentally hide real errors along the way, let's
> just turn off this warning on the respective gcc versions
> when building with size optimizations. The -Wmaybe-uninitialized
> option was introduced in the same gcc version (4.7) that is now
> causing the false positives, so there is no effect on older compilers.
>
> A side effect is that when building with CONFIG_CC_OPTIMIZE_FOR_SIZE,
> we might now see /fewer/ warnings about possibly uninitialized
> warnings than with -O2, but that is still much better than seeing
> warnings known to be bogus.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> diff --git a/Makefile b/Makefile
> index 473beb1..f0ec9bc 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -570,7 +570,7 @@ endif # $(dot-config)
>  all: vmlinux
>
>  ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
> -KBUILD_CFLAGS  += -Os
> +KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
>  else
>  KBUILD_CFLAGS  += -O2
>  endif

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2013-03-01 15:51     ` Sedat Dilek
@ 2013-03-01 17:16       ` Arnd Bergmann
  2013-03-01 17:43         ` Sedat Dilek
  0 siblings, 1 reply; 43+ messages in thread
From: Arnd Bergmann @ 2013-03-01 17:16 UTC (permalink / raw)
  To: sedat.dilek
  Cc: Greg KH, Stephen Rothwell, linux-next, linux-kernel, David Stevenson

On Friday 01 March 2013, Sedat Dilek wrote:
> I have seen a lot of such failures when using the Freetz (a small
> router project) build-system with gcc-4.7-x where "-Os" is default
> optimization-level.
> 
> Last, when I tried to integrate ltrace GIT snapshots into Freetz.
> All these "build-errors" could be solved in changing ltrace code.
> So, I would not talk about "false positives".

But the point is that we should not be changing the source code to
unnecessary initializations, because that may hide real bugs if the
code is modified in a way that relies on a sane value of some
variable. They are false positives if the code is actually correct
and does not need to be changed.

I actually have a newer version of my patch (see below) that uses
the cc-disable-warning macro in order to avoid some of the
side-effects of setting an unknown option on older gcc versions.

> Furthermore, "-Wno-maybe-uninitialized" gcc-option is available
> gcc-4-7+, so your patch is incomplete.

O don't understand. The patch avoids the warnings when building
with gcc-4.7 or higher with -Os. 

	Arnd


>From d313219a2f2e0753b8e96105b7a944e1c22566ae Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <arnd@arndb.de>
Date: Fri, 15 Feb 2013 21:23:58 +0100
Subject: [PATCH] Turn off -Wmaybe-uninitialized when building with -Os

gcc-4.7 and higher add a lot of false positive warnings about
potential uses of uninitialized warnings, but only when optimizing
for size (-Os). This is the default when building allyesconfig,
which turns on CONFIG_CC_OPTIMIZE_FOR_SIZE.

In order to avoid getting a lot of patches that initialize such
variables and accidentally hide real errors along the way, let's
just turn off this warning on the respective gcc versions
when building with size optimizations. The -Wmaybe-uninitialized
option was introduced in the same gcc version (4.7) that is now
causing the false positives, so there is no effect on older compilers.

A side effect is that when building with CONFIG_CC_OPTIMIZE_FOR_SIZE,
we might now see /fewer/ warnings about possibly uninitialized
warnings than with -O2, but that is still much better than seeing
warnings known to be bogus.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

diff --git a/Makefile b/Makefile
index 473beb1..f0ec9bc 100644
--- a/Makefile
+++ b/Makefile
@@ -570,7 +570,7 @@ endif # $(dot-config)
 all: vmlinux
 
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-KBUILD_CFLAGS	+= -Os
+KBUILD_CFLAGS	+= -Os $(call cc-disable-warning,maybe-uninitialized,)
 else
 KBUILD_CFLAGS	+= -O2
 endif

^ permalink raw reply related	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2013-02-15 20:05   ` Arnd Bergmann
@ 2013-03-01 15:51     ` Sedat Dilek
  2013-03-01 17:16       ` Arnd Bergmann
  0 siblings, 1 reply; 43+ messages in thread
From: Sedat Dilek @ 2013-03-01 15:51 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Greg KH, Stephen Rothwell, linux-next, linux-kernel, David Stevenson

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

On Fri, Feb 15, 2013 at 9:05 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Friday 15 February 2013, Greg KH wrote:
>> On Fri, Feb 15, 2013 at 04:26:57PM +1100, Stephen Rothwell wrote:
>> >
>> > After merging the char-misc tree, today's linux-next build (x86_64
>> > allmodconfig) produced this warning:
>> >
>> > drivers/w1/slaves/w1_therm.c: In function 'w1_therm_read':
>> > drivers/w1/slaves/w1_therm.c:245:15: warning: 'crc' may be used uninitialized in this function [-Wuninitialized]
>> >
>> > Its a false positive, but it was introduced by commit 867ff9880d5d
>> > ("w1_therm: Retries: remove old code add CRC")
>>
>> I don't see that here with gcc 4.7.1, perhaps you need to upgrade your
>> version of gcc to not show these false positives?
>
> I have finally put the pieces of the puzzle together. I already knew
> that some of these warnings only happen when building with -Os (even
> in gcc-4.8), since gcc turns off the inlining at a point after it
> determines that the variable might be used uninitialized but before
> determining that it's actually isn't.
>
> I think the best way forward is to disable this particular warning
> when building with -Os (which is enabled in allyesconfig). A false
> positive seems more harmful than a false negative here, because it
> prompts people to add broken initializations. This patch indeed
> makes the majority of the allyesconfig warnings on ARM go away.
> For the regular defconfig builds, we are already mostly clean,
> and those are built with -O2.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> diff --git a/Makefile b/Makefile
> index 0b4bf62..4d60d97 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -570,7 +570,7 @@ endif # $(dot-config)
>  all: vmlinux
>
>  ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
> -KBUILD_CFLAGS  += -Os
> +KBUILD_CFLAGS  += -Os $(call cc-option,-Wno-maybe-uninitialized,)
>  else
>  KBUILD_CFLAGS  += -O2
>  endif

I have seen a lot of such failures when using the Freetz (a small
router project) build-system with gcc-4.7-x where "-Os" is default
optimization-level.

Last, when I tried to integrate ltrace GIT snapshots into Freetz.
All these "build-errors" could be solved in changing ltrace code.
So, I would not talk about "false positives".

Furthermore, "-Wno-maybe-uninitialized" gcc-option is available
gcc-4-7+, so your patch is incomplete.
Setting it is a "workaround" and a bit rough to stop compilation.
Here, I have it only activated for ltrace compilation.

I am attaching my ltrace.mk file for Freetz.

Greetings from Tuebingen to Tuebingen,
- Sedat -

[ ltrace.mk ]
...
# Set compiler options to suppress warnings treated as errors
# Reference: gcc manual chapter "3.8 Options to Request or Suppress Warnings"
# <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options>
# EXAMPLE: TARGET_CC_OPTS := -Wno-error=maybe-uninitialized (here: gcc-4.7)
ifneq (,$(strip $(filter 4.7,$(TARGET_TOOLCHAIN_GCC_MAJOR_VERSION))))
TARGET_CC_OPTS := -Wno-error=maybe-uninitialized
else
TARGET_CC_OPTS :=
endif
...
- EOT -

[-- Attachment #2: ltrace.mk --]
[-- Type: application/octet-stream, Size: 3394 bytes --]

$(call PKG_INIT_BIN, 0.7.90-git)
$(PKG)_SOURCE:=ltrace-$($(PKG)_VERSION).tar.gz
# Comment MD5 as it differs for each downloaded tarball from upstream Git repository
#$(PKG)_SOURCE_MD5:=xxx
# XXX: Workaround: Generate a tarball from upstream Git repository (use 7 digits)
$(PKG)_GIT_VERSION:=bc0de43
$(PKG)_SITE:=http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=snapshot;h=$($(PKG)_GIT_VERSION);sf=tgz

$(PKG)_BINARY:=$($(PKG)_DIR)/ltrace
$(PKG)_CONF:=$($(PKG)_DIR)/etc/ltrace.conf
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/ltrace
$(PKG)_TARGET_CONF:=$($(PKG)_DEST_DIR)/etc/ltrace.conf

$(PKG)_DEPENDS_ON := libelf

$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_LTRACE_STATIC

# Copy original header files and regenerate them using mksyscallent_mips and mksignalent scripts
$(PKG)_CONFIGURE_PRE_CMDS += ( \
	cd sysdeps/linux-gnu/mips ; \
	cp syscallent.h syscallent.h.orig ; \
	cp signalent.h signalent.h.orig ; \
	../mksyscallent_mips $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/unistd.h > syscallent.h ; \
	../mksignalent $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/signal.h > signalent.h ; \
	);

# Use autogen.sh script to generate missing files like configure etc.
$(PKG)_CONFIGURE_PRE_CMDS += ./autogen.sh ;

# Disable demangling support
$(PKG)_CONFIGURE_ENV += ac_cv_lib_iberty_cplus_demangle=no
$(PKG)_CONFIGURE_ENV += ac_cv_lib_stdcpp___cxa_demangle=no
$(PKG)_CONFIGURE_ENV += ac_cv_lib_supcpp___cxa_demangle=no

$(PKG)_CONFIGURE_ENV += LD="$(TARGET_LD)"

# Set compiler options to suppress warnings treated as errors
# Reference: gcc manual chapter "3.8 Options to Request or Suppress Warnings"
# <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options>
# EXAMPLE: TARGET_CC_OPTS := -Wno-error=maybe-uninitialized (here: gcc-4.7)
ifneq (,$(strip $(filter 4.7,$(TARGET_TOOLCHAIN_GCC_MAJOR_VERSION))))
TARGET_CC_OPTS := -Wno-error=maybe-uninitialized
else
TARGET_CC_OPTS :=
endif

# XXX: Workaround: Download Git tarball (replaces $(PKG_SOURCE_DOWNLOAD))
$(DL_DIR)/$(LTRACE_SOURCE): | $(DL_DIR)
	wget -O $(DL_DIR)/$(LTRACE_SOURCE) "$(LTRACE_SITE)"

$(pkg)-download: $(DL_DIR)/$(LTRACE_SOURCE)

# XXX: Workaround: Unpack Git tarball and apply patches (replaces $(PKG_UNPACKED))
$($(PKG)_DIR)/.unpacked: $(DL_DIR)/$(LTRACE_SOURCE) | $(SOURCE_DIR)
	mkdir -p $(LTRACE_DIR)
	tar -C $(LTRACE_DIR) $(VERBOSE) --strip-components=1 \
		-xf $(DL_DIR)/$(LTRACE_SOURCE)
	for i in $(LTRACE_MAKE_DIR)/patches/*.patch; do \
		$(PATCH_TOOL) $(LTRACE_DIR) $$i; \
	done;
	touch $@

$(pkg)-unpacked: $($(PKG)_DIR)/.unpacked

# XXX: Workaround: Commented due to switch to Git tarball usage
#$(PKG_SOURCE_DOWNLOAD)
#$(PKG_UNPACKED)
$(PKG_CONFIGURED_CONFIGURE)

$($(PKG)_CONF): $($(PKG)_DIR)/.unpacked

$($(PKG)_TARGET_CONF): $($(PKG)_CONF)
	mkdir -p $(dir $@)
	cp $< $@

$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
	$(SUBMAKE) -C $(LTRACE_DIR) \
		ARCH="$(KERNEL_ARCH)" \
		CFLAGS="$(TARGET_CFLAGS) $(TARGET_CC_OPTS)" \
		$(if $(FREETZ_PACKAGE_LTRACE_STATIC),LDFLAGS="-all-static")

$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
	$(INSTALL_BINARY_STRIP)

$(pkg):

$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $($(PKG)_TARGET_CONF)

$(pkg)-clean:
	-$(SUBMAKE) -C $(LTRACE_DIR) clean

$(pkg)-uninstall:
	$(RM) $(LTRACE_TARGET_BINARY)
	$(RM) $(LTRACE_TARGET_CONF)

.PHONY: $(pkg)-download $(pkg)-unpacked $(pkg) $(pkg)-precompiled $(pkg)-clean $(pkg)-uninstall

$(PKG_FINISH)

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2013-02-15 17:34 ` Greg KH
  2013-02-15 18:07   ` Arnd Bergmann
@ 2013-02-15 20:05   ` Arnd Bergmann
  2013-03-01 15:51     ` Sedat Dilek
  1 sibling, 1 reply; 43+ messages in thread
From: Arnd Bergmann @ 2013-02-15 20:05 UTC (permalink / raw)
  To: Greg KH; +Cc: Stephen Rothwell, linux-next, linux-kernel, David Stevenson

On Friday 15 February 2013, Greg KH wrote:
> On Fri, Feb 15, 2013 at 04:26:57PM +1100, Stephen Rothwell wrote:
> > 
> > After merging the char-misc tree, today's linux-next build (x86_64
> > allmodconfig) produced this warning:
> > 
> > drivers/w1/slaves/w1_therm.c: In function 'w1_therm_read':
> > drivers/w1/slaves/w1_therm.c:245:15: warning: 'crc' may be used uninitialized in this function [-Wuninitialized]
> > 
> > Its a false positive, but it was introduced by commit 867ff9880d5d
> > ("w1_therm: Retries: remove old code add CRC")
> 
> I don't see that here with gcc 4.7.1, perhaps you need to upgrade your
> version of gcc to not show these false positives?

I have finally put the pieces of the puzzle together. I already knew
that some of these warnings only happen when building with -Os (even
in gcc-4.8), since gcc turns off the inlining at a point after it
determines that the variable might be used uninitialized but before
determining that it's actually isn't.

I think the best way forward is to disable this particular warning
when building with -Os (which is enabled in allyesconfig). A false
positive seems more harmful than a false negative here, because it
prompts people to add broken initializations. This patch indeed
makes the majority of the allyesconfig warnings on ARM go away.
For the regular defconfig builds, we are already mostly clean,
and those are built with -O2.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

diff --git a/Makefile b/Makefile
index 0b4bf62..4d60d97 100644
--- a/Makefile
+++ b/Makefile
@@ -570,7 +570,7 @@ endif # $(dot-config)
 all: vmlinux
 
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-KBUILD_CFLAGS	+= -Os
+KBUILD_CFLAGS	+= -Os $(call cc-option,-Wno-maybe-uninitialized,)
 else
 KBUILD_CFLAGS	+= -O2
 endif

^ permalink raw reply related	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2013-02-15 17:34 ` Greg KH
@ 2013-02-15 18:07   ` Arnd Bergmann
  2013-02-15 20:05   ` Arnd Bergmann
  1 sibling, 0 replies; 43+ messages in thread
From: Arnd Bergmann @ 2013-02-15 18:07 UTC (permalink / raw)
  To: Greg KH; +Cc: Stephen Rothwell, linux-next, linux-kernel, David Stevenson

On Friday 15 February 2013, Greg KH wrote:
> On Fri, Feb 15, 2013 at 04:26:57PM +1100, Stephen Rothwell wrote:
> > Hi all,
> > 
> > After merging the char-misc tree, today's linux-next build (x86_64
> > allmodconfig) produced this warning:
> > 
> > drivers/w1/slaves/w1_therm.c: In function 'w1_therm_read':
> > drivers/w1/slaves/w1_therm.c:245:15: warning: 'crc' may be used uninitialized in this function [-Wuninitialized]
> > 
> > Its a false positive, but it was introduced by commit 867ff9880d5d
> > ("w1_therm: Retries: remove old code add CRC")
> 
> I don't see that here with gcc 4.7.1, perhaps you need to upgrade your
> version of gcc to not show these false positives?

I see the same warning with gcc-4.6.3, 4.7.2 and 4.8.0-20130114 on ARM.

In case of 4.8, the output is

drivers/w1/slaves/w1_therm.c: In function 'w1_therm_read':
drivers/w1/slaves/w1_therm.c:245:15: warning: 'crc' may be used uninitialized in this function [-Wmaybe-uninitialized]
  c -= snprintf(buf + PAGE_SIZE - c, c, ": crc=%02x %s\n",
               ^

I actually see much more of these false positives with 4.7 and 4.8 than
I get with 4.6, which is the main reason for me to use 4.6 for my daily
builds. I agree that this particular false positive is an especially
dumb one and it would be good to not just shut up gcc by initializing
it, but I have no other idea what to do with the hundreds of such
warnings I get.

	Arnd

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: linux-next: build warning after merge of the char-misc tree
  2013-02-15  5:26 Stephen Rothwell
@ 2013-02-15 17:34 ` Greg KH
  2013-02-15 18:07   ` Arnd Bergmann
  2013-02-15 20:05   ` Arnd Bergmann
  0 siblings, 2 replies; 43+ messages in thread
From: Greg KH @ 2013-02-15 17:34 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Arnd Bergmann, linux-next, linux-kernel, David Stevenson

On Fri, Feb 15, 2013 at 04:26:57PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the char-misc tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/w1/slaves/w1_therm.c: In function 'w1_therm_read':
> drivers/w1/slaves/w1_therm.c:245:15: warning: 'crc' may be used uninitialized in this function [-Wuninitialized]
> 
> Its a false positive, but it was introduced by commit 867ff9880d5d
> ("w1_therm: Retries: remove old code add CRC")

I don't see that here with gcc 4.7.1, perhaps you need to upgrade your
version of gcc to not show these false positives?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 43+ messages in thread

* linux-next: build warning after merge of the char-misc tree
@ 2013-02-15  5:26 Stephen Rothwell
  2013-02-15 17:34 ` Greg KH
  0 siblings, 1 reply; 43+ messages in thread
From: Stephen Rothwell @ 2013-02-15  5:26 UTC (permalink / raw)
  To: Greg KH, Arnd Bergmann; +Cc: linux-next, linux-kernel, David Stevenson

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

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/w1/slaves/w1_therm.c: In function 'w1_therm_read':
drivers/w1/slaves/w1_therm.c:245:15: warning: 'crc' may be used uninitialized in this function [-Wuninitialized]

Its a false positive, but it was introduced by commit 867ff9880d5d
("w1_therm: Retries: remove old code add CRC")
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2024-04-15  7:21 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-02  5:31 linux-next: build warning after merge of the char-misc tree Stephen Rothwell
2018-10-02  8:34 ` Bartosz Golaszewski
  -- strict thread matches above, loose matches on Subject: below --
2024-04-15  5:22 Stephen Rothwell
2024-04-15  7:21 ` Greg KH
2022-07-15 11:43 Stephen Rothwell
2021-05-24  6:19 Stephen Rothwell
2021-04-06 11:44 Stephen Rothwell
2021-04-06 11:46 ` Stephen Rothwell
2021-04-06 14:07 ` Greg KH
2021-04-06 14:13   ` Gustavo Pimentel
2021-04-06 14:15     ` Greg KH
2021-04-06 17:28       ` Gustavo Pimentel
2021-04-06 17:33         ` Greg KH
2021-01-29  7:07 Stephen Rothwell
2020-05-01  6:28 Stephen Rothwell
2020-05-01  6:55 ` Greg KH
2020-05-01 10:17   ` Rajan Vaja
2019-04-26  5:56 Stephen Rothwell
2019-04-26  6:25 ` Greg KH
2019-04-26 14:30   ` Patrick Venture
2019-04-26 18:00     ` Patrick Venture
2018-10-02  9:12 Stephen Rothwell
2018-10-02  9:49 ` Bartosz Golaszewski
2018-10-02  9:56   ` Srinivas Kandagatla
2018-10-02 10:04     ` Bartosz Golaszewski
2017-12-12  3:39 Stephen Rothwell
2017-12-12 11:49 ` Greg KH
2017-07-20  4:12 Stephen Rothwell
2017-07-20  5:13 ` Greg KH
2017-07-20 14:52   ` KY Srinivasan
2017-07-20  9:14 ` Greg KH
2017-03-28  3:31 Stephen Rothwell
2017-03-28  3:58 ` Masahiro Yamada
2015-03-27  7:48 Stephen Rothwell
2015-03-31 19:35 ` Fabian Frederick
2015-04-03 14:05   ` Greg KH
2013-02-15  5:26 Stephen Rothwell
2013-02-15 17:34 ` Greg KH
2013-02-15 18:07   ` Arnd Bergmann
2013-02-15 20:05   ` Arnd Bergmann
2013-03-01 15:51     ` Sedat Dilek
2013-03-01 17:16       ` Arnd Bergmann
2013-03-01 17:43         ` Sedat Dilek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).