On Tue, May 21, 2013 at 12:19 PM, Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxx> wrote: > + add_pre_buffer("extern int __sync_lock_test_and_set(volatile long *const, const long);\n"); Looking at the gcc documents about atomic builtins. quote: "and further that they are overloaded such that they work on multiple types" Sparse does not do type overload. Which means sparse can't properly support this function right now. If some one try to use this function on an int type, sparse will complain about type mismatch. Chris -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html