diff options
| author | Christophe JAILLET <[email protected]> | 2024-06-08 14:34:18 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-06-25 05:25:08 +0000 |
| commit | 08ab0915831d454ecf220c14df5dea35933468e7 (patch) | |
| tree | 669ca2058dab7dc5bd4cb2cc14f5b5446cc53cae /tools/testing/radix-tree/xarray.c | |
| parent | crash: remove header files which are included more than once (diff) | |
| download | kernel-08ab0915831d454ecf220c14df5dea35933468e7.tar.gz kernel-08ab0915831d454ecf220c14df5dea35933468e7.zip | |
fsi: occ: remove usage of the deprecated ida_simple_xx() API
Patch series "Remove usage of the deprecated ida_simple_xx() API".
The series removes the *last* usages of the deprecated ida_simple_xx() API.
This patch (of 3):
ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().
Note that the upper limit of ida_simple_get() is exclusive, but the one of
ida_alloc_range() is inclusive. So, this upper limit, INT_MAX, should
have been changed to INT_MAX-1.
But, it is likely that the INT_MAX 'idx' is valid that the max value passed
to ida_simple_get() should have been 0.
So, allow this INT_MAX 'idx' value now.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/8e28b0c45fe8f28ca4475fe0027f8099c41259f0.1717855701.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Eddie James <[email protected]>
Cc: Alistar Popple <[email protected]>
Cc: Christian Gromm <[email protected]>
Cc: Jeremy Kerr <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Parthiban Veerasooran <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions
