2022-05-14 02:40:54

by Dong Chuanjian

[permalink] [raw]
Subject: [PATCH] scripts:force conversion argument type

scripts:force conversion argument type

Signed-off-by: Dong Chuanjian <[email protected]>
---
scripts/kallsyms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 8caabddf817c..544ab1e1b5ca 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -498,7 +498,7 @@ static void write_src(void)

output_label("kallsyms_token_index");
for (i = 0; i < 256; i++)
- printf("\t.short\t%d\n", best_idx[i]);
+ printf("\t.short\t%d\n", (int)best_idx[i]);
printf("\n");
}

--
2.18.2