Commit 169de419 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: eytzinger0_find() search should be const

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f5d4481c
...@@ -261,11 +261,11 @@ static inline ssize_t eytzinger0_find_le(void *base, size_t nr, size_t size, ...@@ -261,11 +261,11 @@ static inline ssize_t eytzinger0_find_le(void *base, size_t nr, size_t size,
#define eytzinger0_find(base, nr, size, _cmp, search) \ #define eytzinger0_find(base, nr, size, _cmp, search) \
({ \ ({ \
void *_base = (base); \ void *_base = (base); \
void *_search = (search); \ const void *_search = (search); \
size_t _nr = (nr); \ size_t _nr = (nr); \
size_t _size = (size); \ size_t _size = (size); \
size_t _i = 0; \ size_t _i = 0; \
int _res; \ int _res; \
\ \
while (_i < _nr && \ while (_i < _nr && \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment