Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C150C6FD1D for ; Wed, 15 Mar 2023 23:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233002AbjCOXVQ (ORCPT ); Wed, 15 Mar 2023 19:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232956AbjCOXVH (ORCPT ); Wed, 15 Mar 2023 19:21:07 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 302C09B9AA for ; Wed, 15 Mar 2023 16:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678922465; x=1710458465; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=oUNGwFKGfCNeFmEzlWbIjgeX9cjyVruIm7Nzwqf6dqc=; b=auhUUXaOe0ygPY+iguRGPZEcpI1d3Hc7HaAYqodTtli+OOOzydjGNm4Y 2VIWouPa8DdtakXVsID3wUeLvSLf5sJxjTrGTJNCLd8Y9qV8uldm1TQ/0 MFyAhD5lhsMJ8njzh97PxacSQ+VoqXIURIoZmN6fLd0oS88f4RJJqXa6i wDRwsy5xJFgSkamrYc9HWTGNMFgCC973NGQ2BzIesXCwlqcGO6FOmWBVa AV07Pv+ORRewWTYDNEujjvEBtsKOypEPzvJaNSX7P8beCSE0y5uG4/Lju 75RwOXmIMkglvzI/UAKwHy09+PWhw7ex0H2SA1/xY1hkzzjaD2Fi2vDn6 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="365527073" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="365527073" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 16:21:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="672915107" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="672915107" Received: from iweiny-desk3.amr.corp.intel.com (HELO localhost) ([10.212.196.133]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 16:21:03 -0700 From: Ira Weiny Date: Wed, 15 Mar 2023 16:20:56 -0700 Subject: [PATCH 3/3] arm: uaccess: Remove memcpy_page_flushcache() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20221230-kmap-x86-v1-3-15f1ecccab50@intel.com> References: <20221230-kmap-x86-v1-0-15f1ecccab50@intel.com> In-Reply-To: <20221230-kmap-x86-v1-0-15f1ecccab50@intel.com> To: Dave Hansen , Thomas Gleixner , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Catalin Marinas , Will Deacon , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Cc: Dan Williams , Al Viro , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Ira Weiny X-Mailer: b4 0.13-dev-ada30 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678922459; l=1951; i=ira.weiny@intel.com; s=20221222; h=from:subject:message-id; bh=oUNGwFKGfCNeFmEzlWbIjgeX9cjyVruIm7Nzwqf6dqc=; b=029LLrpbd7VMZrAQfKYKO6kviK6io7TXxDI1OO3rXTtKEVFcqP25qXdcWxYdxjw/HbQDbRkgI tKmFt4wL/zHCVE+R+u24nRdfFvw80JCiCHp6v+2+M42Wcom5uYjWOyD X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=brwqReAJklzu/xZ9FpSsMPSQ/qkSalbg6scP3w809Ec= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache(). Remove the unnecessary memcpy_page_flushcache() call. Cc: Al Viro Cc: "Dan Williams" Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Ira Weiny --- arch/arm64/include/asm/uaccess.h | 2 -- arch/arm64/lib/uaccess_flushcache.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h index 5c7b2f9d5913..4bf2c0975a82 100644 --- a/arch/arm64/include/asm/uaccess.h +++ b/arch/arm64/include/asm/uaccess.h @@ -449,8 +449,6 @@ extern long strncpy_from_user(char *dest, const char __user *src, long count); extern __must_check long strnlen_user(const char __user *str, long n); #ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE -struct page; -void memcpy_page_flushcache(char *to, struct page *page, size_t offset, size_t len); extern unsigned long __must_check __copy_user_flushcache(void *to, const void __user *from, unsigned long n); static inline int __copy_from_user_flushcache(void *dst, const void __user *src, unsigned size) diff --git a/arch/arm64/lib/uaccess_flushcache.c b/arch/arm64/lib/uaccess_flushcache.c index baee22961bdb..7510d1a23124 100644 --- a/arch/arm64/lib/uaccess_flushcache.c +++ b/arch/arm64/lib/uaccess_flushcache.c @@ -19,12 +19,6 @@ void memcpy_flushcache(void *dst, const void *src, size_t cnt) } EXPORT_SYMBOL_GPL(memcpy_flushcache); -void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len) -{ - memcpy_flushcache(to, page_address(page) + offset, len); -} - unsigned long __copy_user_flushcache(void *to, const void __user *from, unsigned long n) { -- 2.39.2