[PATCH] UML: TLS fixlets
authorJeff Dike <jdike@addtoit.com>
Tue, 11 Apr 2006 05:53:26 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:35 +0000 (06:18 -0700)
Two small TLS fixes -

arch/um/os-Linux/sys-i386/tls.c uses errno and -E* so it should include
    errno.h
__setup_host_supports_tls returns 1, but as an initcall, it should return 0

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/os-Linux/sys-i386/tls.c
arch/um/sys-i386/tls.c

index ba21f0e04a2f3f28fa9a9f11e8934d64684d827e..120abbe4e3ce2916d7d20eb7680dcdfd2a8c0baa 100644 (file)
@@ -1,3 +1,4 @@
+#include <errno.h>
 #include <linux/unistd.h>
 #include "sysdep/tls.h"
 #include "user_util.h"
index a3188e861cc7f9eba6efbc3c08765800e2cb06b3..71b9796258ef650dc008a5b45a7965fbc8e873aa 100644 (file)
@@ -378,7 +378,7 @@ static int __init __setup_host_supports_tls(void) {
        } else
                printk(KERN_ERR "  Host TLS support NOT detected! "
                                "TLS support inside UML will not work\n");
-       return 1;
+       return 0;
 }
 
 __initcall(__setup_host_supports_tls);