"Naveen N. Rao" <naveen.n....@linux.vnet.ibm.com> writes: > +#ifdef CONFIG_KPROBES > + if (kprobe_post_handler(regs)) > + return; > +#endif ... > +#ifdef CONFIG_KPROBES > + if (kprobe_handler(regs)) > + goto bail; > +#endif ... > +#ifdef CONFIG_KPROBES > + if (kprobe_post_handler(regs)) > + return; > +#endif ... > +#ifdef CONFIG_KPROBES > + if (kprobe_post_handler(regs)) > + return; > +#endif > +
Sorry too many ifdefs. Can you please add empty static inline versions for CONFIG_KPROBES=n that always return false. The compiler will be smart enough to elide them entirely. cheers