lkml.org 
[lkml]   [2022]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 06/11] dmapool: move debug code to own functions
> +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.

\
 
 \ /
  Last update: 2023-03-26 23:19    [W:0.772 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site