diff options
| author | Paul E. McKenney <[email protected]> | 2025-04-03 16:31:02 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2025-06-24 12:47:35 +0000 |
| commit | d19e9fa61f609978af9b03f1d20fa59dd8c9997d (patch) | |
| tree | 56b010e2f2fd292b18886cdb8e8096539c53ced4 /drivers/fpga/zynq-fpga.c | |
| parent | Linux 6.16-rc1 (diff) | |
| download | kernel-d19e9fa61f609978af9b03f1d20fa59dd8c9997d.tar.gz kernel-d19e9fa61f609978af9b03f1d20fa59dd8c9997d.zip | |
lib: Add trivial kunit test for ratelimit
Add a simple single-threaded smoke test for lib/ratelimit.c
To run on x86:
make ARCH=x86_64 mrproper
./tools/testing/kunit/kunit.py run --arch x86_64 --kconfig_add CONFIG_RATELIMIT_KUNIT_TEST=y --kconfig_add CONFIG_SMP=y lib_ratelimit
This will fail on old ___ratelimit(), and subsequent patches provide
the fixes that are required.
[ paulmck: Apply timeout and kunit feedback from Petr Mladek. ]
Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Kuniyuki Iwashima <[email protected]>
Cc: Mateusz Guzik <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: John Ogness <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Jon Pan-Doh <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Karolina Stolarek <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions
