> +static inline void pool_check_block(struct dma_pool *pool, void *retval, > + unsigned int offset, gfp_t mem_flags) > +{ > +#ifdef DMAPOOL_DEBUG We normally keep the ifdef outside the function and provide stubs. Extra points for keeping all the debug helpers in a single ifdef block.