Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14297037pxu; Mon, 4 Jan 2021 19:52:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI6Z4fc4tRSD8WzXr78nnCnU7EwTuQnPL3X3hxo74r1JOZw1Ws4P3yyY7XxVpAmEK1sBTR X-Received: by 2002:aa7:d99a:: with SMTP id u26mr75342842eds.32.1609818750544; Mon, 04 Jan 2021 19:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609818750; cv=none; d=google.com; s=arc-20160816; b=ZbKuP9qfIPrmCVKz7em0VTXN321JaIhkwzPbcmRo2FelVFdMsAWzv7zVTAMLWVFf0W ZGlduAtu7u5bviZKkcV7Q2aSFeOam1FGhKj8Jm/gPUQ9Yn6+v0FBwfUDFT0Vc29Fl5sy QeTjz7FNoDxLLso+e4gX9eb57Lbk70eMI+l+WX8/wZ+gAuCBuXKifNL5teT4hozfh6yx SfHhKM3tI391zRJVB1ygRPhVVNTtB9xA2AAXSMyA0HkMJiRSwZEdTP2GyV6KpKFcflxr Wz/wXfIvQnzOq+Z3x4MnZKOvH42bYp3w/oPfLVoghvweYQOwf50nLL/Teqzhz84P7VuW 2MmA== 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=b3i2DWNklZVjsl2UAKCa7AqbN0KVFXiRrj/Leq+WDOM=; b=saWpqMAbpQLCqDQ16SSa71ZJI+naaLVyaUP76RhmAM6UQAXTygAzaq6nWBfJ8P3fet 3q8njfqvMw6uuTD9Tf/z83YkATL+jyixCAvhQlJtmkl3UorDBvvXm9dN92A0C4Q8o5qH bBR+FUnbD73Hb5KnYvZvEvRBlBqTX+581Io15rbcyf3wq65nrvoWTw5/5V0nQ76Ua+rE netO4F7LAmWRywxDv04/rUxaYfBC7xDPe7SLAy+0oGIgKA95TSf8X15RLXHLKbTaxs/O ERtDm220vYrOhyOUjxmLCm1fAqzrRaX+fed8hUn8Xjbq1JJcq5GwLtTPi+QkycbrGpep GdYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QaoV+dt8; 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 e20si30307638ejq.444.2021.01.04.19.52.07; Mon, 04 Jan 2021 19:52: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=QaoV+dt8; 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 S1728231AbhAEDv2 (ORCPT + 99 others); Mon, 4 Jan 2021 22:51:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728138AbhAEDv1 (ORCPT ); Mon, 4 Jan 2021 22:51:27 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09126C061793 for ; Mon, 4 Jan 2021 19:50:47 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id r5so29588892eda.12 for ; Mon, 04 Jan 2021 19:50:46 -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=b3i2DWNklZVjsl2UAKCa7AqbN0KVFXiRrj/Leq+WDOM=; b=QaoV+dt85/SIxPaD152+bpRXhieIfNZjXCLFUmnjYeOVSlH2J6hfzWGAON68nNBgrD /TguU7C/InTWFGCWhMMaUvR7E8YseVqLQhvWeGBHfIum06L67uPE7MK4PTnqxNrhKbi0 Top9zLT03LMVUN9t9xou9mOwcAu0SfHQ8vG3cNhJZ94pMrW4w26tG2JgcA4Vz2Cr4+HC 8m1ps6dEEn5wYPuqceRcDZBtkNqB42Io6Hq+8OWaLe+fItq9KgaSbkU3ML5wcpih3N4Z i36QU52gQvhylBwEKNULGyufAdMV0f6PG3GdI2IvKEIxPWba7I2olzRfKUvZqdepRwUn agJw== 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=b3i2DWNklZVjsl2UAKCa7AqbN0KVFXiRrj/Leq+WDOM=; b=gerrG+Ssbs8cOn8+y/fPlQ7PPrZmxZLs39fxtmFfAJl2fRJJc3FIyGIef5s18coYB7 sv5vPisOQeZAO4AvvpKwPhCFb471KK5EA+SbGeYcPVR+CMjkqv/cNV61Off82q7jzhHN 6l/QWYcsuOrgVE+youM0VCPi5VtoeT+JQ2qdzomf7cgyvT5JC4gd4CqmXcSr5Z/fLyLR cJBvGmPQe/ih4O0S20McDPMM1ASFNadwN1cb7PF0k41ZATIqQue55GjJOX7RloOLHOKq eE9YVQzcBZRCbdGWLoqsa9nJ60TX/nHGo/uueqYDNKUfwMvnCv3tK6x5i9vlFmwjkRkC ENBA== X-Gm-Message-State: AOAM531lfcZIIsj1fziOnMzWwQ6jvFdSf4EMx83S5Y3u8Yph3w0nDqW8 vR/fkZtWWSRtnEXsIjCbXu7WL4VB/443TLaznTWINw== X-Received: by 2002:aa7:df0f:: with SMTP id c15mr75010622edy.354.1609818645726; Mon, 04 Jan 2021 19:50:45 -0800 (PST) MIME-Version: 1.0 References: <20210101042914.5313-1-rdunlap@infradead.org> In-Reply-To: From: Dan Williams Date: Mon, 4 Jan 2021 19:50:39 -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 Mon, Jan 4, 2021 at 7:47 PM Randy Dunlap wrote: > > 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. Yes, I was prefetching a "...hey, but, there's an asm/ include right below this one?"