From patchwork Thu Apr 2 02:42:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kyle mcmartin X-Patchwork-Id: 15827 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n322gMcU008909 for ; Thu, 2 Apr 2009 02:42:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752909AbZDBCmX (ORCPT ); Wed, 1 Apr 2009 22:42:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753327AbZDBCmX (ORCPT ); Wed, 1 Apr 2009 22:42:23 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:48707 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752909AbZDBCmW (ORCPT ); Wed, 1 Apr 2009 22:42:22 -0400 Received: from kyle by bombadil.infradead.org with local (Exim 4.69 #1 (Red Hat Linux)) id 1LpCsn-000856-54 for linux-parisc@vger.kernel.org; Thu, 02 Apr 2009 02:42:21 +0000 Date: Wed, 1 Apr 2009 22:42:21 -0400 From: Kyle McMartin To: linux-parisc@vger.kernel.org Subject: parisc: fix build when ARCH_HAS_KMAP Message-ID: <20090402024221.GJ1443@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org From: Kyle McMartin When we build for PA8X00, we define ARCH_HAS_KMAP, which results in the kmap_types.h include in highmem.h getting skipped... In file included from include/linux/pagemap.h:10, from include/linux/mempolicy.h:62, from init/main.c:52: include/linux/highmem.h:196: warning: 'enum km_type' declared inside parameter list include/linux/highmem.h:196: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/highmem.h:196: error: parameter 1 ('type') has incomplete type Signed-off-by: Kyle McMartin --- arch/parisc/include/asm/cacheflush.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/parisc/include/asm/cacheflush.h b/arch/parisc/include/asm/cacheflush.h index b7ca6dc..7243951 100644 --- a/arch/parisc/include/asm/cacheflush.h +++ b/arch/parisc/include/asm/cacheflush.h @@ -97,6 +97,9 @@ void mark_rodata_ro(void); #ifdef CONFIG_PA8X00 /* Only pa8800, pa8900 needs this */ + +#include + #define ARCH_HAS_KMAP void kunmap_parisc(void *addr);