Skip to content

Commit a5d2f46

Browse files
cfd-36Linus Torvalds
authored andcommitted
[PATCH] UML: TLS fixlets
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7383005 commit a5d2f46

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/um/os-Linux/sys-i386/tls.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <errno.h>
12
#include <linux/unistd.h>
23
#include "sysdep/tls.h"
34
#include "user_util.h"

arch/um/sys-i386/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static int __init __setup_host_supports_tls(void) {
378378
} else
379379
printk(KERN_ERR " Host TLS support NOT detected! "
380380
"TLS support inside UML will not work\n");
381-
return 1;
381+
return 0;
382382
}
383383

384384
__initcall(__setup_host_supports_tls);

0 commit comments

Comments
 (0)