Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11747347pxu; Thu, 31 Dec 2020 20:32:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwp5/92hmJwh3utlNrz7dLLa0sGzHMk3InPQ3ApC0T/tc3sgChYGkC8P/IHmYf9/PMqdw38 X-Received: by 2002:aa7:cd44:: with SMTP id v4mr57822964edw.156.1609475566440; Thu, 31 Dec 2020 20:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609475566; cv=none; d=google.com; s=arc-20160816; b=WvrfyfD5EBTSEvsYqN9yLONhGB2yY4rpBXlLr/T2DEE7vCMbYJ+5H+wAp/+21IaqAm /H/Xiwba0P1FOK2hHi7aBmc+U7VBNm0bA4cRU6ooUcDEValHtcRoyjalA7b0VpF4xEiW aGQmwMVqj49Ma14UO9TT7BzcMT37b2EpXn0Y7DM4L298toefpXsOCaI4RsVwmqa9Q9u0 WTGbCegz2Kd1xkgah/UhBSxOcn8znhqhnIVNLrEINI6Xh8BbCKt3Kmem3XTkZ3TSWqJv bluhQ8KwssM8974DHz5katW58QEFVySTYMEh+6PRVZX7TL9ddmBZlVvgoC99C1u5ggJA NV6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=03MHVj7uFca2pur9ftrcvmwDErnMJojp89WXgKNO4AA=; b=fn9I+QrEpRiXTx4EXWxWkrWzYCJ7xPpTMSy8LoxDp/4yq3z/eGpKsg86Vq/t4FcCrp g1F2i03ycRe8izp8Mfqh7IxZv896XEyM3OxvjbEi6JQAE30Ruc9XxV4l80aGbdkolQ3n BhFX4qXcNJbZuTUD3O0xZj5XwyoeG4qW23y0Pe9i2yr/VmOMdyHancIUr+arn/FaAM+s fGjXLH3C+mzf0ud8HbwcHhtNGnd1aDnWPN5p3lU5i+ohWpUEis8Pas1eHuNRHW0Dnuaz qXkwjvp2W7KL1rfbNc3NAm6aFirPpliQg2nddsBxzo7WMyiCZw46+nJ5Y+0tFwcpSqJy Cw+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ulXhILNk; 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 y24si25693977edv.565.2020.12.31.20.32.12; Thu, 31 Dec 2020 20:32:46 -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=merlin.20170209 header.b=ulXhILNk; 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 S1726390AbhAAEaF (ORCPT + 99 others); Thu, 31 Dec 2020 23:30:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbhAAEaF (ORCPT ); Thu, 31 Dec 2020 23:30:05 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4273AC061573; Thu, 31 Dec 2020 20:29:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=03MHVj7uFca2pur9ftrcvmwDErnMJojp89WXgKNO4AA=; b=ulXhILNkO4Vn79Fz0WFS5QtaVf qFVb6mSuOHgqmfqc1tMBC67fYnpVzBFFXg3A4KfH4e8wRzR55lj+uaovFmy4DxEmleKrSjZ2LdGbQ ac7wa5VoRQUnjiBgRnbVQWRzf+hGu+NG1PQyfbh3wrjL5bHHzEEx1Ps0vVzBbjNC1KRlsMaYiEQtE S0WcdNbWWEbIvEBHdnKLZWUqsXVgFNXvgRWbsh7EcrPb1WPDe2yvILSvE3WKeDBEn6e5kpJ/5lbqr eA+tcvY7ADwkPGBS/IS5raxViLjPSg3TI2JwcGA/8KrnyVI8vj0kKe6Ek0zxYU6WWZLOOHKajeUkL 8ZUS163Q==; Received: from [2601:1c0:6280:3f0::2c43] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kvC41-0006xy-6o; Fri, 01 Jan 2021 04:29:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Vineet Gupta , linux-snps-arc@lists.infradead.org, Dan Williams , Vineet Gupta , Andrew Morton , Matthew Wilcox , Jan Kara , linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org Subject: [PATCH v2] fs/dax: include to fix build error on ARC Date: Thu, 31 Dec 2020 20:29:14 -0800 Message-Id: <20210101042914.5313-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 #include #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;