From patchwork Wed Jun 10 20:13:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 11598777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB7F792A for ; Wed, 10 Jun 2020 20:18:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 807972078C for ; Wed, 10 Jun 2020 20:18:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ES+Sfxy+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbgFJUSG (ORCPT ); Wed, 10 Jun 2020 16:18:06 -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 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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 /*