mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fred Chen <fchen@linux.vnet.ibm.com>
To: x86@kernel.org, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com
Cc: linux-kernel@vger.kernel.org, Fred Chen <fchen@linux.vnet.ibm.com>
Subject: [PATCH] strlen patch
Date: Tue, 13 Aug 2013 11:13:00 -0700	[thread overview]
Message-ID: <1376417580-11554-1-git-send-email-fchen@linux.vnet.ibm.com> (raw)

Below is a patch that fixes sparse error "arch/x86/boot/string.c:119:8: warning: symbol 'strlen' was not declared." by declaring it in arch/x86/boot/boot.h.

Signed-off-by: Fred Chen <fchen@linux.vnet.ibm.com>
---
 arch/x86/boot/boot.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h
index 5b75319..ef72bae 100644
--- a/arch/x86/boot/boot.h
+++ b/arch/x86/boot/boot.h
@@ -355,6 +355,7 @@ int strncmp(const char *cs, const char *ct, size_t count);
 size_t strnlen(const char *s, size_t maxlen);
 unsigned int atou(const char *s);
 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base);
+size_t strlen(const char *s);
 
 /* tty.c */
 void puts(const char *);
-- 
1.7.1


             reply	other threads:[~2013-08-13 18:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 18:13 Fred Chen [this message]
2013-08-13 18:18 ` Joe Perches
2013-08-13 18:30 ` [tip:x86/cleanups] x86, boot: Fix warning due to undeclared strlen() tip-bot for Fred Chen

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=1376417580-11554-1-git-send-email-fchen@linux.vnet.ibm.com \
    --to=fchen@linux.vnet.ibm.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@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

Powered by JetHome