From: Yi Wang <wang.yi59@zte.com.cn>
To: tglx@linutronix.de
Cc: mingo@redhat.com, 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, dwmw@amazon.co.uk,
gregkh@linuxfoundation.org, thomas.lendacky@amd.com,
fenghua.yu@intel.com, pbonzini@redhat.com,
konrad.wilk@oracle.com, zhong.weidong@zte.com.cn
Subject: [PATCH 3/3] x86/cpu: fix prototype warning in topology.c
Date: Wed, 7 Nov 2018 16:54:37 +0800 [thread overview]
Message-ID: <1541580877-45723-4-git-send-email-wang.yi59@zte.com.cn> (raw)
In-Reply-To: <1541580877-45723-1-git-send-email-wang.yi59@zte.com.cn>
Missing include file causes warning:
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 <wang.yi59@zte.com.cn>
---
arch/x86/kernel/cpu/topology.c | 2 ++
1 file changed, 2 insertions(+)
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 <asm/pat.h>
#include <asm/processor.h>
+#include "cpu.h"
+
/* leaf 0xb SMT level */
#define SMT_LEVEL 0
--
1.8.3.1
next prev parent reply other threads:[~2018-11-07 8:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-07 8:54 [PATCH 0/3] x86/cpu: fix some prototype warning Yi Wang
2018-11-07 8:54 ` [PATCH 1/3] x86/cpu: fix prototype warning in cacheinfo.c Yi Wang
2018-11-07 8:54 ` [PATCH 2/3] x86/cpu: fix prototype warning in scattered.c Yi Wang
2018-11-07 8:54 ` Yi Wang [this message]
2018-11-07 9:46 ` [PATCH 0/3] x86/cpu: fix some prototype warning Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1541580877-45723-4-git-send-email-wang.yi59@zte.com.cn \
--to=wang.yi59@zte.com.cn \
--cc=bp@alien8.de \
--cc=davidwang@zhaoxin.com \
--cc=dwmw@amazon.co.uk \
--cc=fenghua.yu@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=puwen@hygon.cn \
--cc=suravee.suthikulpanit@amd.com \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=x86@kernel.org \
--cc=zhong.weidong@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®