Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1786729rdb; Sat, 20 Jan 2024 13:33:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk2uagDkSokRmVI9gdDzPUDVg6fgDtWbRqzqDfyr86F/YcIBizH3hp1jLWmzSEZco/+lAF X-Received: by 2002:a05:6214:1d08:b0:681:963:ffd6 with SMTP id e8-20020a0562141d0800b006810963ffd6mr3145848qvd.58.1705786431832; Sat, 20 Jan 2024 13:33:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705786431; cv=pass; d=google.com; s=arc-20160816; b=CpC2XON8JQcPYaOz6YKzFh9VDTE3hcw/6b3AgRxWWIR+aK0Vq0E0BAMo+PjHlWIvJb VIaCltJgIm4q7aWQbmqNwwjV0pwSewIpNDmHbz6tXfL0jYTHStpWaf4ay1YYZGN/bsCA /AzFXMAPNnT6R9QwBto5E4KfQzhpx4HWEAYQBftyjAnB46Ev+rzeT0ygxomgwEFUGh1h XPnzYrQIiXKPqTPeGiXat52Be7nQdrT1ir2T6cj26I2QEJrtNg/8sUUHDEsThnA+b+J+ vOqt7CQH7uNaxRZLgzmaFxCDYFH4QBYhaYvNcGiwVQHlqx6DSfv/cQcJuVvz5dN8Y8iF kxbQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h19-20020a05620a401300b007833e7e6a3csi2502186qko.340.2024.01.20.13.33.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 13:33:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31927-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 93CE41C20DEF for ; Sat, 20 Jan 2024 21:33:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C20A14283; Sat, 20 Jan 2024 21:33:45 +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 ; 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 To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Al Viro , Masahiro Yamada Subject: [PATCH] riscv: remove unneeded #include 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit 62694797f56b ("use linux/export.h rather than asm-generic/export.h") replaced deprecated inclusions. Commit c2a658d41924 ("riscv: lib: vectorize copy_to_user/copy_from_user") introduced a new instance of #include . arch/riscv/lib/uaccess_vector.S does not use EXPORT_SYMBOL, hence this include directive is unneeded. Signed-off-by: Masahiro Yamada --- I CC'ed Al Viro in case he attempts to replace with again. Commit 62694797f56b was suboptimal because arch/riscv/kernel/mcount-dyn.S does not use EXPORT_SYMBOL. Removing #include 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(-) 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 -#include #include #include #include -- 2.40.1