Re: [PATCH] Fix BUG macro

Andrew Morton (akpm@zip.com.au)
Thu, 16 May 2002 19:41:58 -0700


Rusty Russell wrote:
>
> ...
> __asm__ __volatile__( "ud2\n" \
> "\t.word %c0\n" \
> "\t.long %c1\n" \
> - : : "i" (__LINE__), "i" (__FILE__))
> + "\t.long %c2\n" \
> + : : "i" (__LINE__), \
> + "i" (__stringify(KBUILD_BASENAME)), \
> + "i" (__FUNCTION__))

I'd share Hugh's concern on this one. Adding the name of the
containing function to every BUG() expansion will increase
the size of .rodata.

Do you have before-and-after /usr/bin/size output?

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/