Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14295581pxu; Mon, 4 Jan 2021 19:48:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW5jOkty9WDkDZ1saAN8GSrpcGMGlsODpICIALr6UzNSYjIcmE5BQMs3F/UbUksqCGYtoI X-Received: by 2002:a50:9dc9:: with SMTP id l9mr73427523edk.377.1609818490634; Mon, 04 Jan 2021 19:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609818490; cv=none; d=google.com; s=arc-20160816; b=NFbpoDQ04LTD9IrWtyRFmXs30ITkrB/1Ay1gB/kBEmCN81Wke714ligb4rz2hmuPDB CYQcW36tp4NrKD4SdB+g9ZhSrjffVKXxCehLAoVsLoRFjGPJIVaPT6NY0/Iiwy/L4pE8 wDcTQ5OrxHHvSAUp5gwKDqxM4LazqlSt63xp8Hc4+75opv3d3KGSyHxRTtjfyh2+WuMh SmLpb7QMd2LiU/nw11vLZQDXQ/daglFGsUS+lpjyI9lnIm0seIx9IjWzpHaP/mDcplbo Pcq86c7VtNzaiIrtQHT6d1gxn2w2g1y4bMkB+o+Kuh8IpM/EJY2yT4k3YOmDicif6hK6 Rz2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=LL0n5x3ZKQKBeJnSSJSM66PM0K/AJjwB+1HmKM1hr8U=; b=EchC42WfLL8dxZrZWXTKSczszIAymbVsCVZi5qSAQFJh/N/PmvYGwxG69s02C+VaRv 5iTVQuNXUxICakuvGRBgtQ4lXFuY0mFr3vCGozftX53moYZiBX8jo4aTQpKtpaGJNmSa d9NppP62xqGqHac6MMsfDQFeml8lZdePoHPRLvFaAZWQ79jdWqs0TZSD0oqv5OXCFvmn eOwecXsLTXJuIJtmGDytlsaKlGsWNgnuUXi+d0ZZkA9+AE6gLrv4tUWAW94lRsX+vJDK JbgywbC8hegWNuY8wD/dbCHX0qw8l4d3ZiyBHM4nM30CYcsLutq+D3zrfBbNVcLOo55R BplQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vqHQHb72; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si31433476edr.148.2021.01.04.19.47.39; Mon, 04 Jan 2021 19:48:10 -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=@infradead.org header.s=casper.20170209 header.b=vqHQHb72; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727701AbhAEDqc (ORCPT + 99 others); Mon, 4 Jan 2021 22:46:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbhAEDqb (ORCPT ); Mon, 4 Jan 2021 22:46:31 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A52C061574; Mon, 4 Jan 2021 19:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=LL0n5x3ZKQKBeJnSSJSM66PM0K/AJjwB+1HmKM1hr8U=; b=vqHQHb729MK/QOY1e4fmVZYfud /TD9vGo4S6EN6UBI+d2ADvQfqXa3B0+lr1/RL8oNt4hJto7ltzwc/+KwiFIxBi0ukO1d+E/O6ryKc Zwt7vKpdx69+TBSZLxxY7ZYbMzVj1tEmhkQO30zFGsZH7kQzEFWwiLRlP1oVDc/e2RGHwJCDnUilt lNs3AgC8+Msq9m4ryKAY3Nie/F51/2kCM0Nuf6Urnkka/a3bZS16Z5HICp7iqi9Wc2zQoG1uQfjDi r1hNWwUQH/e/pA8RC31LjXXerP46hcx0TayKREjnmGNFx6LT31RXQaVCXIVhEmqriQ94csQVnDN5t 7iyMVmOA==; Received: from [2601:1c0:6280:3f0::64ea] by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1kwdEH-000pgb-Q7; Tue, 05 Jan 2021 03:42:36 +0000 Subject: Re: [PATCH v2] fs/dax: include to fix build error on ARC To: Dan Williams 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 References: <20210101042914.5313-1-rdunlap@infradead.org> From: Randy Dunlap Message-ID: Date: Mon, 4 Jan 2021 19:41:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/4/21 12:13 PM, Dan Williams wrote: > 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). Got it. Thanks. Vineet is copied. I expect that he will take the v3 patch. >> #include > > Yes, this one should have a linux/ api header to front it, but that's > a cleanup for another day. That line is only part of the contextual diff in this patch. I guess you are just commenting in general, along with your earlier paragraph. >> >> #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; -- ~Randy