[PATCH] x86: add header to fix missing-prototypes warning

Anuradha Weeraman posted 1 patch 2 years, 8 months ago
arch/x86/lib/misc.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] x86: add header to fix missing-prototypes warning
Posted by Anuradha Weeraman 2 years, 8 months ago
Included <asm/misc.h> to fix a missing prototypes warning at build time.

Signed-off-by: Anuradha Weeraman <anuradha@debian.org>
---
 arch/x86/lib/misc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/lib/misc.c b/arch/x86/lib/misc.c
index a018ec4fba53..92cd8ecc3a2c 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.
  *
-- 
2.35.1