And then by using compat-wireless tagcompat-wireless-2012-03-14-3-g98cc995 against linux-next tagnext-20120314 I can only compile up to 2.6.34. Anything older I getcompilation errors which seem to point to somehow DEFINE_EVENT()failing.

But no dice. I then figured it may be my kernel withCONFIG_TRACEPOINTS=y and indeed that is the case -- so we have toconsider the case where the target kernel may have tracing enabled andwe have to disable it somehow. Undef'ing CONFIG_TRACEPOINTS andDECLARE_TRACE doesn't really do it.

We may need to redefine each macro to some COMPAT_TRACE_ macro, not sure yet.