• Borislav Petkov's avatar
    fs/binfmt_aout.c: fix pointer warnings · 7731d9a5
    Borislav Petkov authored
    fs/binfmt_aout.c: In function `aout_core_dump':
    fs/binfmt_aout.c:125: warning: passing argument 2 of `dump_write' makes pointer from integer without a cast
    include/linux/coredump.h:12: note: expected `const void *' but argument is of type `long unsigned int'
    fs/binfmt_aout.c:132: warning: passing argument 2 of `dump_write' makes pointer from integer without a cast
    include/linux/coredump.h:12: note: expected `const void *' but argument is of type `long unsigned int'
    
    due to dump_write() expecting a user void *.  Fold casts into the
    START_DATA/START_STACK macros and shut up the warnings.
    Signed-off-by: default avatarBorislav Petkov <petkovbb@gmail.com>
    Cc: Daisuke HATAYAMA <d.hatayama@jp.fujitsu.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    7731d9a5
binfmt_aout.c 12.5 KB