From: Randy Dunlap <randy.dunlap@oracle.com>
To: linux-sparse@vger.kernel.org
Cc: josh@freedesktop.org
Subject: [PATCH] add __builtin_labs()
Date: Wed, 22 Aug 2007 15:43:00 -0700 [thread overview]
Message-ID: <20070822154300.c46c1fd0.randy.dunlap@oracle.com> (raw)
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)
next reply other threads:[~2007-08-22 22:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 22:43 Randy Dunlap [this message]
2007-08-23 2:19 ` [PATCH] add __builtin_labs() Josh Triplett
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=20070822154300.c46c1fd0.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=josh@freedesktop.org \
--cc=linux-sparse@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;
as well as URLs for NNTP newsgroup(s).