We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2992765 commit 16ac51aCopy full SHA for 16ac51a
io_uring/alloc_cache.h
@@ -8,18 +8,14 @@
8
*/
9
#define IO_ALLOC_CACHE_MAX 128
10
11
-#if defined(CONFIG_KASAN)
12
-static inline void io_alloc_cache_kasan(struct iovec **iov, int *nr)
13
-{
14
- kfree(*iov);
15
- *iov = NULL;
16
- *nr = 0;
17
-}
18
-#else
19
static inline void io_alloc_cache_kasan(struct iovec **iov, int *nr)
20
{
+ if (IS_ENABLED(CONFIG_KASAN)) {
+ kfree(*iov);
+ *iov = NULL;
+ *nr = 0;
+ }
21
}
22
-#endif
23
24
static inline bool io_alloc_cache_put(struct io_alloc_cache *cache,
25
void *entry)
0 commit comments