Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp802644ybg; Wed, 10 Jun 2020 14:15:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqG8kxrF7a1f8XDUC47nIQlDa+1uh+NXcCCsUrytvbm+nhMUI6f5m7x6I8J+IIHD5auI14 X-Received: by 2002:a17:906:e257:: with SMTP id gq23mr4976007ejb.398.1591823715769; Wed, 10 Jun 2020 14:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591823715; cv=none; d=google.com; s=arc-20160816; b=U6oHGUfFgSmBKtHL5Wj87GIu3igcmZaX0T6jzTW9xYdBB3w7SpL2l6HpJim//I0Hud seiJ6Oq0h/kAF4/VCrHCKBV+f+3/vmthBCNjILq+7wuROxfb74gdjGJEOP9yCM+Kck8A 8mlvmONVgiq/XHBKibccSufreh63AiIgjuBMSikMnVqPodDsUzJak02ebnobBHe8uLvy V9ofiEAdeFIhiP3GL4oCVIYPQjXPuDLVDM3uZS+MQxSutGylDI2QAgbW3qoDMxAd1eBq G/E7e+NDqftoej9zVXUys/+nMqn2AOZioEhXGSTojRMZYC+j1KJKqFsPgsh2gQ9WtWe+ z6+w== 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:date:subject:cc:to:from :dkim-signature; bh=a6bntLUvQ0tR7N/aMeU2zpyWKO2+RHf9NYJ0TB23leA=; b=IELgwTn/2a4NZtrTywii8R2FKCAck18fRtV7La5GueKetMCoYjXQ2yIn9rVGQHhZj9 K3FEM+168Bw8NijVGzlS8DRnbIFkeEvcZNHlQZASAewTleaoOnqSOKqp5SGZSJqCCQAW cPd58wsDFt96L8e5N/A+bNOZhfTHx6QgR8L3XHDodbJwHsrTqSEDV/A6GSB/XOVkg1OL fdQkl1xm+23jkNFeCcKPjDUrt/Zs2DWEl4dvRpc/5yCGLy++nR02BI7uY5pBMakQ7sEp pxgIbaB1dUhxOzgGt33fqC5d8QWSqe3ECKgNpOCfq6AG+ozD2rnXt0UR5T3q8zVTosBX oT1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ES+Sfxy+; 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 od24si769330ejb.103.2020.06.10.14.14.53; Wed, 10 Jun 2020 14:15:15 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ES+Sfxy+; 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 S1727914AbgFJUSI (ORCPT + 99 others); Wed, 10 Jun 2020 16:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730518AbgFJUNr (ORCPT ); Wed, 10 Jun 2020 16:13:47 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4941C03E96B; Wed, 10 Jun 2020 13:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=a6bntLUvQ0tR7N/aMeU2zpyWKO2+RHf9NYJ0TB23leA=; b=ES+Sfxy+2oGIgIAmOW/I+p76fw qcPQqsG/73jemyJRer3+UjVnFFYLHVhkXkhsOZxvbDVdfaxrs8dIjC8cBBcdzK7zb/1YAMGtViobv E4OSMFg5GQlh+bhKZZ51XuWVi+onf+ucWA1IeqIffN5derpB0OCxfCNSGwMrj0wvaB68R571Ft4b0 jS/v42UxtraBVF1FSe9nchpywSSnisn5Gu9+L5VfjTS/jm1k9qBVx01aejUktPjYOXQE77kQhM8Ml 8VKqo4AarBlMKAm7s/S+867z77I9uroThzBOvWBQHlR+1afGTF+QxbeIt6kkmu5ycnhjB0nhxY/W1 sf0IMA9w==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj76Z-0003TU-Gq; Wed, 10 Jun 2020 20:13:47 +0000 From: Matthew Wilcox To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 07/51] mm: Move page-flags include to top of file Date: Wed, 10 Jun 2020 13:13:01 -0700 Message-Id: <20200610201345.13273-8-willy@infradead.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200610201345.13273-1-willy@infradead.org> References: <20200610201345.13273-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Matthew Wilcox (Oracle)" Give up on the notion that we can remove page-flags.h from mm.h. There are currently 14 inline functions which use a PageFoo function. Also, two of the files directly included by mm.h include page-flags.h themselves, and there are probably more indirect inclusions. So just include it at the top like any other header file. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index af0305ad090f..6c29b663135f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -667,11 +668,6 @@ int vma_is_stack_for_current(struct vm_area_struct *vma); struct mmu_gather; struct inode; -/* - * FIXME: take this include out, include page-flags.h in - * files which need it (119 of them) - */ -#include #include /* -- 2.26.2