Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14308460pxu; Mon, 4 Jan 2021 20:20:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwosYQVhcxQap6BZZAOX/InnzpTqEJnLUZdGUN2+d9ZWP2lSOj6l8VeEmZEcIbxB3m+Ovo0 X-Received: by 2002:a17:906:2e82:: with SMTP id o2mr69825134eji.106.1609820425729; Mon, 04 Jan 2021 20:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609820425; cv=none; d=google.com; s=arc-20160816; b=LTJT0ryay9otpuUoWLpCeOOId4xeIj6dvVygB4ZfSc0auRCWS4yFJ5qS4FNdX8pfeK gJzDCy8Jh1bhfW1b1hNaUhJ0ykK4EBBNz7hEwebEnezKph7oy3UC2jwJBiIX9ZfwExba UQunvFajmwhxT5ieldSO9VwWXX0zhssD/7/zYHJtFHY1B2pk01Hgat14mygso6wy8lLG n9NsIHlorAUM2zlKFQbbZq/UwAVtnPwBs0KLNN4NoivDAfmwQI3Fhkf3vSHDPLTgOaWG LvuqrHaiSp+/sGdKrBhWzPh3O8ny9myumryfPMKj8bhzlRaV9rtP6bju2RV5wmN0uFct izEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pztRc79VXaKI04ccO3+nQF2Or+kJQD6etH9Rxcq26Bk=; b=TbPZyc6wgbVNhxdxMZ+t8LZpPTxFaSUf34ZBb+0hzTfcwLH0AcyGenWUawfaJPZbSZ BVwsM4822a5yXvr98UEnayLgWviGyY8og6fD3OlEvw8FnsRVe6wDIYyBcHzLsTWeKdBM LcEJ1mgimvvTXD6Kv7M7uGS7h65VCRRpckO2cmJxGIqI+MaPhmJxqs9jDHntox0JCSSI 7xLGoBSwJSn6UtQbYiuCfsDbKXDJntz9gh/Br12j5S5EnHuqeivhVrjRLFLAEV4xm7b7 l9sL6mw1wcYJxRgeF+/+kePpD9migfbbjEtlBlzEFDF6FmxblvHBhIxFTmOlsBL+cAXh MklA== ARC-Authentication-Results: i=1; mx.google.com; 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 z6si27421428ejr.643.2021.01.04.20.20.02; Mon, 04 Jan 2021 20:20:25 -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; 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 S1728231AbhAEESh (ORCPT + 99 others); Mon, 4 Jan 2021 23:18:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727148AbhAEESh (ORCPT ); Mon, 4 Jan 2021 23:18:37 -0500 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 538B1C061574; Mon, 4 Jan 2021 20:17:57 -0800 (PST) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwdms-006y0f-FZ; Tue, 05 Jan 2021 04:17:38 +0000 Date: Tue, 5 Jan 2021 04:17:38 +0000 From: Al Viro To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, 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: Re: [PATCH v2] fs/dax: include to fix build error on ARC Message-ID: <20210105041738.GS3579531@ZenIV.linux.org.uk> References: <20210101042914.5313-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210101042914.5313-1-rdunlap@infradead.org> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 31, 2020 at 08:29:14PM -0800, 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] Could somebody explain what the force-cast is doing in there? I mean, the call is copy_user_page(vto, (void __force *)kaddr, vaddr, to); kaddr is a local variable there, declared as void *; AFAICS, that had been pure cargo-cult since commit 7a9eb20666317794d0279843fbd091af93907780 Author: Dan Williams Date: Fri Jun 3 18:06:47 2016 -0700 pmem: kill __pmem address space I mean, it's been more than 4 years, time to bury that body...