* Re: linux-next: Tree for March 30 (Blackfin string failures again)
@ 2009-03-31 0:26 Mike Frysinger
2009-03-31 2:18 ` Rusty Russell
2009-03-31 2:20 ` [PATCH] blackfin: allow allow usage of string functions in linux/string.h Rusty Russell
0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2009-03-31 0:26 UTC (permalink / raw)
To: Rusty Russell; +Cc: linux-next, LKML
On Mon, Mar 30, 2009 at 05:01, Stephen Rothwell wrote:
> The rr tree lost 8 conflicts.
was the Blackfin changes related to the string updates lost or
something ? the March 30 tree brought in these failures again ...
In file included from include/linux/bitmap.h:9,
from include/linux/nodemask.h:90,
from include/linux/mmzone.h:17,
from include/linux/gfp.h:5,
from include/linux/kmod.h:23,
from include/linux/module.h:14,
from arch/blackfin/lib/strncmp.c:14:
include/linux/string.h: In function 'strstarts':
include/linux/string.h:131: error: implicit declaration of function 'strncmp'
make[1]: *** [arch/blackfin/lib/strncmp.o] Error 1
make: *** [arch/blackfin/lib] Error 2
Last committer:
cc11ee1: Stephen Rothwell <sfr@...>
Merge branch 'quilt/rr'
-mike
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: Tree for March 30 (Blackfin string failures again)
2009-03-31 0:26 linux-next: Tree for March 30 (Blackfin string failures again) Mike Frysinger
@ 2009-03-31 2:18 ` Rusty Russell
2009-03-31 2:20 ` [PATCH] blackfin: allow allow usage of string functions in linux/string.h Rusty Russell
1 sibling, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2009-03-31 2:18 UTC (permalink / raw)
To: Mike Frysinger; +Cc: linux-next, LKML
On Tuesday 31 March 2009 10:56:40 Mike Frysinger wrote:
> On Mon, Mar 30, 2009 at 05:01, Stephen Rothwell wrote:
> > The rr tree lost 8 conflicts.
>
> was the Blackfin changes related to the string updates lost or
> something ? the March 30 tree brought in these failures again ...
Sorry, you're right. I dropped all the arch-specific stuff, I should
have kept that since it had your tested-by.
I'll send to Linus now.
Rusty.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] blackfin: allow allow usage of string functions in linux/string.h
2009-03-31 0:26 linux-next: Tree for March 30 (Blackfin string failures again) Mike Frysinger
2009-03-31 2:18 ` Rusty Russell
@ 2009-03-31 2:20 ` Rusty Russell
1 sibling, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2009-03-31 2:20 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Mike Frysinger, linux-next, LKML
In introducing a trivial "strstarts()" function in linux/string.h, we
hit the following error on blackfin:
file included from include/linux/bitmap.h:9,
from include/linux/nodemask.h:90,
from include/linux/mmzone.h:17,
from include/linux/gfp.h:5,
from include/linux/kmod.h:23,
from include/linux/module.h:14,
from arch/blackfin/lib/strncmp.c:14:
include/linux/string.h: In function 'strstarts':
include/linux/string.h:124: error: implicit declaration of function 'strncmp'
Because when including asm/string.h from arch/blackfin/lib/strncmp.c,
we don't declare the string op we are about to define, and
linux/string.h barfs.
The fix is to declare the function whose definition we steal via the
#define trick. I do this for all of them, so this won't bite us in
future.
Reported-by: linux-next
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Tested-by: Mike Frysinger <vapier@gentoo.org>
---
arch/blackfin/lib/strcmp.c | 1 +
arch/blackfin/lib/strcpy.c | 1 +
arch/blackfin/lib/strncmp.c | 2 ++
arch/blackfin/lib/strncpy.c | 2 ++
4 files changed, 6 insertions(+)
diff --git a/arch/blackfin/lib/strcmp.c b/arch/blackfin/lib/strcmp.c
--- a/arch/blackfin/lib/strcmp.c
+++ b/arch/blackfin/lib/strcmp.c
@@ -6,6 +6,7 @@
* Licensed under the GPL-2 or later.
*/
+int strcmp(const char *dest, const char *src);
#define strcmp __inline_strcmp
#include <asm/string.h>
#undef strcmp
diff --git a/arch/blackfin/lib/strcpy.c b/arch/blackfin/lib/strcpy.c
--- a/arch/blackfin/lib/strcpy.c
+++ b/arch/blackfin/lib/strcpy.c
@@ -6,6 +6,7 @@
* Licensed under the GPL-2 or later.
*/
+char *strcpy(char *dest, const char *src);
#define strcpy __inline_strcpy
#include <asm/string.h>
#undef strcpy
diff --git a/arch/blackfin/lib/strncmp.c b/arch/blackfin/lib/strncmp.c
--- a/arch/blackfin/lib/strncmp.c
+++ b/arch/blackfin/lib/strncmp.c
@@ -6,6 +6,8 @@
* Licensed under the GPL-2 or later.
*/
+#include <linux/types.h>
+int strncmp(const char *cs, const char *ct, size_t count);
#define strncmp __inline_strncmp
#include <asm/string.h>
#undef strncmp
diff --git a/arch/blackfin/lib/strncpy.c b/arch/blackfin/lib/strncpy.c
--- a/arch/blackfin/lib/strncpy.c
+++ b/arch/blackfin/lib/strncpy.c
@@ -6,6 +6,8 @@
* Licensed under the GPL-2 or later.
*/
+#include <linux/types.h>
+char *strncpy(char *dest, const char *src, size_t n);
#define strncpy __inline_strncpy
#include <asm/string.h>
#undef strncpy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-31 2:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 0:26 linux-next: Tree for March 30 (Blackfin string failures again) Mike Frysinger
2009-03-31 2:18 ` Rusty Russell
2009-03-31 2:20 ` [PATCH] blackfin: allow allow usage of string functions in linux/string.h Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).