From: Linus Torvalds Date: Sun, 15 Jan 2006 06:08:28 +0000 (-0800) Subject: x86: Work around compiler code generation bug with -Os X-Git-Tag: v2.6.16-rc1~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf5b04c82f05c65843b2d7189845d6c3df5a41e;p=pandora-kernel.git x86: Work around compiler code generation bug with -Os Some versions of gcc generate incorrect code for the inet_check_attr() function, apparently due to a totally bogus index -> pointer comparison transformation. At least "gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)" from FC4 is affected, possibly others too. This changes the function subtly so that the buggy gcc transformation doesn't trigger. Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed