aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/lib/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib/misc.c')
-rw-r--r--arch/x86/lib/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/lib/misc.c b/arch/x86/lib/misc.c
index a018ec4fba53..40b81c338ae5 100644
--- a/arch/x86/lib/misc.c
+++ b/arch/x86/lib/misc.c
@@ -1,4 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
+#include <asm/misc.h>
+
/*
* Count the digits of @val including a possible sign.
*
@@ -6,7 +8,7 @@
*/
int num_digits(int val)
{
- int m = 10;
+ long long m = 10;
int d = 1;
if (val < 0) {