lkml.org 
[lkml]   [2018]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 15/19] powerpc: Add missing prototype
    Date
    Add one missing prototype for function rh_dump_blk. Fix warning treated as
    error in W=1:

    arch/powerpc/lib/rheap.c:740:6: error: no previous prototype for ‘rh_dump_blk’ [-Werror=missing-prototypes]

    Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
    Signed-off-by: Mathieu Malaterre <malat@debian.org>
    ---
    v3: remove extern keyword
    v2: no change
    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..8e83703d6736 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, int max_stats,
    /* Simple dump of remote heap info */
    extern void rh_dump(rh_info_t * info);

    +/* Simple dump of remote info block */
    +void rh_dump_blk(rh_info_t *info, rh_block_t *blk);
    +
    /* Set owner of taken block */
    extern int rh_set_owner(rh_info_t * info, unsigned long start, const char *owner);

    --
    2.11.0
    \
     
     \ /
      Last update: 2018-04-04 22:12    [W:4.090 / U:0.180 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site