------- Comment #6 from pinskia at gcc dot gnu dot org 2009-10-09 17:19 ------- Really if the kernel should have compile time asserts that the offsets don't match up with the inline-asm.
There are ways of doing that it is not hard: typedef static_assert_1[offsetof(a, b) != OFFSETAB ? -1 : 1]; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045