From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636Ab1AYHmA (ORCPT ); Tue, 25 Jan 2011 02:42:00 -0500 Received: from pfepb.post.tele.dk ([195.41.46.236]:48917 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751768Ab1AYHl7 (ORCPT ); Tue, 25 Jan 2011 02:41:59 -0500 Date: Tue, 25 Jan 2011 08:41:56 +0100 From: Sam Ravnborg To: Andrew Morton Cc: Geert Uytterhoeven , Sergei Shtylyov , Yoichi Yuasa , linux-mips , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fix build error when CONFIG_SWAP is not set Message-ID: <20110125074156.GA29709@merkur.ravnborg.org> References: <20110124210813.ba743fc5.yuasa@linux-mips.org> <4D3DD366.8000704@mvista.com> <20110124124412.69a7c814.akpm@linux-foundation.org> <20110124210752.GA10819@merkur.ravnborg.org> <20110124223347.ad6072f1.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110124223347.ad6072f1.akpm@linux-foundation.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Andrew Morton > > mips: > > In file included from arch/mips/include/asm/tlb.h:21, > from mm/pgtable-generic.c:9: > include/asm-generic/tlb.h: In function `tlb_flush_mmu': > include/asm-generic/tlb.h:76: error: implicit declaration of function `release_pages' > include/asm-generic/tlb.h: In function `tlb_remove_page': > include/asm-generic/tlb.h:105: error: implicit declaration of function `page_cache_release' > > free_pages_and_swap_cache() and free_page_and_swap_cache() are macros > which call release_pages() and page_cache_release(). The obvious fix is > to include pagemap.h in swap.h, where those macros are defined. But that > breaks sparc for weird reasons. > > So fix it within mm/pgtable-generic.c instead. > > Reported-by: Yoichi Yuasa > Cc: Geert Uytterhoeven > Cc: Sam Ravnborg > Cc: Sergei Shtylyov > Signed-off-by: Andrew Morton I have succesfully build sparc32 allnoconfig + defconfig with this patch. Can you expand the changelog to specify that this fixes sparc32 allnoconfig as well? Consider it: Acked-by: Sam Ravnborg Sam