Thread (98 messages) 98 messages, 4 authors, 2018-08-13

Re: [PATCH 15/19] powerpc: Add missing prototype

From: Mathieu Malaterre <hidden>
Date: 2018-03-28 19:14:01
Also in: lkml

On Fri, Mar 23, 2018 at 1:20 PM, christophe leroy
[off-list ref] wrote:

Le 22/03/2018 =C3=A0 21:20, Mathieu Malaterre a =C3=A9crit :
quoted
Add one missing prototype for function rh_dump_blk. Fix warning treated =
as
quoted
error in W=3D1:

   arch/powerpc/lib/rheap.c:740:6: error: no previous prototype for
=E2=80=98rh_dump_blk=E2=80=99 [-Werror=3Dmissing-prototypes]

Signed-off-by: Mathieu Malaterre <redacted>
---
  arch/powerpc/include/asm/rheap.h | 3 +++
  1 file changed, 3 insertions(+)
diff --git a/arch/powerpc/include/asm/rheap.h
b/arch/powerpc/include/asm/rheap.h
index 172381769cfc..e75d96de19a0 100644
--- a/arch/powerpc/include/asm/rheap.h
+++ b/arch/powerpc/include/asm/rheap.h
@@ -83,6 +83,9 @@ extern int rh_get_stats(rh_info_t * info, int what, in=
t
quoted
max_stats,
  /* Simple dump of remote heap info */
  extern void rh_dump(rh_info_t * info);
  +/* Simple dump of remote info block */
+extern void rh_dump_blk(rh_info_t *info, rh_block_t *blk);
+

Only used in one place, should be static
Well here is what I see over here:

$ git grep rh_dump_blk
...
arch/powerpc/lib/rheap.c:EXPORT_SYMBOL_GPL(rh_dump_blk);


Christophe
quoted
  /* Set owner of taken block */
  extern int rh_set_owner(rh_info_t * info, unsigned long start, const
char *owner);

---
L'absence de virus dans ce courrier =C3=A9lectronique a =C3=A9t=C3=A9 v=
=C3=A9rifi=C3=A9e par le
logiciel antivirus Avast.
https://www.avast.com/antivirus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help