Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp276544imu; Wed, 7 Nov 2018 17:11:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fZBrUe65luLwQvbVFSU09lgG3r237P6Jl2pVre39eByPHIuVtYTDDWBGQbUJyT6Ccpz27Q X-Received: by 2002:a63:9c1a:: with SMTP id f26mr2161889pge.381.1541639504953; Wed, 07 Nov 2018 17:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541639504; cv=none; d=google.com; s=arc-20160816; b=aRaOIpgaOVruvIA0d22lpDE41w7tGvATP9/dGJma0WDahEQkfCf1RWiQ7Hu569/g1n 34eUrdOqqb/myejoiykavrZ61vMZAH684cTd9EjqRt/XocoykItpWPns6iah1Pl9q8ST QMBhDBN13DUwwm9QBbt3ANzXyGJ+HOQlE3rqoz79hNlahWDPJ0+iagfAY8uiGjVWPqU8 u2mbZ0WzJEEi1Q7PJuvPbpWFQKBPJ0D1HHKwKg1ONcY805xO9ivog3PP0hAh2RffZSCZ Gx5hAKTeWemOz3LIuppFiz1mhiowN7tYeQV9+slpaCixAiDUb97M6JvNGeEDg+oMMFCs qCMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bPLlkNiFhKfAzNa3fTILwi9dyGtAQ4n23EIMz4ahhQ4=; b=sFqbztD8xmFM8gQQVBd29E+rkFMZ7MxyNI1Zfo8oyqCUTPAfNFPZWEFF+6uD/K1KgB jvQNWyaelCfQgPbfoPQc/3gLVc13W+Q2+YvXJlUJkTBG3j5hY7NVPWOpW8YAcMo2u8p0 27Y35F7uZ33OpskfoO52EVntALODet2XtnKvTO0ByZ82yabzh9J+1XT5+Ckp9s6eD+DP yRx5TtTQV+p/rYfe8LuNJaZp2aaNfsDhLDJkgftjNdnr+ehkUnfgzypNPQk6UWrNk0yj tMF0YhqSvUlDSBFlYEr8APQhM/4g7YgGk8G5lEl5g+at07EFmA2MAvYHUfQhvvzM1yzN V88w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2-v6si2411107plk.264.2018.11.07.17.11.29; Wed, 07 Nov 2018 17:11:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728347AbeKHKni convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Nov 2018 05:43:38 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:37392 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbeKHKnh (ORCPT ); Thu, 8 Nov 2018 05:43:37 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id EF39F47483A9AF4715B2; Thu, 8 Nov 2018 09:10:39 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wA81AXhP001727; Thu, 8 Nov 2018 09:10:34 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018110809110079-9299472 ; Thu, 8 Nov 2018 09:11:00 +0800 From: Yi Wang To: tglx@linutronix.de, mingo@redhat.com Cc: bp@alien8.de, hpa@zytor.com, x86@kernel.org, suravee.suthikulpanit@amd.com, puwen@hygon.cn, davidwang@zhaoxin.com, wang.yi59@zte.com.cn, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn Subject: [PATCH v2] x86/cpu: fix prototype warning Date: Thu, 8 Nov 2018 09:12:28 +0800 Message-Id: <1541639548-11149-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-11-08 09:11:00, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-08 09:10:22 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wA81AXhP001727 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fix the following build warnings which because of missing include file: arch/x86/kernel/cpu/cacheinfo.c:647:6: warning: no previous prototype for ‘cacheinfo_amd_init_llc_id’ [-Wmissing-prototypes] arch/x86/kernel/cpu/cacheinfo.c:686:6: warning: no previous prototype for ‘cacheinfo_hygon_init_llc_id’ [-Wmissing-prototypes] arch/x86/kernel/cpu/scattered.c:37:6: warning: no previous prototype for ‘init_scattered_cpuid_features’ [-Wmissing-prototypes] arch/x86/kernel/cpu/scattered.c:60:5: warning: no previous prototype for ‘get_scattered_cpuid_leaf’ [-Wmissing-prototypes] arch/x86/kernel/cpu/topology.c:25:5: warning: no previous prototype for ‘detect_extended_topology_early’ [-Wmissing-prototypes] arch/x86/kernel/cpu/topology.c:57:5: warning: no previous prototype for ‘detect_extended_topology’ [-Wmissing-prototypes] Signed-off-by: Yi Wang --- v2: merge the series into a single patch --- arch/x86/kernel/cpu/cacheinfo.c | 1 + arch/x86/kernel/cpu/scattered.c | 2 ++ arch/x86/kernel/cpu/topology.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c index dc1b934..5bafd93 100644 --- a/arch/x86/kernel/cpu/cacheinfo.c +++ b/arch/x86/kernel/cpu/cacheinfo.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "cpu.h" diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 772c219..5b6866f 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -9,6 +9,8 @@ #include +#include "cpu.h" + struct cpuid_bit { u16 feature; u8 reg; diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c index 71ca064..8f6c784 100644 --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c @@ -10,6 +10,8 @@ #include #include +#include "cpu.h" + /* leaf 0xb SMT level */ #define SMT_LEVEL 0 -- 1.8.3.1