linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add __builtin_labs()
@ 2007-08-22 22:43 Randy Dunlap
  2007-08-23  2:19 ` Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2007-08-22 22:43 UTC (permalink / raw)
  To: linux-sparse; +Cc: josh

From: Randy Dunlap <randy.dunlap@oracle.com>

2.6.23-rc3-mm1 has added a user of __builtin_labs(), so add this function
to sparse lib.c to avoid the error messages.

  CHECK   kernel/unwind.c
kernel/unwind.c:1016:31: error: undefined identifier '__builtin_labs'
kernel/unwind.c:1232:25: error: undefined identifier '__builtin_labs'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 lib.c |    1 +
 1 file changed, 1 insertion(+)

--- sparse-2007-08-22.orig/lib.c
+++ sparse-2007-08-22/lib.c
@@ -590,6 +590,7 @@ void declare_builtin_functions(void)
 	add_pre_buffer("extern long __builtin_alpha_insql(long, long);\n");
 	add_pre_buffer("extern long __builtin_alpha_inslh(long, long);\n");
 	add_pre_buffer("extern long __builtin_alpha_cmpbge(long, long);\n");
+	add_pre_buffer("extern long __builtin_labs(long);\n");
 }
 
 void create_builtin_stream(void)

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

* Re: [PATCH] add __builtin_labs()
  2007-08-22 22:43 [PATCH] add __builtin_labs() Randy Dunlap
@ 2007-08-23  2:19 ` Josh Triplett
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Triplett @ 2007-08-23  2:19 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-sparse

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> 2.6.23-rc3-mm1 has added a user of __builtin_labs(), so add this function
> to sparse lib.c to avoid the error messages.
> 
>   CHECK   kernel/unwind.c
> kernel/unwind.c:1016:31: error: undefined identifier '__builtin_labs'
> kernel/unwind.c:1232:25: error: undefined identifier '__builtin_labs'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

Applied, thanks.

- Josh Triplett


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

end of thread, other threads:[~2007-08-23  2:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 22:43 [PATCH] add __builtin_labs() Randy Dunlap
2007-08-23  2:19 ` Josh Triplett

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).