From patchwork Fri May 14 22:09:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12259223 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=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 13E22C43462 for ; Fri, 14 May 2021 22:11:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84DFE6144B for ; Fri, 14 May 2021 22:11:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84DFE6144B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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: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:In-Reply-To:References:List-Owner; bh=q/0Dnj4Xmj75wqicv0hpjGq/uAvcXML2KY9XknTUpWw=; b=VKeQZMty/Vr9ZhMIVSc9dSJpSi qdvy17GIdDVbbgx/zs8a32j9id0ebN7qXuDBwOj2hO9e88HnXAZg3sEIESgV7BP+vM7n+Vj5Hy2UF UrUs9hYUiOVHLjDBt9H9D8PQ159od5PHr3NXCmt6q/ZumOqWsfsKnh5KJrN6cL4Wi202uA/0ecxzi H0VshYgX5zqjuyx7w5EE4y9tNqIJk5JWh5izgCanOXfm0+JpGpyABpNKWu5i6qGWDtbjEuYRZRLt1 SFA6N/w7n2XwsA04BXWuLyvWsLOzRw6U5EhAYWq6OpAZ6fQKbPopX62czIog7qZVZwOcvwVEICl9v HiWhWaIA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhg1F-0098BD-8r; Fri, 14 May 2021 22:10:53 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhg1D-0098Aq-NF; Fri, 14 May 2021 22:10:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=miI/aEPj8G91cf9USfD8J3zXAl6W6h46Uu9Kg4U0xFU=; b=H4UkK3O6GtztASKUdT5xHBSpDe 3GD/hrBl5eAMoq/hPRkr/IVgqr7vyoLQDU/K0vJgYFtpX0plHr56Idztie130sI+dmO2ZBJYcrc7t md5CtTl0tD6o0JisCAygiM3HwG+wCSgAiifgHO689tSgiHMRV9KEsjt/Wc47BA5mIiQlCIIY/E5dG 2kdPY+caCnTlVBnugNxX7O8P4UCtGpn7QdQJTTclvV4jNAs7Oq2Hg0sZHwsMzbRMU8iYDqv9BG/dA 1JaYKUdNub6BYYB+1Y6uiwzMXutXfEy9xx3gYL3xvL4MqHyvwQzAtvkSnk/qJt8hxmBfJ6KInkCsL Htg3PtsA==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhg1B-00CIAb-56; Fri, 14 May 2021 22:10:50 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F55B61182; Fri, 14 May 2021 22:10:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621030248; bh=zwzpJpxhzEGdOSTs7iHw5uHEDYyGgvaSUy2MfaxR8a4=; h=From:To:Cc:Subject:Date:From; b=Amsg36igKFenDeVbVYqjy3ug1isOcKoawk6bBGVwpXxus0vf9KtNztP7we1xEnUjo G4P9ZW0acUdIcQ54wii2EhWxQzotCNPrDegb9Ij4ShWHQsNq08RmeCBvVFHnUC+v77 5fx2VXC98JVtLXFyuub4Hjokij4TJwUqVxAIe3xhFi40DUBaL6RWuUS7GQqq4QupMJ hGB6WqnnpE2ySboqAEjuH2/wBaJ3s5EYxDocovzG6UVkcoGZM2dDSjIHRZGZPQfPVg qTqvx1B5VLkspJfQlTpO8TCmXDQEghXCqbkRbEToYO10Sayisjq1O+a1YrOM7useM6 FvHmzQq//ayRg== From: Arnd Bergmann To: linux-arch@vger.kernel.org Cc: Arnd Bergmann , Christoph Hellwig , Al Viro , Vineet Gupta , Yoshinori Sato , Brian Cain , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jeff Dike , Richard Weinberger , Anton Ivanov , Sid Manning , Andrew Morton , Mike Rapoport , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-riscv@lists.infradead.org, linux-um@lists.infradead.org Subject: [PATCH 0/5] asm-generic: strncpy_from_user/strnlen_user cleanup Date: Sat, 15 May 2021 00:09:37 +0200 Message-Id: <20210514220942.879805-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210514_151049_262524_9D6BAFC2 X-CRM114-Status: GOOD ( 12.88 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann As I've queued up some patches for include/asm-generic/unistd.h, I remembered an older series that I created but never submitted. These two functions appear to be unnecessarily different between architectures, and the asm-generic version is a bit questionable, even for NOMMU architectures. Clean this up to just use the generic library version for anything that uses the generic version today. Arnd Arnd Bergmann (5): asm-generic/uaccess.h: remove __strncpy_from_user/__strnlen_user hexagon: use generic strncpy/strnlen from_user arc: use generic strncpy/strnlen from_user asm-generic: uaccess: remove inline strncpy_from_user/strnlen_user asm-generic: remove extra strn{cpy_from,len}_user declarations arch/arc/Kconfig | 2 + arch/arc/include/asm/uaccess.h | 72 ---------------- arch/arc/mm/extable.c | 12 --- arch/h8300/Kconfig | 2 + arch/hexagon/Kconfig | 2 + arch/hexagon/include/asm/uaccess.h | 31 ------- arch/hexagon/kernel/hexagon_ksyms.c | 1 - arch/hexagon/mm/Makefile | 2 +- arch/hexagon/mm/strnlen_user.S | 126 ---------------------------- arch/m68k/Kconfig | 4 +- arch/riscv/Kconfig | 4 +- arch/um/include/asm/uaccess.h | 5 +- arch/um/kernel/skas/uaccess.c | 5 +- include/asm-generic/uaccess.h | 52 ++---------- 14 files changed, 24 insertions(+), 296 deletions(-) delete mode 100644 arch/hexagon/mm/strnlen_user.S