All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the pidfd-fixes tree
@ 2020-03-09 21:07 Stephen Rothwell
  2020-03-09 22:37 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2020-03-09 21:07 UTC (permalink / raw)
  To: Christian Brauner; +Cc: Linux Next Mailing List, Linux Kernel Mailing List

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

Hi all,

After merging the pidfd-fixes tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

In file included from include/linux/rwsem.h:18,
                 from include/linux/mm_types.h:11,
                 from include/linux/mmzone.h:21,
                 from include/linux/gfp.h:6,
                 from include/linux/mm.h:10,
                 from kernel/pid.c:30:
kernel/pid.c: In function 'alloc_pid':
include/linux/err.h:26:9: warning: 'retval' may be used uninitialized in this function [-Wmaybe-uninitialized]
   26 |  return (void *) error;
      |         ^~~~~~~~~~~~~~
kernel/pid.c:168:6: note: 'retval' was declared here
  168 |  int retval;
      |      ^~~~~~

Introduced by commit

  8deb24dcb89c ("pid: make ENOMEM return value more obvious")

-- 
Cheers,
Stephen Rothwell

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

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

* Re: linux-next: build warning after merge of the pidfd-fixes tree
  2020-03-09 21:07 linux-next: build warning after merge of the pidfd-fixes tree Stephen Rothwell
@ 2020-03-09 22:37 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2020-03-09 22:37 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Christian Brauner, Linux Next Mailing List, Linux Kernel Mailing List

On Tue, Mar 10, 2020 at 08:07:58AM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the pidfd-fixes tree, today's linux-next build (arm
> multi_v7_defconfig) produced this warning:
> 
> In file included from include/linux/rwsem.h:18,
>                  from include/linux/mm_types.h:11,
>                  from include/linux/mmzone.h:21,
>                  from include/linux/gfp.h:6,
>                  from include/linux/mm.h:10,
>                  from kernel/pid.c:30:
> kernel/pid.c: In function 'alloc_pid':
> include/linux/err.h:26:9: warning: 'retval' may be used uninitialized in this function [-Wmaybe-uninitialized]
>    26 |  return (void *) error;
>       |         ^~~~~~~~~~~~~~
> kernel/pid.c:168:6: note: 'retval' was declared here
>   168 |  int retval;
>       |      ^~~~~~
> 
> Introduced by commit
> 
>   8deb24dcb89c ("pid: make ENOMEM return value more obvious")

Thanks, will fix now. Sorry for the noise!
Christian;

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

end of thread, other threads:[~2020-03-09 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 21:07 linux-next: build warning after merge of the pidfd-fixes tree Stephen Rothwell
2020-03-09 22:37 ` Christian Brauner

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.