Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FCCBC433EF for ; Tue, 16 Nov 2021 08:06:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 831FF61BFB for ; Tue, 16 Nov 2021 08:06:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231767AbhKPIJX (ORCPT ); Tue, 16 Nov 2021 03:09:23 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:43065 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231718AbhKPII7 (ORCPT ); Tue, 16 Nov 2021 03:08:59 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R781e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0Uwq7A-D_1637049960; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0Uwq7A-D_1637049960) by smtp.aliyun-inc.com(127.0.0.1); Tue, 16 Nov 2021 16:06:01 +0800 From: Tianjia Zhang To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org Cc: Tianjia Zhang Subject: [PATCH] x86/lib: Eliminate compilation warnings for misc Date: Tue, 16 Nov 2021 16:06:00 +0800 Message-Id: <20211116080600.31082-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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..da8228f65455 100644 --- a/arch/x86/lib/misc.c +++ b/arch/x86/lib/misc.c @@ -4,6 +4,8 @@ * * (Typed on and submitted from hpa's mobile phone.) */ +#include + int num_digits(int val) { int m = 10; -- 2.32.0