Re: [PATCHv2 06/11] dmapool: move debug code to own functions
From: Christoph Hellwig
Date: Fri Dec 23 2022 - 11:31:38 EST
> +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.