From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935076Ab3DJWPL (ORCPT ); Wed, 10 Apr 2013 18:15:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55830 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754525Ab3DJWPK (ORCPT ); Wed, 10 Apr 2013 18:15:10 -0400 Date: Wed, 10 Apr 2013 15:15:08 -0700 From: Andrew Morton To: Andrew Shewmaker Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [mmotm:master 81/499] WARNING: mm/built-in.o(.text+0x1acc1): Section mismatch in reference from the function reserve_mem_notifier() to the function .meminit.text:init_user_reserve() Message-Id: <20130410151508.b25d2082a7d81496fafd380e@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2013 16:04:11 -0600 Andrew Shewmaker wrote: > On Wed, Apr 10, 2013 at 12:11 AM, kbuild test robot > wrote: > > tree: git://git.cmpxchg.org/linux-mmotm.git master > > head: 47ca352cea8ba679f803387d208c739131ecb38a > > commit: 992357a07ee0697a1997c2960c3f88d02b2f2753 [81/499] mm: reinititalise user and admin reserves if memory is added or removed > > config: x86_64-randconfig-a00-0410 (attached as .config) > > > > All warnings: > > > >>> WARNING: mm/built-in.o(.text+0x1acc1): Section mismatch in reference from the function reserve_mem_notifier() to the function .meminit.text:init_user_reserve() > > The function reserve_mem_notifier() references > > the function __meminit init_user_reserve(). > > This is often because reserve_mem_notifier lacks a __meminit > > annotation or the annotation of init_user_reserve is wrong. > > -- > >>> WARNING: mm/built-in.o(.text+0x1acd8): Section mismatch in reference from the function reserve_mem_notifier() to the function .meminit.text:init_admin_reserve() > > The function reserve_mem_notifier() references > > the function __meminit init_admin_reserve(). > > This is often because reserve_mem_notifier lacks a __meminit > > annotation or the annotation of init_admin_reserve is wrong. > > Andrew, am I right in thinking that functions annotated with __meminit may > be discarded? If so, then I should drop the annotation from init_user_reserve() > and init_admin_reserve() since the memory notifier uses them to reinitialize > memory, right? Yes. And init_user_reserve() and init_admin_reserve() can be made static. I'll fix everything up.