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-devel

[Xen-devel] benign changes to common Linux files

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] benign changes to common Linux files
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Wed, 02 Aug 2006 16:31:55 +0100
Delivery-date: Wed, 02 Aug 2006 08:31:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I've run across a few seemingly needless changes to pre-existing Linux files, 
that thus only bloat the diff when
generated against a vanilla tree. Examples below. Could we agree on removing 
such deltas? Thanks, Jan

--- linux-2.6.16.13/include/asm-i386/spinlock.h 2006-08-02 15:29:34.000000000 
+0200
+++ 2006-08-02/include/asm-i386/spinlock.h      2006-02-01 18:28:39.000000000 
+0100
@@ -23,7 +23,7 @@
                (*(volatile signed char *)(&(x)->slock) <= 0)
 
 #define __raw_spin_lock_string \
-       "\n1:\t" \
+       "\n1:\n" \
        LOCK \
        "decb %0\n\t" \
        "jns 3f\n" \
@@ -35,7 +35,7 @@
        "3:\n\t"
 
 #define __raw_spin_lock_string_flags \
-       "\n1:\t" \
+       "\n1:\n" \
        LOCK \
        "decb %0\n\t" \
        "jns 4f\n\t" \
@@ -92,7 +92,7 @@ static inline int __raw_spin_trylock(raw
                :"0" (0) : "memory");
 #else
        __asm__ __volatile__(
-               "xchgb %b0,%1\n"
+               "xchgb %b0,%1"
                :"=q" (oldval), "=m" (lock->slock)
                :"0" (0) : "memory");
 #endif
--- linux-2.6.16.13/include/asm-i386/system.h   2006-08-02 15:29:34.000000000 
+0200
+++ 2006-08-02/include/asm-i386/system.h        2006-02-16 08:27:24.000000000 
+0100
@@ -523,8 +523,8 @@ __asm__ __volatile__("6667:\nnop\nnop\nn
                     :                                              \
                     : "i" (X86_FEATURE_XMM2)                       \
                     : "memory")
-#define smp_rmb() smp_alt_mb("lfence")
 #define smp_mb()  smp_alt_mb("mfence")
+#define smp_rmb() smp_alt_mb("lfence")
 #define set_mb(var, value) do {                                     \
 unsigned long __set_mb_temp;                                        \
 __asm__ __volatile__("6667:movl %1, %0\n6668:\n"                    \


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