aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_linear_ranges.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Move KUnit tests into tests/ subdirectoryKees Cook2025-02-111-220/+0
| | | | | | | | | | | | | | | Following from the recent KUnit file naming discussion[1], move all KUnit tests in lib/ into lib/tests/. Link: https://lore.kernel.org/lkml/[email protected]/ [1] Acked-by: Steven Rostedt (Google) <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Reviewed-by: David Gow <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Reviewed-by: Rae Moar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
* lib/test_linear_ranges: add missing MODULE_DESCRIPTION() macroJeff Johnson2024-06-251-0/+1
| | | | | | | | | | | | | make allmodconfig && make W=1 C=1 reports: WARNING: modpost: missing MODULE_DESCRIPTION() in lib/test_linear_ranges.o Add the missing invocation of the MODULE_DESCRIPTION() macro. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jeff Johnson <[email protected]> Reviewed-by: Matti Vaittinen <[email protected]> Cc: Mark Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
* lib/test_linear_ranges: Use LINEAR_RANGE()Matti Vaittinen2022-11-161-11/+2
| | | | | | | | | | | | | New initialization macro for linear ranges was added. Slightly simplify the test code by using this macro - and at the same time also verify the macro is working as intended. Use the newly added LINEAR_RANGE() initialization macro for linear range test. Signed-off-by: Matti Vaittinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
* lib/test_linear_ranges: add a test for the 'linear_ranges'Matti Vaittinen2020-05-081-0/+228
Add a KUnit test for the linear_ranges helper. Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Link: https://lore.kernel.org/r/311fea741bafdcd33804d3187c1642e24275e3e5.1588944082.git.matti.vaittinen@fi.rohmeurope.com Signed-off-by: Mark Brown <[email protected]>