Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14296691pxu; Mon, 4 Jan 2021 19:51:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRO5rYg5gJRMxKZZ6MPmNKKcLqxAw74GUGfk1+xS1Z+iSGhZUlc7KCw0jbjFzzLsd+zgSK X-Received: by 2002:a17:906:7fca:: with SMTP id r10mr70145768ejs.24.1609818677990; Mon, 04 Jan 2021 19:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609818677; cv=none; d=google.com; s=arc-20160816; b=ZjY/cgeTwgC7rE5ZkBd46FEwt+qLwh6cFt7sLZCYaGfOC0hPQRCy4kJ+S2/O9EQYKM UkxRVpnylvaFxIS8ohs3tCU0sN41Os6T7PNDyiBh7Op7SNi2rZHgBVah/bGhxdWxohfE TXAnEcx9Triq1gNJ9CVY39Cs0QHC+4yknEzFoZ1sTS3o+L6+Gzn4HrzHtkcPGmmmUF8q mkytl+AFEXZAw3nAuw6/w7PFwqrbRVWPut4qxWtJATS0hA3o+aL61V0DRruH67JyItMb WQL08LTvXFM8i/pjjYGWzZiJ9xlMPOnNAsfonuyivLbLTqBSCBGUzxxskZj9xz5K2P6f hTsQ== 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=xvxlCGowN31Xh/eMwMOxKX1sU7xQYvnwJjb9H7a7Qfg=; b=ItLcEH28isxUCCyNbdpkqCwwePbIibI942/I3J0oryND8vCq2e6tGu/NxM97uHC9KH 7mpbou555peqyXJ7rFNOLqv/bUdsikXzrzV3fq7UIKPGxn2f7qPKerrSMnPgfCb4ZRNZ uV/yEE2kzW8cda3tPEKAXnxxscbiCWR9uYI24puJObA8F0ZX+JGyetqtjWpT0llKiGYN thfNQRRttf6cTycpK6l3fVFD6FNQtJR2kwBfVZ+hdQq/+IolRAEELBwX31NlAG7nj/Lv fLmsP3Z4LygnIfCFYTGP2LXUlOxhReQNhUgkzkLb3g8Vyv4i44miM3Ac948DeE43TAa/ 5EKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fCOcY9KP; 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 ce12si23267009edb.604.2021.01.04.19.50.54; Mon, 04 Jan 2021 19:51:17 -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=fCOcY9KP; 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 S1728356AbhAEDsT (ORCPT + 99 others); Mon, 4 Jan 2021 22:48:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbhAEDsS (ORCPT ); Mon, 4 Jan 2021 22:48:18 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5B67C061793; Mon, 4 Jan 2021 19:47:38 -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:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=xvxlCGowN31Xh/eMwMOxKX1sU7xQYvnwJjb9H7a7Qfg=; b=fCOcY9KPiE3XxHr3mGOAN9ApBw xwhr9RFjdx/HiAqNsrqURth49nt/hE+aettEIsGIjhsfRhogSUvHCLPaWdYU/eCOxX8fUrverXQR8 QM0M9hbX5loFyoLA673vdQKUP3M7zwXBfTgQ2V1DLyX6sPuxTiHyJ+xYCMnjVE1MCNZRAcrGG2Gnc zRIeawk6r+suf8O68gRuFKUqfWKXOgq2Oy7MZdYLDSIqEwu9DjMYRmU+175FCNyHZtVvVoACKzh+l aWKp/kC+vglC9HQLKl5Bkfme1t4d6me6C2VlRHTHOsh2waxKdspw9XXAvAdJhapR7QfupQhWBM+kI b+79Zuyg==; Received: from [2601:1c0:6280:3f0::64ea] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1kwdHH-000pmb-BU; Tue, 05 Jan 2021 03:45:50 +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 , Andrew Morton , Matthew Wilcox , Jan Kara , linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org Subject: [PATCH v3] arch/arc: add copy_user_page() to to fix build error on ARC Date: Mon, 4 Jan 2021 19:44:53 -0800 Message-Id: <20210105034453.12629-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 . ../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] 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 # v1 Cc: Andrew Morton Cc: Matthew Wilcox Cc: Jan Kara Cc: linux-fsdevel@vger.kernel.org Cc: linux-nvdimm@lists.01.org #Reviewed-by: Ira Weiny # v2 --- v2: rebase, add more Cc: v3: add copy_user_page() to arch/arc/include/asm/page.h arch/arc/include/asm/page.h | 1 + --- 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;