Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3339715imu; Sun, 11 Nov 2018 12:44:16 -0800 (PST) X-Google-Smtp-Source: AJdET5fg/Cay/yB8U7ccLepNhRNGp/Qjwx0xk9fpF4cWefP/HK2kE5xPMkDlJhpfqb0kewfIVUQz X-Received: by 2002:a63:8441:: with SMTP id k62mr9226921pgd.392.1541969055980; Sun, 11 Nov 2018 12:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541969055; cv=none; d=google.com; s=arc-20160816; b=CLv0hmsUAqOG2ykt/PAO+V1xReABBLhIl3eYupxOGonbg87BCuzmCghoGF/xCsCaQf 37NP64YVPkqbVveoUBuwvDUwWVSziLvD94DHxhqFr/VX0o6OusklFFCWXgT750sIfoEG SQhheb/U5aRQFtrqIyzsZ+CmZoVpYVV6vn7aOtzeqwBsOC4+a/porX7WBPb0boAUNFDc RV/i3NWg/P9+ddtArZeWEMMiTwpU1qMKZVmJy17z8KtBF6YV+5Z97tHFyNjLkoVCm10U HLSqDOKvQ7tWfKLAgDJ8GPwKHTQQHQEx/BGKF1Lc/3WG4nH0KtMyNVN9VYMFz55+xt9Q D6Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=TEYudDgVcABgCtSD9XKfHp+P6rxNENTZzPpnXbeXYJA=; b=MAWar+oVvaJPr5aantRf3JZI2WmjgF6AxanNWCLmcn1xsDc65oT3YIuEIXnGsC251X gD88iu1svkBw+NgCn2br1s9ZjwiSFwWOhW81y3FAnE7icNKEmV+R7Xe4UN2A3kLXXbRE eahufG8iUjbLs7tt216JbOxB69E9Pb2d41LLX7k5jvm2VC/b6W8e48oKnqSvnkNEVxoE IBVDDstBTUb1ih/2vcL8mrhLtTvB3pe4U4ASWU8c+P7Y+wdB7chP92r3vc3Ot+KNZ29E TP1+tn04mp9Qbg56qNye4ojE6RboJpG8qgjPBQCMsVlnOocMN8lFhMzZZPyaZBGQR+/A ddaA== 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 u11-v6si14265341pgh.55.2018.11.11.12.44.01; Sun, 11 Nov 2018 12:44:15 -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 S1729982AbeKLGcB (ORCPT + 99 others); Mon, 12 Nov 2018 01:32:01 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49340 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729547AbeKLFsC (ORCPT ); Mon, 12 Nov 2018 00:48:02 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsN-0000lH-Tu; Sun, 11 Nov 2018 19:58:32 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsN-0001N3-O1; Sun, 11 Nov 2018 19:58:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Ingo Molnar" , "H. Peter Anvin" , "Linus Torvalds" , "Thomas Gleixner" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 013/366] arch/x86/kernel/cpu/common.c: fix unused symbol warning In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Andrew Morton commit e48510f45107613bf14060eeabd658c49a044242 upstream. x86_64 allnoconfig: arch/x86/kernel/cpu/common.c:968: warning: 'syscall32_cpu_init' defined but not used Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- arch/x86/kernel/cpu/common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1156,6 +1156,7 @@ static void vgetcpu_set_mode(void) vgetcpu_mode = VGETCPU_LSL; } +#ifdef CONFIG_IA32_EMULATION /* May not be __init: called during resume */ static void syscall32_cpu_init(void) { @@ -1167,7 +1168,8 @@ static void syscall32_cpu_init(void) wrmsrl(MSR_CSTAR, ia32_cstar_target); } -#endif +#endif /* CONFIG_IA32_EMULATION */ +#endif /* CONFIG_X86_64 */ #ifdef CONFIG_X86_32 void enable_sep_cpu(void)