summaryrefslogtreecommitdiff
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/lib/misc.c b/arch/x86/lib/misc.c
index 76b373af03f0..40b81c338ae5 100644
--- a/arch/x86/lib/misc.c
+++ b/arch/x86/lib/misc.c
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <asm/misc.h>
+
/*
* Count the digits of @val including a possible sign.
*
@@ -5,7 +8,7 @@
*/
int num_digits(int val)
{
- int m = 10;
+ long long m = 10;
int d = 1;
if (val < 0) {