Re: [PATCH] mm: wrap BUG() branches with unlikely()

From: Andrew Morton
Date: Tue Jan 13 2015 - 19:03:45 EST


On Tue, 13 Jan 2015 01:35:26 +0300 Dmitry Voytik <voytikd@xxxxxxxxx> wrote:

> Wrap BUG() branches with unlikely() where it is possible. Use BUG_ON()
> instead of "if () BUG();" where it is feasible.

Does this actually do anything? With my (old) gcc, mm/built-in.o's
size was unaltered. I didn't check for code generation differences.

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