Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1085383pxb; Thu, 5 Nov 2020 23:59:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcDQ+AvZD1GLq3zRBGmiaTVKh0ctXfSKWKb6PAXXNVoZxejsNPdVECOq55AEKzBa/N76UM X-Received: by 2002:a17:906:cb0f:: with SMTP id lk15mr796910ejb.431.1604649550781; Thu, 05 Nov 2020 23:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604649550; cv=none; d=google.com; s=arc-20160816; b=iK7kF0skuqaGWE3xZSu2Pb3Ljo8hE+WS+aAMWHE4itSTgncoYdMnn+KlaTisntlb4L qYnMI2cq1+/tovWFDwSUiP8+8tiWMppkHWWPs2v4J8WXlyOrfZVS0HLtDIRvjIgEt+UI 8nalX3m0zQ0y4t5yEGHj3e0qM8d6oPgBn3czJ0Y7dmmqunEFqpAnuDVkI3kmmY+RcWt8 vx+qYe+oVAyvpyyYGNh0vu0LKCn7nX3GgleezOB1TmW3aqRgz6pZLlhCr3XpvclOBfAM V18E4/sVh1HtoZrC9QDk/Cn99Z1TmlhjcXxsAemDraKG4OaG8nQdTDop5iCnx2nr1KtM P/oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1GFTexA6UNwLyYZyl0BKXirxCkmDiQeZfZ5phjlCPxs=; b=0vlOtmH7Yim+YmBKWUOYaaqMCPXG8IAkvq8PKsSoq4Bg6wcfgyavrVMzXYhFODsQll eDyoxN08lC+cXsCBPlzMrRhAW/5ss/lgxzxzYLBBf2q5IhI/6qXQIMTQi9BsLXfPtXPG IFP8/RvrAn1jriQPBD6OLhPXzLsG7QiexvXDlo2B9ofstH+2LuPqSHwckVn/E0oiNhbX XYtxfwUAZTJxeZN/UVBQuqrtzGKfbU2NrOjLKY+Vhy/uWdbZGY0dFooO5BS+jNql8Yud Yq0amyUZu8GeiOmoqEGNSnAwRcb223EurKceTIsNcj4mdDwNLch0ibckkSHnLEdXU6EO bwNg== 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 jr1si349931ejb.164.2020.11.05.23.58.40; Thu, 05 Nov 2020 23:59: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; 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 S1726492AbgKFHz6 (ORCPT + 99 others); Fri, 6 Nov 2020 02:55:58 -0500 Received: from verein.lst.de ([213.95.11.211]:50436 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgKFHz6 (ORCPT ); Fri, 6 Nov 2020 02:55:58 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id AA44B68B02; Fri, 6 Nov 2020 08:55:54 +0100 (CET) Date: Fri, 6 Nov 2020 08:55:54 +0100 From: Christoph Hellwig To: Ralph Campbell Cc: linux-mm@kvack.org, nouveau@lists.freedesktop.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Glisse , John Hubbard , Alistair Popple , Christoph Hellwig , Jason Gunthorpe , Bharata B Rao , Zi Yan , "Kirill A . Shutemov" , Yang Shi , Ben Skeggs , Shuah Khan , Andrew Morton Subject: Re: [PATCH v3 1/6] mm/thp: add prep_transhuge_device_private_page() Message-ID: <20201106075554.GA31341@lst.de> References: <20201106005147.20113-1-rcampbell@nvidia.com> <20201106005147.20113-2-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106005147.20113-2-rcampbell@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 05, 2020 at 04:51:42PM -0800, Ralph Campbell wrote: > +extern void prep_transhuge_device_private_page(struct page *page); No need for the extern. > +static inline void prep_transhuge_device_private_page(struct page *page) > +{ > +} Is the code to call this even reachable if THP support is configured out? If not just declaring it unconditionally and letting dead code elimination do its job might be a tad cleaner. > +void prep_transhuge_device_private_page(struct page *page) I think a kerneldoc comment explaining what this function is useful for would be helpful.