From patchwork Wed Apr 14 06:43:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1466016 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Wi8SMEz/; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FKtHR3X3Xz9sVv for ; Wed, 14 Apr 2021 16:44:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yociED9VOMWkvmTA+Dt6NpZ1hg+sx/wi+5S/TBkhlkQ=; b=Wi8SMEz/UKFaAH/4OJtruxrsf jeeTloXPvhv1A6wb5ytyVuah2+dnzMYlB/RkDD/++d8g4yh0gbpAy6omWVVQNb0ZP2Tt7lKJE7at8 NJB5psjFBnacae2Gyc+Asq0gIahdFbtK+TbDurpAh/nBwSmqHliM4U3726rQu3iMdMeUEB+2nu/sM JQb54jxTqgeOXYhp4L250tFSqeU0UEM0uRjhqyKoZGcteCorXCbAoDjpX6HrY48jBS+vI6uJ76Zmb vUO0tnd/LiIe6rq0BJOJXNCGNJkpJ6jTAo6+JcTvHLjjtnt605f7E9GdrDK3Z12WsXEaoL7dqL8VW s934eHPpA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWZFt-00BiJE-R3; Wed, 14 Apr 2021 06:44:06 +0000 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 1lWZFl-00BiGB-5W; Wed, 14 Apr 2021 06:43:57 +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 1/3] um: pgtable.h: fix W=1 warning for empty body in 'do' statement Date: Tue, 13 Apr 2021 23:43:48 -0700 Message-Id: <20210414064350.3923-2-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 X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use the common kernel style to eliminate a warning: ./arch/um/include/asm/pgtable.h:305:47: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body] #define update_mmu_cache(vma,address,ptep) do ; while (0) ^ mm/filemap.c:3212:3: note: in expansion of macro ‘update_mmu_cache’ update_mmu_cache(vma, addr, vmf->pte); ^~~~~~~~~~~~~~~~ Signed-off-by: Randy Dunlap Cc: Jeff Dike Cc: Richard Weinberger Cc: Anton Ivanov Cc: linux-um@lists.infradead.org --- arch/um/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210413.orig/arch/um/include/asm/pgtable.h +++ linux-next-20210413/arch/um/include/asm/pgtable.h @@ -302,7 +302,7 @@ static inline pte_t pte_modify(pte_t pte struct mm_struct; extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr); -#define update_mmu_cache(vma,address,ptep) do ; while (0) +#define update_mmu_cache(vma,address,ptep) do {} while (0) /* Encode and de-code a swap entry */ #define __swp_type(x) (((x).val >> 5) & 0x1f) From patchwork Wed Apr 14 06:43:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1466017 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=rYxtCaTa; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FKtHT4w3gz9sVv for ; Wed, 14 Apr 2021 16:44:21 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zaXDt6kUmHZACoqRfOjnFWCWFlFO744qj0NkMz4w8fM=; b=rYxtCaTaCIt0kP7aSqbOuNroh 5BWgkioiMs27D2qwgu7zpajnckruAmwn6wwBPjkr73oy8I81yvYwSz/K/fr6yGY7gtvG/D7PpmBaZ X/NNDRr6iU2mF4yU8KcTewxLkjRq/oqKCqGeTEk+sk/qGgp+PjgC7/Z1jGm0ZwMaqc7xHmsYVaSrp cp1i4LtkLaft1FMStZNUN6G1EGsllaz+zZ7SStGQwG/uduZellSKPgMal/D1pL9+MXKxwhMOmpmhG oYv+cJVWYcmWDVaegoGbYYCwEqxdwJ/Skn+Jn6bFmrPOZJ2Yy3iXZxrvon73rY+mFgauzmOg6yHk4 SJ10fbTvg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWZFw-00BiJz-G1; Wed, 14 Apr 2021 06:44:08 +0000 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 X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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 From patchwork Wed Apr 14 06:43:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1466018 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=P3CLZ7Hb; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FKtHV1xSxz9sVv for ; Wed, 14 Apr 2021 16:44:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rpPrVKF5Y5g21CGyl4Kx19hXWO/SbUWJs70QdCifEAg=; b=P3CLZ7HbfUNiKj0BlHYtB+L0A ZUqCNlc2bUX/xxKzrzlMKJJwy9uVfTGLcZSctrftkyPPZd4pSU0F7FDujuNNBLDS87SHUgU8nnsos DKpRe9M1Qpv/eklTjYbo67LCRUCSH2kSHVjQmoeqBLSi+uH6lLHRFUDDlP/4t309wVDOILOTmayzr 6AZV1MdqgrcsX5B4n85ASq0EX9v4DPwU9SOiGtclvYgdN2QxE3hXnYGLODoaTfcvXxoPQpLPO+WaV NInKyOk+d+Gu6YEWbllAAF1+i6hY7tgN5wMKLinwi4DJLFqvbgWDcXCmlEMQ+0XpwvpvdE3uu/pg4 ZEBMquYOQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWZG5-00BiLr-Lb; Wed, 14 Apr 2021 06:44:17 +0000 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 1lWZFq-00BiGB-5O; Wed, 14 Apr 2021 06:44:03 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org, kernel test robot Subject: [PATCH 3/3] um: stub_32.h: move 'inline' before 'void' to fix W=1 warning Date: Tue, 13 Apr 2021 23:43:50 -0700 Message-Id: <20210414064350.3923-4-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 X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use the expected ordering of function modifier keywords. arch/x86/um/shared/sysdep/stub_32.h:80:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static void inline remap_stack_and_trap(void) ^~~~~~ Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Jeff Dike Cc: Richard Weinberger Cc: Anton Ivanov Cc: linux-um@lists.infradead.org --- arch/x86/um/shared/sysdep/stub_32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210413.orig/arch/x86/um/shared/sysdep/stub_32.h +++ linux-next-20210413/arch/x86/um/shared/sysdep/stub_32.h @@ -77,7 +77,7 @@ static inline void trap_myself(void) __asm("int3"); } -static void inline remap_stack_and_trap(void) +static inline void remap_stack_and_trap(void) { __asm__ volatile ( "movl %%esp,%%ebx ;"