Alan Cox wrote: > > > Yeah, I considered that, and it doesn't matter to me whether it > > reports 0 or -1, but it's the data pointer that (mostly) requires > > the #ifdefs, unless the data is always present or a dummy data pointer > > is used.... ? > > #define it to an inline without some arguments ? ~~~~~~~~~~~~~~~~~~ I can't get that to work, but someone else may be able to... Here's another version for you to consider. The [un]register_sysrq_key() calls return 0 when CONFIG_MAGIC_SYSRQ is not defined/configured. However, it sacrifices one small data structure of 3 pointers. ~Randy