• randy_dunlap's avatar
    [PATCH] x86-64: add memcpy/memset prototypes · 09dbb476
    randy_dunlap authored
    Put function prototypes for memset() and memcpy() ahead of where
    there are used, to kill sparse warnings:
    
    arch/x86_64/boot/compressed/../../../../lib/inflate.c:317:3: warning: undefined identifier 'memset'
    arch/x86_64/boot/compressed/../../../../lib/inflate.c:601:11: warning: undefined identifier 'memcpy'
    arch/x86_64/boot/compressed/misc.c:151:2: warning: undefined identifier 'memcpy'
    arch/x86_64/boot/compressed/../../../../lib/inflate.c:317:3: warning: call with no type!
    arch/x86_64/boot/compressed/../../../../lib/inflate.c:601:17: warning: call with no type!
    arch/x86_64/boot/compressed/misc.c:151:9: warning: call with no type!
    Signed-off-by: default avatarrandy_dunlap <rdunlap@xenotime.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    09dbb476
misc.c 8.52 KB