>From akpm@xxxxxxxxxxxxxxxxxxxx Wed May 4 01:36:13 2011 Received: from smtp1.linux-foundation.org ([140.211.169.13]:60493 "EHLO smtp1.linux-foundation.org" TLS-CIPHER: "EDH-RSA-DES-CBC3-SHA keybits 168/168 version TLSv1/SSLv3") by router-fw-old.local.net-space.pl with ESMTP id S1543901Ab1ECXgN (ORCPT ); Wed, 4 May 2011 01:36:13 +0200 Received-SPF: pass (router-fw.net-space.pl: domain of linux-foundation.org designates 140.211.169.13 as permitted sender) client-ip=140.211.169.13; envelope-from=akpm@xxxxxxxxxxxxxxxxxxxx; helo=smtp1.linux-foundation.org; Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id p43NZrg5007125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 May 2011 16:35:53 -0700 Received: from localhost.localdomain (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id p43NZqv0017520; Tue, 3 May 2011 16:35:53 -0700 Message-Id: <201105032335.p43NZqv0017520@xxxxxxxxxxxxxxxxxxxxxxxxxx> Subject: + mm-remove-dependency-on-config_flatmem-from-online_page.patch added to -mm tree To: mm-commits@xxxxxxxxxxxxxxx Cc: dkiper@xxxxxxxxxxxx, dave@xxxxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 03 May 2011 16:35:52 -0700 X-Spam-Status: No, hits=-102.983 required=5 tests=AWL,BAYES_00,USER_IN_WHITELIST X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 X-Bogosity: No, spamicity=0.406815 Return-Path: X-Envelope-To: <"|/usr/bin/procmail -m /home/dkiper/.procmailrc"> (uid 4000) X-Orcpt: rfc822;dkiper@xxxxxxxxxxxx Original-Recipient: rfc822;dkiper@xxxxxxxxxxxx Status: RO Content-Length: 2122 Lines: 59 The patch titled mm: remove dependency on CONFIG_FLATMEM from online_page() has been added to the -mm tree. Its filename is mm-remove-dependency-on-config_flatmem-from-online_page.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: remove dependency on CONFIG_FLATMEM from online_page() From: Daniel Kiper Memory hotplug code strictly depends on CONFIG_SPARSEMEM. It means that code depending on CONFIG_FLATMEM in online_page() is never compiled. Remove it because it is not needed anymore. Signed-off-by: Daniel Kiper Acked-by: Dave Hansen Signed-off-by: Andrew Morton --- mm/memory_hotplug.c | 4 ---- 1 file changed, 4 deletions(-) diff -puN mm/memory_hotplug.c~mm-remove-dependency-on-config_flatmem-from-online_page mm/memory_hotplug.c --- a/mm/memory_hotplug.c~mm-remove-dependency-on-config_flatmem-from-online_page +++ a/mm/memory_hotplug.c @@ -374,10 +374,6 @@ void online_page(struct page *page) totalhigh_pages++; #endif -#ifdef CONFIG_FLATMEM - max_mapnr = max(pfn, max_mapnr); -#endif - ClearPageReserved(page); init_page_count(page); __free_page(page); _ Patches currently in -mm which might be from dkiper@xxxxxxxxxxxx are linux-next.patch mm-remove-dependency-on-config_flatmem-from-online_page.patch mm-enable-set_page_section-only-if-config_sparsemem-and-config_sparsemem_vmemmap.patch mm-pfn_to_section_nr-section_nr_to_pfn-is-valid-only-in-config_sparsemem-context.patch mm-do-not-define-pfn_section_shift-if-config_sparsemem.patch