summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorLukas Straub <lukasstraub2@web.de>2022-08-26 15:29:31 +0000
committerRichard Weinberger <richard@nod.at>2022-09-19 21:59:47 +0200
commitd27fff3499671dc23a08efd01cdb8b3764a391c4 (patch)
tree9ebf6fd32f69a8c2bc407d8c5962bafab54a5531 /arch/um
parent61670b4d270c71219def1fbc9441debc2ac2e6e9 (diff)
downloadlinux-d27fff3499671dc23a08efd01cdb8b3764a391c4.tar.gz
linux-d27fff3499671dc23a08efd01cdb8b3764a391c4.tar.bz2
linux-d27fff3499671dc23a08efd01cdb8b3764a391c4.zip
um: Cleanup compiler warning in arch/x86/um/tls_32.c
arch.tls_array is statically allocated so checking for NULL doesn't make sense. This causes the compiler warning below. Remove the checks to silence these warnings. ../arch/x86/um/tls_32.c: In function 'get_free_idx': ../arch/x86/um/tls_32.c:68:13: warning: the comparison will always evaluate as 'true' for the address of 'tls_array' will never be NULL [-Waddress] 68 | if (!t->arch.tls_array) | ^ In file included from ../arch/x86/um/asm/processor.h:10, from ../include/linux/rcupdate.h:30, from ../include/linux/rculist.h:11, from ../include/linux/pid.h:5, from ../include/linux/sched.h:14, from ../arch/x86/um/tls_32.c:7: ../arch/x86/um/asm/processor_32.h:22:31: note: 'tls_array' declared here 22 | struct uml_tls_struct tls_array[GDT_ENTRY_TLS_ENTRIES]; | ^~~~~~~~~ ../arch/x86/um/tls_32.c: In function 'get_tls_entry': ../arch/x86/um/tls_32.c:243:13: warning: the comparison will always evaluate as 'true' for the address of 'tls_array' will never be NULL [-Waddress] 243 | if (!t->arch.tls_array) | ^ ../arch/x86/um/asm/processor_32.h:22:31: note: 'tls_array' declared here 22 | struct uml_tls_struct tls_array[GDT_ENTRY_TLS_ENTRIES]; | ^~~~~~~~~ Signed-off-by: Lukas Straub <lukasstraub2@web.de> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
0 files changed, 0 insertions, 0 deletions