WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [patch 2/4] fix debug=y build: restrict audit_domains_k

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [patch 2/4] fix debug=y build: restrict audit_domains_key to x86
From: Aron Griffis <aron@xxxxxx>
Date: Fri, 2 Jun 2006 10:36:39 -0400
Delivery-date: Fri, 02 Jun 2006 07:37:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060602143144.GA19677@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
This patch is sent mostly as an RFC, since it needs to go to xen-devel for
approval...

audit_domains_key is only defined on x86, restrict it to that
architecture.

Signed-off-by: Aron Griffis <aron@xxxxxx>

--- a/xen/common/keyhandler.c   Thu Jun 01 15:32:44 2006 -0400
+++ b/xen/common/keyhandler.c   Fri Jun 02 10:18:05 2006 -0400
@@ -222,7 +222,7 @@ static void read_clocks(unsigned char ke
 }
 
 extern void dump_runq(unsigned char key);
-#ifndef NDEBUG
+#if !defined(NDEBUG) && defined(CONFIG_X86)
 extern void audit_domains_key(unsigned char key);
 #endif
 
@@ -268,8 +268,10 @@ void initialize_keytable(void)
         't', read_clocks, "display multi-cpu clock info");
 
 #ifndef NDEBUG
+#ifdef CONFIG_X86
     register_keyhandler(
         'o', audit_domains_key,  "audit domains >0 EXPERIMENTAL");
+#endif
     register_keyhandler(
         'T', debugtrace_key, "toggle debugtrace to console/buffer");
 #endif

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel