um: elf.h: Fix W=1 warning for empty body in 'do' statement
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 14 Apr 2021 06:43:49 +0000 (23:43 -0700)
committerRichard Weinberger <richard@nod.at>
Thu, 15 Apr 2021 21:10:50 +0000 (23:10 +0200)
Use the common kernel style to eliminate a warning:

./arch/x86/um/asm/elf.h:215:32: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body]
 #define SET_PERSONALITY(ex) do ; while(0)
                                ^

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: linux-um@lists.infradead.org
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/asm/elf.h

index c907b20..dcaf3b3 100644 (file)
@@ -212,6 +212,6 @@ extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu);
 extern long elf_aux_hwcap;
 #define ELF_HWCAP (elf_aux_hwcap)
 
-#define SET_PERSONALITY(ex) do ; while(0)
+#define SET_PERSONALITY(ex) do {} while(0)
 
 #endif