Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp978006ybt; Wed, 17 Jun 2020 19:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpyQ6lU8NCF36uVjllzInHsupwrQdQlIY1+fl1AYSzR1jSG40JDAqY2g/IirtFyXRSDcah X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr1955888eds.364.1592448232864; Wed, 17 Jun 2020 19:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592448232; cv=none; d=google.com; s=arc-20160816; b=G7whc4XpHjghTH9+D8tUha7tyXNeR6DlVso6csgDprq6eZl16IB8W6wvobjh18HqTO dlfcdpiGJbtdcemwGRkagJCyPtZzIwrO80eG3H17sS9AlZvzgaG75wbv/WjcykncOmIk /fKaCYDDlofl9YW4kS8KK370RkLo3uDTsFia3Y6PIxRqFbi1ZmfkR62NseqSKdNFWNqX Nkna479jWJt/Fbyy/XceD6QC7BVzMFcqQznF9vEfxXebVbHdz4MDonXTMDjEdMmUG1/v e7NvdeLNBTCG3xZ6GyuMHbio6iO3li7YvjRflEfFiX0Q9Ts5kcupJRmXZwH/4RMZSbeq EAfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Mq3gnO0cNuIyvnhuiNfBWXt7sWKWg3d/LvuGv5XEseQ=; b=R6u4dDhCxWoQeEZyyjjm95l9AY9PBpaJsMLhDasuSxXUHwrGd0CcKPfUiwa3W3vg7J 90LZi/AYE8Hvf8GRMlya+4U2BLtDlHAtEm/Dt81c4HZ2Rmg0h6OIFTBlSA5P+ncjHt8Z 0FYdnZo8gRTLu5rP5JF20JnIrcfXyM5qW/1DJ2Q7iRCR4X9w/5Oy8MxPYuU0il5ufTyE 14s5G6q54X3VnT3twjzVECtKEoooy4gD3qxH3K4b1v1UhOZ9VLDVumfSceQe9Ye/o/jo BK/YlLbjmY9T7cWr7oKlUO3w9RSsytJqfJ1bLEnv1BqV9JWa4f13NH8XWkmgyqL4wxqK Jkng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xzsVrD7a; 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 sb21si985095ejb.385.2020.06.17.19.43.30; Wed, 17 Jun 2020 19:43:52 -0700 (PDT) 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=@kernel.org header.s=default header.b=xzsVrD7a; 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 S2387842AbgFRClP (ORCPT + 99 others); Wed, 17 Jun 2020 22:41:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:41026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727979AbgFRBM2 (ORCPT ); Wed, 17 Jun 2020 21:12:28 -0400 Received: from X1 (nat-ab2241.sltdut.senawave.net [162.218.216.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43B76214DB; Thu, 18 Jun 2020 01:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592442747; bh=mGN9DdKaAmVEzpdoVTQ/AB/ixfkCHEhhjiWmQ+Z00rI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=xzsVrD7akKySIWhvQD55PtUN2F05SgqEIQ0FBQXyrmbiBXLTK2KyYj2xCXvEORWGJ zHQBhVJ/v3Ymfwxra4LefSoKABPvCGyUpIX2mfrGWICi+aprnskbSySUBLb4WoAVep rvWsIseXqFcwnil5YImRepnntj/Wze4KPlhO8R3c= Date: Wed, 17 Jun 2020 18:12:26 -0700 From: Andrew Morton To: Joerg Roedel Cc: peterz@infradead.org, jroedel@suse.de, Andy Lutomirski , Abdul Haleem , Satheesh Rajendran , Stephen Rothwell , manvanth@linux.vnet.ibm.com, linux-next@vger.kernel.org, Steven Rostedt , Mike Rapoport , Linus Torvalds , linuxppc-dev@lists.ozlabs.org, hch@lst.de, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: Move p?d_alloc_track to separate header file Message-Id: <20200617181226.ab213ea1531b5dd6eca1b0b6@linux-foundation.org> In-Reply-To: <20200609120533.25867-1-joro@8bytes.org> References: <20200609120533.25867-1-joro@8bytes.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Jun 2020 14:05:33 +0200 Joerg Roedel wrote: > From: Joerg Roedel > > The functions are only used in two source files, so there is no need > for them to be in the global header. Move them to the new > header and include it only where needed. > > ... > > new file mode 100644 > index 000000000000..1dcc865029a2 > --- /dev/null > +++ b/include/linux/pgalloc-track.h > @@ -0,0 +1,51 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef _LINUX_PGALLLC_TRACK_H > +#define _LINUX_PGALLLC_TRACK_H hm, no #includes. I guess this is OK, given the limited use. But it does make one wonder whether ioremap.c should be moved from lib/ to mm/ and this file should be moved from include/linux/ to mm/. Oh well.