diff options
Diffstat (limited to 'drivers/misc/lkdtm/bugs.c')
-rw-r--r-- | drivers/misc/lkdtm/bugs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/lkdtm/bugs.c b/drivers/misc/lkdtm/bugs.c index 1606658b9b7e..24245ccdba72 100644 --- a/drivers/misc/lkdtm/bugs.c +++ b/drivers/misc/lkdtm/bugs.c | |||
@@ -22,7 +22,7 @@ struct lkdtm_list { | |||
22 | * recurse past the end of THREAD_SIZE by default. | 22 | * recurse past the end of THREAD_SIZE by default. |
23 | */ | 23 | */ |
24 | #if defined(CONFIG_FRAME_WARN) && (CONFIG_FRAME_WARN > 0) | 24 | #if defined(CONFIG_FRAME_WARN) && (CONFIG_FRAME_WARN > 0) |
25 | #define REC_STACK_SIZE (CONFIG_FRAME_WARN / 2) | 25 | #define REC_STACK_SIZE (_AC(CONFIG_FRAME_WARN, UL) / 2) |
26 | #else | 26 | #else |
27 | #define REC_STACK_SIZE (THREAD_SIZE / 8) | 27 | #define REC_STACK_SIZE (THREAD_SIZE / 8) |
28 | #endif | 28 | #endif |
@@ -91,7 +91,7 @@ void lkdtm_LOOP(void) | |||
91 | 91 | ||
92 | void lkdtm_EXHAUST_STACK(void) | 92 | void lkdtm_EXHAUST_STACK(void) |
93 | { | 93 | { |
94 | pr_info("Calling function with %d frame size to depth %d ...\n", | 94 | pr_info("Calling function with %lu frame size to depth %d ...\n", |
95 | REC_STACK_SIZE, recur_count); | 95 | REC_STACK_SIZE, recur_count); |
96 | recursive_loop(recur_count); | 96 | recursive_loop(recur_count); |
97 | pr_info("FAIL: survived without exhausting stack?!\n"); | 97 | pr_info("FAIL: survived without exhausting stack?!\n"); |