diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-06 04:02:33 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-06 07:24:46 +0300 |
commit | 169de41985f53320580f3d347534966ea83343ca (patch) | |
tree | 788aef8f5a722f37314d998243e044f36b62894e /fs/bcachefs | |
parent | f5d4481c3edddf759e21e18751c168de879e3471 (diff) | |
download | linux-169de41985f53320580f3d347534966ea83343ca.tar.xz |
bcachefs: eytzinger0_find() search should be const
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/eytzinger.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/bcachefs/eytzinger.h b/fs/bcachefs/eytzinger.h index 05429c9631cd..9637f636e32d 100644 --- a/fs/bcachefs/eytzinger.h +++ b/fs/bcachefs/eytzinger.h @@ -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) \ ({ \ - void *_base = (base); \ - void *_search = (search); \ - size_t _nr = (nr); \ - size_t _size = (size); \ - size_t _i = 0; \ + void *_base = (base); \ + const void *_search = (search); \ + size_t _nr = (nr); \ + size_t _size = (size); \ + size_t _i = 0; \ int _res; \ \ while (_i < _nr && \ |