Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14079382pxu; Mon, 4 Jan 2021 12:15:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrDv8VeVyapyxxY0/hdVAtHr9v1ZaDKHxWqLW0feHWLLQTLeMkSvT7FlK4AyBJN0FqSdGX X-Received: by 2002:a17:906:3b5b:: with SMTP id h27mr67050270ejf.450.1609791330537; Mon, 04 Jan 2021 12:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609791330; cv=none; d=google.com; s=arc-20160816; b=rfeHGQehj5lDssraBIyjJ9iNqDK9VCls3cx4q2EaNgrji10C1xW08JY+yeUXypLxz/ KVd5QmCqwJmdDSHOihY81JQ4fn9IHSTX7wmM+vMuZ6XHs+uXISdsNMUrbBG19UOzp7zD +7sgPzcQ0byFfTddNFDcp7ZaD5XaQng7DSaC2YmWpyeJkEz2WTbZZBZXpd2aX7+UiQCO cUexiezPoMkOf4KOpF9ECTjqo95/uwicWYa8ugoEnfTRvNhtxjXZIyuKCIvGL9BaU4W3 JPw7CDqXLZaoSKi3mroeX3oMLvtExgEW6XG3f8mmuG2FQXNkdwjuM7CHtGM6q9Tnh47g NQOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7kOBICLhgLGGyrBsGRMV3d/XVZVOrn09qft6qb67hiE=; b=GrrGA1LNxb4f0B6yn+ngoT4SWE6UDS6v7CLJiIzFQZoBpd19MHORwNrRUyfJUhYekm ghjTOUK2hGUtoyL5rSjraG91jKAp/zl9oY1rGFzzgZ467fLb2MCvjVP8EQUTr3YIRicw FCk6Ku/GH7PIS+i25pCD3BtNL49ndFOkMmuOoWbm3MG6TG+q+R8wdDq5wlQxPwlBfNZ9 7mqhgqZBLg0GBAcFnUL6grRVOUE2RQnaspgG1IeWiS8D77XhTuzIiIy7Vx0KvHXaf4ZY PcMjfvhY5LEsot50dAyHW7Wfaz9oy06y9rL8gsSDlGvlGDThDntJfgJ5duIwHE8QMQ8n NR9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="b7+VQwx/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si32084074edb.312.2021.01.04.12.15.07; Mon, 04 Jan 2021 12:15:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="b7+VQwx/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727860AbhADUNu (ORCPT + 99 others); Mon, 4 Jan 2021 15:13:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727698AbhADUNt (ORCPT ); Mon, 4 Jan 2021 15:13:49 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDC4C061574 for ; Mon, 4 Jan 2021 12:13:09 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id w1so38391494ejf.11 for ; Mon, 04 Jan 2021 12:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7kOBICLhgLGGyrBsGRMV3d/XVZVOrn09qft6qb67hiE=; b=b7+VQwx/HUQzT1Lln1PrW9cd3nW1D010dCcBMbiDuL8w8T2cMiST0QajPYCyO9SBTy E+7xVOhLrFVJHR+eUx1Ij+VS2X57fazwKoDionRO4qDeMd7X03I234SRmEUAPqe2R5Xa ILlc302XjgoH5Sb9Yqfte/wMcpHbdyYWLbrxXh4dys0bF7YG4zkHLzESiH5c7HdCyToB 1fXlQ/L7kIH37aSQ7TFVTIolgaJRkFT5ppz+EOR/Qk4YOCFsVgzztEwTaOK4xAnSZ/xw nNEP6gn0mObJwoCPXe0QJbplu6Itl2Ty79I28i8dSDWE0XtVR5Sxh2PCd/D8T2JoHd3K JLAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7kOBICLhgLGGyrBsGRMV3d/XVZVOrn09qft6qb67hiE=; b=GUd+sB1BcXm2dBDKTCydlwHAHcSwWuFAX/8oY7oTDf1qqWJ0rLRRDoeov7shr4cuMO +BrUvvx1ZkbZHrYG7hlHENbSHQSOjPUVqTnXTjHSIqFsOuUOOlo2xjqvLUdTfJpOSTYj lsKCniNvdH/5zJ4xaWtcxj0ecN2dZRX4KWIjvWPYLJAZ9cUGxtMWioyllhLGP9pA18tQ lx93Fyg/espkFOBkFIBQVY5BtPblrnaqfapBnr1OJp5kKX9xNbjuBbx6mx4qXeubnydk jLUDS3C5OqDJH0hKIhoo/OGOg/51PAVRBc0q0i93tTXpjLGHQ2T3u92/VwmDQuYc/gUM LKaA== X-Gm-Message-State: AOAM530LLxzE54HH1Enf/KUVBK+6/JC/1DcJ9nmehCBHrqs8fsAjz8nJ KKyWsKj4NNVwJTrUnRlfvPG4i0ZkycbfUA7yMZpHFPLwrI8= X-Received: by 2002:a17:906:2707:: with SMTP id z7mr68530499ejc.418.1609791188031; Mon, 04 Jan 2021 12:13:08 -0800 (PST) MIME-Version: 1.0 References: <20210101042914.5313-1-rdunlap@infradead.org> In-Reply-To: <20210101042914.5313-1-rdunlap@infradead.org> From: Dan Williams Date: Mon, 4 Jan 2021 12:13:02 -0800 Message-ID: Subject: Re: [PATCH v2] fs/dax: include to fix build error on ARC To: Randy Dunlap Cc: Linux Kernel Mailing List , kernel test robot , Vineet Gupta , linux-snps-arc@lists.infradead.org, Vineet Gupta , Andrew Morton , Matthew Wilcox , Jan Kara , linux-fsdevel , linux-nvdimm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: > > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in (beside copy_page()) and > add to fs/dax.c to fix the build error. > > ../fs/dax.c: In function 'copy_cow_page_dax': > ../fs/dax.c:702:2: error: implicit declaration of function 'copy_user_page'; did you mean 'copy_to_user_page'? [-Werror=implicit-function-declaration] > > Fixes: cccbce671582 ("filesystem-dax: convert to dax_direct_access()") > Reported-by: kernel test robot > Signed-off-by: Randy Dunlap > Cc: Vineet Gupta > Cc: linux-snps-arc@lists.infradead.org > Cc: Dan Williams > Acked-by: Vineet Gupta > Cc: Andrew Morton > Cc: Matthew Wilcox > Cc: Jan Kara > Cc: linux-fsdevel@vger.kernel.org > Cc: linux-nvdimm@lists.01.org > --- > v2: rebase, add more Cc: > > arch/arc/include/asm/page.h | 1 + > fs/dax.c | 1 + > 2 files changed, 2 insertions(+) > > --- lnx-511-rc1.orig/fs/dax.c > +++ lnx-511-rc1/fs/dax.c > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include I would expect this to come from one of the linux/ includes like linux/mm.h. asm/ headers are implementation linux/ headers are api. Once you drop that then the subject of this patch can just be "arc: add a copy_user_page() implementation", and handled by the arc maintainer (or I can take it with Vineet's ack). > #include Yes, this one should have a linux/ api header to front it, but that's a cleanup for another day. > > #define CREATE_TRACE_POINTS > --- lnx-511-rc1.orig/arch/arc/include/asm/page.h > +++ lnx-511-rc1/arch/arc/include/asm/page.h > @@ -10,6 +10,7 @@ > #ifndef __ASSEMBLY__ > > #define clear_page(paddr) memset((paddr), 0, PAGE_SIZE) > +#define copy_user_page(to, from, vaddr, pg) copy_page(to, from) > #define copy_page(to, from) memcpy((to), (from), PAGE_SIZE) > > struct vm_area_struct;