On Mon, Feb 18, 2013 at 4:36 PM, Kim Phillips <kim.phillips@xxxxxxxxxxxxx> wrote: > > which is what's advertised as the main sparse tree, here: > > https://sparse.wiki.kernel.org/index.php/Main_Page > > lib.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/lib.c b/lib.c > index 6bd10d3..4f69e11 100644 > --- a/lib.c > +++ b/lib.c > @@ -727,6 +727,11 @@ void declare_builtin_functions(void) > add_pre_buffer("extern int __builtin_popcountl(unsigned long);\n"); > add_pre_buffer("extern int __builtin_popcountll(unsigned long long);\n"); > > + /* And byte swaps.. */ > + add_pre_buffer("extern unsigned short __builtin_bswap16(unsigned short);\n"); > + add_pre_buffer("extern unsigned int __builtin_bswap32(unsigned int);\n"); > + add_pre_buffer("extern unsigned long long __builtin_bswap64(unsigned long long);\n"); > + > /* And some random ones.. */ Looks good. Can you please add a test case for __buitin_bswap{16,32,64}? You can look at "validations/" directory for the test case example. To run the test case, use "make check". Thanks 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