Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LzLHj-00087E-CL for mharc-grub-devel@gnu.org; Wed, 29 Apr 2009 21:41:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzLHh-00086r-HR for grub-devel@gnu.org; Wed, 29 Apr 2009 21:41:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzLHg-00086e-Sk for grub-devel@gnu.org; Wed, 29 Apr 2009 21:41:57 -0400 Received: from [199.232.76.173] (port=57034 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzLHg-00086b-QA for grub-devel@gnu.org; Wed, 29 Apr 2009 21:41:56 -0400 Received: from 74-93-104-97-washington.hfc.comcastbusiness.net ([74.93.104.97]:49183 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzLHg-0007ON-EA for grub-devel@gnu.org; Wed, 29 Apr 2009 21:41:56 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 8B396C8C185 for ; Wed, 29 Apr 2009 18:35:58 -0700 (PDT) Date: Wed, 29 Apr 2009 18:35:58 -0700 (PDT) Message-Id: <20090429.183558.83339991.davem@davemloft.net> To: grub-devel@gnu.org From: David Miller X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 1279 seconds by postgrey-1.27 at monty-python; Wed, 29 Apr 2009 21:41:56 EDT Subject: [PATCH]: Fix warning on ieee1275 platforms other than i386 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2009 01:41:57 -0000 On powerpc and sparc compiling lsmmap.c gives a warning because the mmap iterator function declaration isn't visible. Others provide this via memory.h so let's make these platforms do this as well by simply including ieee1275.h The sparc64 build, at least, is now warning free for me. Committed. 2009-04-29 David S. Miller * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h. * include/grub/sparc64/ieee1275/memory.h: Likewise. diff --git a/include/grub/powerpc/ieee1275/memory.h b/include/grub/powerpc/ieee1275/memory.h index 23e282f..f8f2ff0 100644 --- a/include/grub/powerpc/ieee1275/memory.h +++ b/include/grub/powerpc/ieee1275/memory.h @@ -19,6 +19,8 @@ #ifndef GRUB_MEMORY_MACHINE_HEADER #define GRUB_MEMORY_MACHINE_HEADER 1 +#include + #define GRUB_MACHINE_MEMORY_AVAILABLE 1 #endif diff --git a/include/grub/sparc64/ieee1275/memory.h b/include/grub/sparc64/ieee1275/memory.h index c997f66..25e3100 100644 --- a/include/grub/sparc64/ieee1275/memory.h +++ b/include/grub/sparc64/ieee1275/memory.h @@ -19,6 +19,8 @@ #ifndef GRUB_MEMORY_MACHINE_HEADER #define GRUB_MEMORY_MACHINE_HEADER 1 +#include + #define GRUB_MACHINE_MEMORY_AVAILABLE 1 #endif