From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751805AbdJWTgG (ORCPT ); Mon, 23 Oct 2017 15:36:06 -0400 Received: from relay3.sgi.com ([192.48.152.1]:55530 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751705AbdJWTgF (ORCPT ); Mon, 23 Oct 2017 15:36:05 -0400 X-Greylist: delayed 636 seconds by postgrey-1.27 at vger.kernel.org; Mon, 23 Oct 2017 15:36:05 EDT Message-Id: <20171023191841.985614692@stormcage.americas.sgi.com> References: <20171023191841.865008281@stormcage.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Mon, 23 Oct 2017 14:18:42 -0500 From: To: Thomas Gleixner , Peter Zijlstra , Ingo Molnar , "H. Peter Anvin" Cc: Bin Gao , Prarit Bhargava , Dimitri Sivanich , Andrew Banman , Russ Anderson , linux-kernel@vger.kernel.org, x86@kernel.org Subject: [PATCH 1/1] x86/platform/UV: Mark tsc_check_sync as an init function. Content-Disposition: inline; filename=uv-set-tsc-check-as-init Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix build problem: >> WARNING: vmlinux.o(.text+0x4223a): Section mismatch in reference from the function uv_tsc_check_sync() to the function .init.text:uv_early_read_mmr() The function uv_tsc_check_sync() references the function __init uv_early_read_mmr(). This is often because uv_tsc_check_sync lacks a __init Signed-off-by: Mike Travis --- arch/x86/kernel/apic/x2apic_uv_x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c +++ linux/arch/x86/kernel/apic/x2apic_uv_x.c @@ -154,7 +154,7 @@ static int __init early_get_pnodeid(void return pnode; } -static void uv_tsc_check_sync(void) +static void __init uv_tsc_check_sync(void) { u64 mmr; int sync_state; --