From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755379Ab1BNNbV (ORCPT ); Mon, 14 Feb 2011 08:31:21 -0500 Received: from s15228384.onlinehome-server.info ([87.106.30.177]:60468 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754364Ab1BNNbS (ORCPT ); Mon, 14 Feb 2011 08:31:18 -0500 Date: Mon, 14 Feb 2011 14:32:10 +0100 From: Borislav Petkov To: Sergey Senozhatsky Cc: Ingo Molnar , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "x86@kernel.org" , Tejun Heo , "Petkov, Borislav" , Suresh Siddha , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] x86: fix section mismatch in reference from native_play_dead Message-ID: <20110214133210.GC9137@aftab> References: <20110203131333.GA4161@swordfish.minsk.epam.com> <20110214122550.GA15860@elte.hu> <20110214123244.GA4586@swordfish.minsk.epam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110214123244.GA4586@swordfish.minsk.epam.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 14, 2011 at 07:32:44AM -0500, Sergey Senozhatsky wrote: > > -int __cpuinit mwait_usable(const struct cpuinfo_x86 *c) > > +int mwait_usable(const struct cpuinfo_x86 *c) > > { > > u32 eax, ebx, ecx, edx; > > > > > > `int mwait_usable(..)' is called from `void __cpuinit select_idle_routine(...)' > > I think we still have section mismatch in this case. Is it correct? Right, but mwait_usable() is not __cpuinit anymore and __cpuinit functions should be able to call other functions without annotation, methinks, no? -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632