All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: stable-rc build: 59 warnings 0 failures (stable-rc/v3.18.54-60-g35c7f23)
       [not found] <5924af3d.c6c8620a.6511f.71b9@mx.google.com>
@ 2017-05-24 10:31 ` Arnd Bergmann
  2017-05-24 11:36   ` gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-05-24 10:31 UTC (permalink / raw)
  To: Olof's autobuilder, gregkh
  Cc: Olof Johansson, Kernel Build Reports Mailman List, stable

On Tue, May 23, 2017 at 11:53 PM, Olof's autobuilder <build@lixom.net> wrote:
> Here are the build results from automated periodic testing.
>
> The tree being built was stable-rc, found at:
>
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable-rc.git/
>
> 35c7f23 Linux 3.18.55-rc1

> Warnings:
>
>       2 include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void
>      57 drivers/of/fdt.c:384:10: warning: 'return' with a value, in function returning void

Caused by the backport of

0aa459efa045 ("of: fdt: add missing allocation-failure check")

which relies on another change from:

83262418b0ef ("drivers/of: Return allocated memory from
of_fdt_unflatten_tree()")

Possible fixes are

a) drop 0aa459efa045, as it won't be that important on 3.18: DT overlays
    were added only in 3.19, so this won't ever be called at runtime, and
    we don't normally worry about kmalloc failures during early boot.

b) backport 83262418b0ef, which is otherwise not needed on stable

c) apply or fold the trivial fixup:

8<--------
[stable 3.18] fix __unflatten_device_tree warning

A backported patch needs to be modified for a context change

drivers/of/fdt.c:384:10: warning: 'return' with a value, in function
returning void

Fixes: 0aa459efa045 ("of: fdt: add missing allocation-failure check")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 43bd69dceabf..ca352d3a7d7e 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -508,7 +508,7 @@ void *__unflatten_device_tree(const void *blob,
  /* Allocate memory for the expanded device tree */
  mem = dt_alloc(size + 4, __alignof__(struct device_node));
  if (!mem)
- return NULL;
+ return;

  memset(mem, 0, size);

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

* Re: stable-rc build: 59 warnings 0 failures (stable-rc/v3.18.54-60-g35c7f23)
  2017-05-24 10:31 ` stable-rc build: 59 warnings 0 failures (stable-rc/v3.18.54-60-g35c7f23) Arnd Bergmann
@ 2017-05-24 11:36   ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2017-05-24 11:36 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Olof's autobuilder, Olof Johansson,
	Kernel Build Reports Mailman List, stable

On Wed, May 24, 2017 at 12:31:21PM +0200, Arnd Bergmann wrote:
> On Tue, May 23, 2017 at 11:53 PM, Olof's autobuilder <build@lixom.net> wrote:
> > Here are the build results from automated periodic testing.
> >
> > The tree being built was stable-rc, found at:
> >
> > https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable-rc.git/
> >
> > 35c7f23 Linux 3.18.55-rc1
> 
> > Warnings:
> >
> >       2 include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void
> >      57 drivers/of/fdt.c:384:10: warning: 'return' with a value, in function returning void
> 
> Caused by the backport of
> 
> 0aa459efa045 ("of: fdt: add missing allocation-failure check")
> 
> which relies on another change from:
> 
> 83262418b0ef ("drivers/of: Return allocated memory from
> of_fdt_unflatten_tree()")
> 
> Possible fixes are
> 
> a) drop 0aa459efa045, as it won't be that important on 3.18: DT overlays
>     were added only in 3.19, so this won't ever be called at runtime, and
>     we don't normally worry about kmalloc failures during early boot.
> 
> b) backport 83262418b0ef, which is otherwise not needed on stable
> 
> c) apply or fold the trivial fixup:
> 
> 8<--------
> [stable 3.18] fix __unflatten_device_tree warning
> 
> A backported patch needs to be modified for a context change
> 
> drivers/of/fdt.c:384:10: warning: 'return' with a value, in function
> returning void
> 
> Fixes: 0aa459efa045 ("of: fdt: add missing allocation-failure check")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> 
> diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
> index 43bd69dceabf..ca352d3a7d7e 100644
> --- a/drivers/of/fdt.c
> +++ b/drivers/of/fdt.c
> @@ -508,7 +508,7 @@ void *__unflatten_device_tree(const void *blob,
>   /* Allocate memory for the expanded device tree */
>   mem = dt_alloc(size + 4, __alignof__(struct device_node));
>   if (!mem)
> - return NULL;
> + return;
> 
>   memset(mem, 0, size);

Patch looks corrupted, can you resend it?

thanks,

greg k-h

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

end of thread, other threads:[~2017-05-24 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5924af3d.c6c8620a.6511f.71b9@mx.google.com>
2017-05-24 10:31 ` stable-rc build: 59 warnings 0 failures (stable-rc/v3.18.54-60-g35c7f23) Arnd Bergmann
2017-05-24 11:36   ` gregkh

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.