[PATCH] fix kdb compilation

Christoph Hellwig hch at caldera.de
Mon Sep 17 00:33:18 PDT 2001


Hi Keith,

The attached patch fixes the cmpilation of kdb in my enviroment,
in fact I can't see where ATTRIBUTE_UNUSED might be defined elsewhere.

I have in my tree for ages and I think it should really become part
of the official tree :)

	Christoph

-- 
Of course it doesn't work. We've performed a software upgrade.

--- arch/i386/kdb/i386-dis.c~	Wed Jul 25 15:20:28 2001
+++ arch/i386/kdb/i386-dis.c	Wed Jul 25 15:20:53 2001
@@ -54,6 +54,10 @@
 #include <setjmp.h>
 #endif
 
+#ifndef ATTRIBUTE_UNUSED
+#define ATTRIBUTE_UNUSED
+#endif
+
 #ifndef UNIXWARE_COMPAT
 /* Set non-zero for broken, compatible instructions.  Set to zero for
    non-broken opcodes.  */



More information about the kdb mailing list