Skip to content

Commit

Permalink
[PATCH] x86-64: add memcpy/memset prototypes
Browse files Browse the repository at this point in the history
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: randy_dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
randy_dunlap authored and Linus Torvalds committed Jun 25, 2005
1 parent 23b34f4 commit 09dbb47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86_64/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ static unsigned long output_ptr = 0;
static void *malloc(int size);
static void free(void *where);

void* memset(void* s, int c, unsigned n);
void* memcpy(void* dest, const void* src, unsigned n);

static void putstr(const char *);

extern int end;
Expand Down

0 comments on commit 09dbb47

Please sign in to comment.