From: "Tian, Kevin" Subject: RE: [PATCH] Clean up warning for page_alloc.c Date: Mon, 27 Feb 2006 12:54:54 +0800 Message-ID: <571ACEFD467F7749BC50E0A98C17CDD802C06D7F@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Return-path: Content-class: urn:content-classes:message List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masaki Kanno , xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org To me, it's more meaningful to change mmzone.h, because we're in=20 xen world. Due to historical reason, still some of linux files are = remained unchanged in xen/ia64, with most stuff useless (like MMZONE = below).=20 It's only work around in early stage for compilation, and now time for=20 us to remove most of them and create new header files specific to=20 xen/ia64 if necessary. I think this can be the guideline when you're=20 cleaning up with confliction seen. ;-) Thanks, Kevin >-----Original Message----- >From: xen-devel-bounces@lists.xensource.com >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Masaki = Kanno >Sent: 2006=C4=EA2=D4=C227=C8=D5 12:35 >To: xen-devel@lists.xensource.com; xen-ia64-devel@lists.xensource.com >Subject: [Xen-devel] [PATCH] Clean up warning for page_alloc.c > >Hi all, > >I clean up warning in xen/ia64. >The "MAX_ORDER" is redefined as I show below it. >I didn't change the Linux original code "mmzone.h" and thought >to change a local definition in "page_alloc.c". >This patch changes a local definition from "MAX_ORDER" to >"XEN_MAX_ORDER". > >page_alloc.c:222:1: warning: "MAX_ORDER" redefined >In file included from >/home/kanno/xen-ia64-unstable.hg/xen/include/asm-ia64/linux-xen/linux/gf= p.h: >7, > from >/home/kanno/xen-ia64-unstable.hg/xen/include/asm/mm.h:6, > from >/home/kanno/xen-ia64-unstable.hg/xen/include/linux/mm.h:79, > from >/home/kanno/xen-ia64-unstable.hg/xen/include/asm-ia64/linux-xen/asm/uacc= >ess.h:39, > from >/home/kanno/xen-ia64-unstable.hg/xen/include/asm/domain.h:143, > from >/home/kanno/xen-ia64-unstable.hg/xen/include/xen/sched.h:15, > from page_alloc.c:28: >/home/kanno/xen-ia64-unstable.hg/xen/include/asm-ia64/linux/mmzone.h:19:= >1: warning: this is the location of the previous >definition > >Signed-off-by: Masaki Kanno > >Best regards, > Kan