public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] strlen patch
@ 2013-08-13 18:13 Fred Chen
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Fred Chen @ 2013-08-13 18:13 UTC (permalink / raw)
  To: x86, hpa, tglx, mingo; +Cc: linux-kernel, Fred Chen

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] strlen patch
  2013-08-13 18:13 [PATCH] strlen patch Fred Chen
@ 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
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Perches @ 2013-08-13 18:18 UTC (permalink / raw)
  To: Fred Chen; +Cc: x86, hpa, tglx, mingo, linux-kernel

On Tue, 2013-08-13 at 11:13 -0700, Fred Chen wrote:
> 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.
[]
> diff --git 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);

better placed before strnlen no?
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:x86/cleanups] x86, boot: Fix warning due to undeclared strlen()
  2013-08-13 18:13 [PATCH] strlen patch Fred Chen
  2013-08-13 18:18 ` Joe Perches
@ 2013-08-13 18:30 ` tip-bot for Fred Chen
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Fred Chen @ 2013-08-13 18:30 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, fchen, hpa, mingo, tglx, hpa

Commit-ID:  062fe8fe511e7f771ef1dc824eaf996ba50a694b
Gitweb:     http://git.kernel.org/tip/062fe8fe511e7f771ef1dc824eaf996ba50a694b
Author:     Fred Chen <fchen@linux.vnet.ibm.com>
AuthorDate: Tue, 13 Aug 2013 11:13:00 -0700
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Tue, 13 Aug 2013 11:27:39 -0700

x86, boot: Fix warning due to undeclared strlen()

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>
Link: http://lkml.kernel.org/r/1376417580-11554-1-git-send-email-fchen@linux.vnet.ibm.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/boot/boot.h | 1 +
 1 file changed, 1 insertion(+)

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 *);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-13 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 18:13 [PATCH] strlen patch Fred Chen
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox