From patchwork Wed Mar 15 23:20:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13176751 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBEFCC7618B for ; Wed, 15 Mar 2023 23:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=djIaZz3nTT8P0hudo2o16aJk4llw//B8GFG5yKDkfTs=; b=eXguGSkzt9iMtD chGUpyhKD7t372lqc56zU8UygBRxu2/jZpDBauIedcqE9F0DbCzYCpGn8tl4FdgfnSVQcauzl9KFo ZkpPyuQNN67wzAGquKhmtHWb2YXJO+cz2fnuFOgcHSC4KNi7yByUvEeGwgzT0JM6V4sGSI4vBbCdN L8lKy946HCXscOrJdu1NUCzRPhug5jrZlBHtk7D97A254LvEcb/6BhWBSkh5a5Pmfw/OWISr5qhx5 Ig91odbndCbChX5u+XsY2jaNzl6wWJfei6LBl+EeeDvZPGTYgKkVVkQIMVtg+rAQLTQCO5Gf3ZwTg MEvnlhDX2LUkai2SI9lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcaQs-00EhEg-24; Wed, 15 Mar 2023 23:21:22 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcaQo-00EhDB-2d for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 23:21:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678922478; x=1710458478; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=hTHmFfjOsB4OVepCRKtPKTfrpQQ+NPJymzD64IX4dgI=; b=A5s1iyEFIodKXSGkAPIaByCVmcaiCxkYhpWthmcvp3SBKdnoaHxgiZ1B hoyRo1ao2fXGdvivsoWK5Vm0DlLeX6ouQpFCQppsI03okqBCNHYUIUOhk qfL9jmSMbzBCskxaWBRbCkpE1heZt8Sislh9ybPeHU6FavOGqz//RiOJj Hz3QV7+a65rnoyolHWpF0WGB60XUv0/0KV4UbGA/NrSOPs+cq8E2fXF3e 1R255oatGXCQMDbHUwb2NvxaWZ7W63QQllrREjDk/1IXiTcWH7XCfx14H VBhZL9BztItQyX9/Ru815lo3JvcHGvfZcoNo1vDQn2i1NXCLMuaskRqRe g==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="365527046" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="365527046" 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:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="672915091" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="672915091" 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:01 -0700 From: Ira Weiny Date: Wed, 15 Mar 2023 16:20:54 -0700 Subject: [PATCH 1/3] x86, uaccess: Remove memcpy_page_flushcache() MIME-Version: 1.0 Message-Id: <20221230-kmap-x86-v1-1-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=1867; i=ira.weiny@intel.com; s=20221222; h=from:subject:message-id; bh=hTHmFfjOsB4OVepCRKtPKTfrpQQ+NPJymzD64IX4dgI=; b=R22Wk9eXfxke9PcTFFNPFdA1VAjkKHUHCkHh1AmhPOofA7NfgRUw0cVsSIqTFK5KdEdll3UM1 g6ReFh5l0vcC3FUcAcbPNkHsO4AUXpCGvxlsHRQDHtFWxKTP8cIfI60 X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=brwqReAJklzu/xZ9FpSsMPSQ/qkSalbg6scP3w809Ec= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230315_162118_868901_D947282A X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Commit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache(). kmap_atomic() is deprecated and used in memcpy_page_flushcache(). Remove the unnecessary memcpy_page_flushcache() call. Cc: Al Viro Cc: "Dan Williams" Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x86@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Ira Weiny --- arch/x86/include/asm/uaccess_64.h | 2 -- arch/x86/lib/usercopy_64.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h index d13d71af5cf6..c6b1dcded364 100644 --- a/arch/x86/include/asm/uaccess_64.h +++ b/arch/x86/include/asm/uaccess_64.h @@ -62,8 +62,6 @@ extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size, int zerorest); extern long __copy_user_flushcache(void *dst, const void __user *src, unsigned size); -extern void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len); static inline int __copy_from_user_inatomic_nocache(void *dst, const void __user *src, diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c index 6c1f8ac5e721..f515542f017f 100644 --- a/arch/x86/lib/usercopy_64.c +++ b/arch/x86/lib/usercopy_64.c @@ -136,13 +136,4 @@ void __memcpy_flushcache(void *_dst, const void *_src, size_t size) } } EXPORT_SYMBOL_GPL(__memcpy_flushcache); - -void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len) -{ - char *from = kmap_atomic(page); - - memcpy_flushcache(to, from + offset, len); - kunmap_atomic(from); -} #endif From patchwork Wed Mar 15 23:20:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13176753 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D22EFC61DA4 for ; Wed, 15 Mar 2023 23:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2w5s9Itnkpj30iuCHOhNkdhDc+klzgLQXlgTp31kcnw=; b=UAisDz521UVKda cOleJlz2UGwu4Tf32yfHVpjFxbCGbF5JtkWVSfPO6MeT5Dac6DUdD4rnjOv6RCPx543bcGwV4VxDG aWGUxGQbNAeX8Ro/DEsP1yJrJrqU9MXA9FgBUN49//Na4DN2a981fiQ8a304EPDmrIzxKprmAda95 ZZ1OsQ2hH8pTFwC8yzYyTsczYbp5rwcNDp21tA6NqBNo+4CNjAJ4DcmhKay9ljVLIpZxRJbsWCRUQ 3GBB2ad9eixRIo31k+LJ9j8aajLTnWqDWlOKHeFqmiy/IVHCqVTxkP9R0lRPuwBokC0p2WOZ/6eOh SYYbKVgKbR4iY5LiYLVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcaR3-00EhG2-2l; Wed, 15 Mar 2023 23:21:33 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcaQw-00EhDC-1d for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 23:21:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678922486; x=1710458486; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=nw/5j1jSpLgBUUzdvXc7MsautacAZY58cIXNBbOwElk=; b=BMfQL+CKOMLVs8hidOXO1EkevBHBvwximzpMUIbMNDOnV/t/HX9KFXOj v9ogGhE013zjULSjtsT013+u4D+z1AEj8mSLhVQY3YJLR4sfGMGkU9AWh hQJiEfskL7eRZGzIj2c/A7rI0BrPa9QTVkLnRYJhq1x5jxP8amYsR3qQo FPtEU3ndoqgKr0URWP0sGCXxxMff6Xz1ozZ95S2bpZQJJJvecaPieIpx+ xKYOEjTqakR6V3R4NfChHgGix1ALQ4maivSTOgnHqtoj7j15U1qvAWwy9 oiei4MR8IQAioyKuiISBi670izrpeaA9J2yGPdsOepGJ77HltjOI/IM09 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="365527060" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="365527060" 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:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="672915100" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="672915100" 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:02 -0700 From: Ira Weiny Date: Wed, 15 Mar 2023 16:20:55 -0700 Subject: [PATCH 2/3] powerpc: Remove memcpy_page_flushcache() MIME-Version: 1.0 Message-Id: <20221230-kmap-x86-v1-2-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=1774; i=ira.weiny@intel.com; s=20221222; h=from:subject:message-id; bh=nw/5j1jSpLgBUUzdvXc7MsautacAZY58cIXNBbOwElk=; b=I19fBOZllVPuww2XPYb6Yj7SCTP0c5VvdEc1+udYFhYFeIDcPWfYUR9BHff5pGr5NQfrq/2HP Ku062ohYTaOB3XapC/cKDnTRLhJb/UBQCJE0wd6lYwaIKHy2W6KvNCQ X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=brwqReAJklzu/xZ9FpSsMPSQ/qkSalbg6scP3w809Ec= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230315_162126_584699_7A6959F7 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Al Viro Cc: "Dan Williams" Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Ira Weiny --- arch/powerpc/include/asm/uaccess.h | 2 -- arch/powerpc/lib/pmem.c | 7 ------- 2 files changed, 9 deletions(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h index 3ddc65c63a49..52378e641d38 100644 --- a/arch/powerpc/include/asm/uaccess.h +++ b/arch/powerpc/include/asm/uaccess.h @@ -361,8 +361,6 @@ copy_mc_to_user(void __user *to, const void *from, unsigned long n) extern long __copy_from_user_flushcache(void *dst, const void __user *src, unsigned size); -extern void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len); static __must_check inline bool user_access_begin(const void __user *ptr, size_t len) { diff --git a/arch/powerpc/lib/pmem.c b/arch/powerpc/lib/pmem.c index eb2919ddf9b9..4e724c4c01ad 100644 --- a/arch/powerpc/lib/pmem.c +++ b/arch/powerpc/lib/pmem.c @@ -85,10 +85,3 @@ void memcpy_flushcache(void *dest, const void *src, size_t size) clean_pmem_range(start, start + size); } EXPORT_SYMBOL(memcpy_flushcache); - -void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len) -{ - memcpy_flushcache(to, page_to_virt(page) + offset, len); -} -EXPORT_SYMBOL(memcpy_page_flushcache); From patchwork Wed Mar 15 23:20:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13176750 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68DDBC61DA4 for ; Wed, 15 Mar 2023 23:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nz4PGydSjTHm6NNKC+U7+S2PpU2cmaN2YrJ/ImiAeeU=; b=GWAu7+Ymusb9hQ 9CS2RPNPVh8bsE1ptldKVQVb1sJqOch4anLHyjRxCLouq6+CYqxVFNaTKLx2pVFC9u9kq4LbIfyVv Pl896va2cKLLE9UcgKHixK58rFS50QaZIJoboDNtPMC8THVRS6yGavHe0/P71n/Nd1SO7ywmihai9 UQPO1STrcQ090XD0W+6jevZMR57xD6juSp3Vt2Ff6tD1rFTFnJ7bkQvYxt2DHd+ZfqDiam4kHqs35 WStkw02dFS+Gn4l07cUBAelrNDDPzkXruLZkuuserHO675yMfFSrsanPWtNCjPkACAmStwKxH8bzW TBjfS1k4FmBziZubxpUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcaR2-00EhFm-2q; Wed, 15 Mar 2023 23:21:32 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcaQq-00EhDA-0g for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 23:21:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678922480; x=1710458480; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=oUNGwFKGfCNeFmEzlWbIjgeX9cjyVruIm7Nzwqf6dqc=; b=KTQc3Cgw7zcz+nHGQp3GtgtbGoN5YUFPvWfPzRDEDWC8fLlulfgsxM8d RRwv30F/vDuABBV53Va3+KNfk4SjNy0droZL4QyXcKqGUo5sXQ0nb613Q xkhtS51etOw4OWkokKBSX8EFbYhJCyhEHJoch38Ict4QlnnyxfCOCzuyt UdizCt6ADePdtRI1MjroOI4pXLAad5oiJoxPoA7f3oYk4C2kqtyiUH4Tb GwVrsa7Fv+/AzQOtWBGO34tR9L4MZRJl2z8yl/lFIvzznCuwFCdVVPUDy 00E6OWd9+G2482GTsX8TX8pP+tTldDWj2aHWyp6et6LSa0CwpUwQCt7bT g==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="365527078" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="365527078" 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 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230315_162120_273202_ACB37DE4 X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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) {