[PATCH] squash! lib: Add Dhrystone benchmark test

From: Geert Uytterhoeven
Date: Sun Dec 18 2022 - 04:51:59 EST


v2:
- Fix uninitialized use of ret, as reported by kernel test robot
<lkp@xxxxxxxxx>.
---
lib/dhry_run.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dhry_run.c b/lib/dhry_run.c
index 31a1d442e4a0fc19..f9d33efa6d090604 100644
--- a/lib/dhry_run.c
+++ b/lib/dhry_run.c
@@ -69,7 +69,7 @@ static int dhry_run_set(const char *val, const struct kernel_param *kp)
if (dhry_run && system_state == SYSTEM_RUNNING)
dhry_benchmark();

- return ret;
+ return 0;
}

static int __init dhry_init(void)
--
2.25.1