Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757398AbZDSJ7V (ORCPT ); Sun, 19 Apr 2009 05:59:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753555AbZDSJ7L (ORCPT ); Sun, 19 Apr 2009 05:59:11 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:41862 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753456AbZDSJ7K (ORCPT ); Sun, 19 Apr 2009 05:59:10 -0400 Date: Sun, 19 Apr 2009 11:57:59 +0200 From: Ingo Molnar To: Marcin Slusarz , Sam Ravnborg Cc: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, rakib.mullick@gmail.com, akpm@linux-foundation.org, tglx@linutronix.de, linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/urgent] x86: Fix false positive section mismatch warnings in the apic code Message-ID: <20090419095759.GA4808@elte.hu> References: <49EAF31C.8020108@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49EAF31C.8020108@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1348 Lines: 33 * Marcin Slusarz wrote: > tip-bot for Rakib Mullick pisze: > > Commit-ID: aa57a15ad17d284e62fbd24cf7e0eb628b2cb3f7 > > Gitweb: http://git.kernel.org/tip/aa57a15ad17d284e62fbd24cf7e0eb628b2cb3f7 > > Author: Rakib Mullick > > AuthorDate: Sun, 19 Apr 2009 08:41:17 +0600 > > Committer: Ingo Molnar > > CommitDate: Sun, 19 Apr 2009 11:28:18 +0200 > > > > x86: Fix false positive section mismatch warnings in the apic code > > > > find_unisys_acpi_oem_table() and unmap_unisys_acpi_oem_table() > > are non init functions, but these functions calls some init > > functions. But we need these functions as non-init functions. > > Why? This warning seems to be valid. It's put into struct apic::acpi_madt_oem_check - which is a non-init structure. That particular field is only used from init context - but other fields are used all the time. Sam, what's the preferred way to handle these? We could mark the function pointer prototype there as __initdata, but i suspect we'll still get the warning in that case. Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/