From: Randy Dunlap Date: Wed, 14 Apr 2021 06:43:49 +0000 (-0700) Subject: um: elf.h: Fix W=1 warning for empty body in 'do' statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1a594f0afa2b176531e600a6bf8074849fe2a780;p=linux.git um: elf.h: Fix W=1 warning for empty body in 'do' statement 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 Cc: Jeff Dike Cc: Richard Weinberger Cc: Anton Ivanov Cc: linux-um@lists.infradead.org Signed-off-by: Richard Weinberger --- diff --git a/arch/x86/um/asm/elf.h b/arch/x86/um/asm/elf.h index c907b20d49935..dcaf3b38a9e0e 100644 --- a/arch/x86/um/asm/elf.h +++ b/arch/x86/um/asm/elf.h @@ -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