From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755791Ab2INQiS (ORCPT ); Fri, 14 Sep 2012 12:38:18 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:57860 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712Ab2INQiP (ORCPT ); Fri, 14 Sep 2012 12:38:15 -0400 Date: Fri, 14 Sep 2012 09:38:09 -0700 From: Jerry Snitselaar To: x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com Subject: section mismatch for acpi_unmap_lsapic() Message-ID: <20120914163809.GA6854@cantor.us.oracle.com> Reply-To: Jerry Snitselaar Mail-Followup-To: x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 13ad20c1 "x86 cpu_hotplug: unmap cpu2node when the cpu is hotremoved" in linux-next added code to acpi_unmap_lsapic() that causes section mismatch warnings: WARNING: vmlinux.o(.text+0x694f2): Section mismatch in reference from the function acpi_unmap_lsapic() to the function .cpuinit.text:numa_clear_node() WARNING: vmlinux.o(.text+0x694eb): Section mismatch in reference from the function acpi_unmap_lsapic() to the variable .cpuinit.data:__apicid_to_node Does acpi_unmap_lsapic() need a wrapper like the one that was made for acpi_map_lsapic() or can it just be annotated __ref ? I guess my question is would be there be a reason that the wrapper was created for acpi_map_lsapic() instead of just annotating __ref besides allowing the code for _apic_map_lsapic() to be dropped when HOTPLUG_CPU wasn't configured? Jerry