Skip to contentSkip to conversation

linux-next: build warning after merge of the akpm-current tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 26, 2014 – Sep 29, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

drivers/of/of_reserved_mem.c: In function 'of_reserved_mem_device_init':
drivers/of/of_reserved_mem.c:253:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
return;
^
drivers/of/of_reserved_mem.c:259:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
return;
^

Caused by commit 1a29544cc8c9 ("drivers: of: add return value to of_reserved_mem_device_init"). This patch changed the return type of a function but did not update any or the return statements in that function.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 13 lines · On Fri, 26 Sep 2014 20:42:00 +1000 Stephen Rothwell <[email protected]>…

Hi Andrew,

After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

drivers/of/of_reserved_mem.c: In function 'of_reserved_mem_device_init':
drivers/of/of_reserved_mem.c:253:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]

   return;
   ^
drivers/of/of_reserved_mem.c:259:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
   return;
   ^
Quoted 4 lines

Caused by commit 1a29544cc8c9 ("drivers: of: add return value to of_reserved_mem_device_init"). This patch changed the return type of a function but did not update any or the return statements in that function.

OK, thanks, I dropped it. I could have fixed it but it doesn't appear to be well tested.