x86/lib: Eliminate compilation warnings for misc
PATCH 1/1 x86/lib: Eliminate compilation warnings for misc
Eliminate the following clang compilation warnings by including necessary header files:
arch/x86/lib/misc.c:7:5: warning: no previous prototype for function 'num_digits' [-Wmissing-prototypes] int num_digits(int val)
^
arch/x86/lib/misc.c:7:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int num_digits(int val)
^
static
Signed-off-by Tianjia Zhang <[email protected]>
--- arch/x86/lib/misc.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/lib/misc.c +2 -0
@@ -4,6 +4,8 @@* * (Typed on and submitted from hpa's mobile phone.) */ +#include <asm/misc.h> +int num_digits (int val) {int m =10 ;
Signature · 1 line
2.32.0