Message ID | 20240120213312.3033528-1-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-31927-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1810761dyb; Sat, 20 Jan 2024 13:33:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGHHWKvGLCxSxq/2hkVn8/eG96cS79T6WAYF29+sFzdqiY88P+D/E/jWfuTUnBGHPDHmg3 X-Received: by 2002:a05:6870:d146:b0:203:f739:6d48 with SMTP id f6-20020a056870d14600b00203f7396d48mr1953215oac.7.1705786439397; Sat, 20 Jan 2024 13:33:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705786439; cv=pass; d=google.com; s=arc-20160816; b=wN9HKEkpysxwN3RiGrteJD28e8+BbCX4fHV/Nh+/LCyTFVULdYCdu2iN/acw5/ccDA glqXZJaEUJTEenACeBCLeQqoDqzNOAXqYtVMWp8BmojdjVdNnCJviDjtwe8qbwRE9ELZ RBlQtlfx7oqvecFplIA+LeLOn1vDRufmdpZoxlYABRZqGkhUlocwnL66G8G5aYjsth0M +oWaIUdj4SUx5rC2boHcrTo/LtB2+UKMU9CIoqXL19644SCqxbX8wBi+h7orGzIZn/iR /57ps2mWPDM7jQDxGGO9gzFbiAKCRzpxsjvUANjleALH1uepnBI2C+7t8Evs7uyx9ezI DiAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jFhdba5TTp5sXTSDhntEjrm6FNVFMXpo/dgFhajah+g=; fh=27jlxgKfayQupsBbNFaVVKRK/8lAKrQUzdXje0oQ4sc=; b=jcF9XRXnIkp5zSGDb0dzAo8Ll3reJnwb2vnTTLwGTL2xR/koBHTnob6qL7YC6DmM2t KRiJRMCEgCzSraltog5uVFLVMx9lsJHoqZOVep8nj1Qyr7dVgn25kPev2nPt4i/2PGdG 4Ay+fIpw3qwjGQy/UsTuxFspjLzPCXlL38lg9co+cW2F2m2KHgzbv8XJNli3sSYNIyd8 5MWNqyMCPeQKSUcIwYYMBubhf42W8MZXVROl9PJ+GiPPqlr4JSK1p2aQbR7WhoFf5IFN lCUAP7SdiVAX0ZInwQLee+01Ec3wyKypXau6XO2fUzOHSGF3MTPADh3hZ2nf8xrbSlY1 FEqQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XkKzrtQK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31927-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31927-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n38-20020a634d66000000b005ce9059386dsi5489364pgl.391.2024.01.20.13.33.59 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 13:33:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31927-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XkKzrtQK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31927-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31927-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1662A28220C for <ouuuleilei@gmail.com>; Sat, 20 Jan 2024 21:33:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE37314AB2; Sat, 20 Jan 2024 21:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XkKzrtQK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57AA312E69 for <linux-kernel@vger.kernel.org>; Sat, 20 Jan 2024 21:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705786424; cv=none; b=b1XMLIgI5CwVVVt0Znq96o9PNaN8ZSD8cViuDbMSchbQQvrFdYfyH4k/L/0vHmMoVRYOSstZSLxF7zSpxFZWIFLZYd99cDMJO4FlQ2Rteb82ZE9J8vR1zgo9YlJ+4GZ/ZEJfC15A7hvSGWhDY+WvMZ5d4Z5po/1pOVyNAjmFBvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705786424; c=relaxed/simple; bh=ggK882gPcvFDbkLHIJzDPNuG5aqZmqVFz9H9u19MILY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EgRyeYyd7SJvDcBoBo+i2EA3I9rZO+AYfuldOTApGLwhCAazJOnSDPrEiPJTzV0h46zaZfehAtkPVGk4tPK0wpinS70V64wxkRcup3o+NFr4PiVrxUShWrzn0yXlqqcIhYnKVxgV+W+t7TYBvNqTqyLHP0gkgh5ccgoPuhIovdE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XkKzrtQK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86040C433F1; Sat, 20 Jan 2024 21:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705786423; bh=ggK882gPcvFDbkLHIJzDPNuG5aqZmqVFz9H9u19MILY=; h=From:To:Cc:Subject:Date:From; b=XkKzrtQKGts2brCMmCZ5q/1ZCSjfXbAirPlxQTSwPxe6qmbN2steOWoMR4p9y3UdP LXOjz1dpAhLP+ZCe2lGm+SCqaZw0ru3FZn3KXLeKvumzOIfX3TZGLQJbwDZNpT+aJf zPvPm3w1712JBE/t+sBC8m1a5ZYNMezNVrlTGgHSpbYZ+nibs5WOgBU80WOA8cFy7i 0inlxtT0T3JBx90zpNz4p8nNlXKv8sI3ugocmyez//3n4b5IVmUHFntaF2MclIa2l/ u2g6upW94BVJO7qgT3QiSLORsIK0bDvrghj2ztyHor7ZbCECVOoKLhlbglVGLgVtqq mqz8g9cusUPfw== From: Masahiro Yamada <masahiroy@kernel.org> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Al Viro <viro@zeniv.linux.org.uk>, Masahiro Yamada <masahiroy@kernel.org> Subject: [PATCH] riscv: remove unneeded #include <asm-generic/export.h> Date: Sun, 21 Jan 2024 06:33:11 +0900 Message-Id: <20240120213312.3033528-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788646721496845137 X-GMAIL-MSGID: 1788646721496845137 |
Series |
riscv: remove unneeded #include <asm-generic/export.h>
|
|
Commit Message
Masahiro Yamada
Jan. 20, 2024, 9:33 p.m. UTC
Commit 62694797f56b ("use linux/export.h rather than
asm-generic/export.h") replaced deprecated <asm-generic/export.h>
inclusions.
Commit c2a658d41924 ("riscv: lib: vectorize copy_to_user/copy_from_user")
introduced a new instance of #include <asm-generic/export.h>.
arch/riscv/lib/uaccess_vector.S does not use EXPORT_SYMBOL, hence this
include directive is unneeded.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
I CC'ed Al Viro in case he attempts to replace <asm-generic/export.h>
with <linux/export.h> again.
Commit 62694797f56b was suboptimal because arch/riscv/kernel/mcount-dyn.S
does not use EXPORT_SYMBOL. Removing #include <asm-generic/export.h>
was correct.
I had submitted a patchset earlier, but it was not picked up:
https://lore.kernel.org/all/20231126151739.1557369-1-masahiroy@kernel.org/
arch/riscv/lib/uaccess_vector.S | 1 -
1 file changed, 1 deletion(-)
Comments
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <palmer@rivosinc.com>: On Sun, 21 Jan 2024 06:33:11 +0900 you wrote: > Commit 62694797f56b ("use linux/export.h rather than > asm-generic/export.h") replaced deprecated <asm-generic/export.h> > inclusions. > > Commit c2a658d41924 ("riscv: lib: vectorize copy_to_user/copy_from_user") > introduced a new instance of #include <asm-generic/export.h>. > > [...] Here is the summary with links: - riscv: remove unneeded #include <asm-generic/export.h> https://git.kernel.org/riscv/c/3a6dd5f614a1 You are awesome, thank you!
diff --git a/arch/riscv/lib/uaccess_vector.S b/arch/riscv/lib/uaccess_vector.S index 51ab5588e9ff..7c45f26de4f7 100644 --- a/arch/riscv/lib/uaccess_vector.S +++ b/arch/riscv/lib/uaccess_vector.S @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/linkage.h> -#include <asm-generic/export.h> #include <asm/asm.h> #include <asm/asm-extable.h> #include <asm/csr.h>