From: Randy Dunlap <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
---
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html