From: "Randy.Dunlap" <rddunlap@osdl.org>
To: ak@suse.de, akpm <akpm@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] x86-64: add memcpy/memset prototypes
Date: Mon, 14 Mar 2005 16:00:41 -0800 [thread overview]
Message-ID: <20050314160041.4522bb3a.rddunlap@osdl.org> (raw)
(resend)
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 <rddunlap@osdl.org>
diffstat:=
arch/x86_64/boot/compressed/misc.c | 3 +++
1 files changed, 3 insertions(+)
diff -Naurp ./arch/x86_64/boot/compressed/misc.c~misc_includes ./arch/x86_64/boot/compressed/misc.c
--- ./arch/x86_64/boot/compressed/misc.c~misc_includes 2004-12-24 13:34:32.000000000 -0800
+++ ./arch/x86_64/boot/compressed/misc.c 2005-02-16 10:37:48.988294016 -0800
@@ -92,6 +92,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;
---
reply other threads:[~2005-03-15 0:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050314160041.4522bb3a.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®