From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C494C433ED for ; Wed, 14 Apr 2021 06:44:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 096DC613BB for ; Wed, 14 Apr 2021 06:44:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348125AbhDNGos (ORCPT ); Wed, 14 Apr 2021 02:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348131AbhDNGoY (ORCPT ); Wed, 14 Apr 2021 02:44:24 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 788CDC061574 for ; Tue, 13 Apr 2021 23:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=8H+EJ4mGt+B3VfDqn87L4ckdBLQjNt24eNYrYrDdYqM=; b=SzkGU00apWx8Q14rKjxM5fNxGl 0tSr1zqTW22WvnT5OvJ+qJU+Cb5rHvxXqEOXJDLymlL84DnydJCTkAO+YVv7ijK4PLLVzHVB5X/es n8+NcJXGurZScswO8ZMoQ0NWJqV24ikW3V56par9+jB6ZMeY7zrfstogOiqfswrZlTlJbWAzcxNEI iQ6KbzzqXl3JWd6GZqk507YLKFDYrtaMhjBcSEaJxBu3P7FKk7dZ4tIMCABfCjB9GTNsIpmCTeVj+ nOiD0uvVF/7RO9KAvO/OT+VnKB7SiH6lMGL64LacZKB0wcSix7OvUaAjLAWPEQvo8ccK47DxASdM9 RIKeDBvQ==; Received: from [2601:1c0:6280:3f0::e0e1] (helo=smtpauth.infradead.org) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lWZFn-00BiGB-Ch; Wed, 14 Apr 2021 06:43:59 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org Subject: [PATCH 2/3] um: elf.h: fix W=1 warning for empty body in 'do' statement Date: Tue, 13 Apr 2021 23:43:49 -0700 Message-Id: <20210414064350.3923-3-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210414064350.3923-1-rdunlap@infradead.org> References: <20210414064350.3923-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/um/asm/elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210413.orig/arch/x86/um/asm/elf.h +++ linux-next-20210413/arch/x86/um/asm/elf.h @@ -212,6 +212,6 @@ extern int elf_core_copy_fpregs(struct t 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