From patchwork Fri Feb 2 21:23:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13543452 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E536EC4828E for ; Fri, 2 Feb 2024 21:23:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 81CDF6B009C; Fri, 2 Feb 2024 16:23:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A5F66B009E; Fri, 2 Feb 2024 16:23:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 646806B009F; Fri, 2 Feb 2024 16:23:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 507356B009C for ; Fri, 2 Feb 2024 16:23:30 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1D7ED1A104E for ; Fri, 2 Feb 2024 21:23:30 +0000 (UTC) X-FDA: 81748140180.16.EA2C2E1 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by imf16.hostedemail.com (Postfix) with ESMTP id 83F26180011 for ; Fri, 2 Feb 2024 21:23:26 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=wanadoo.fr header.s=t20230301 header.b=YgoAR4A5; dmarc=pass (policy=none) header.from=wanadoo.fr; spf=pass (imf16.hostedemail.com: domain of christophe.jaillet@wanadoo.fr designates 80.12.242.16 as permitted sender) smtp.mailfrom=christophe.jaillet@wanadoo.fr ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706909008; a=rsa-sha256; cv=none; b=e662nbi17hufOwwC2GEAqKGcq29JXrbRZ053oJ0mRIiIkb7GRN+BzCpcGhPHLwezO6LZxK SaT/9ptqz19afrHWiuLBxcVIaC0fAKzan5KwaotZlVNvFjufDm3FZpKDheWqoSAb+5jomf JeWxmUzbX0uJvay292z2hlC+yJ2uHP4= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=wanadoo.fr header.s=t20230301 header.b=YgoAR4A5; dmarc=pass (policy=none) header.from=wanadoo.fr; spf=pass (imf16.hostedemail.com: domain of christophe.jaillet@wanadoo.fr designates 80.12.242.16 as permitted sender) smtp.mailfrom=christophe.jaillet@wanadoo.fr ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706909008; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=gknkBxJEzqhmHTYPDuPbdM6rcQN2TQdAIGaoD5ZyO4w=; b=gMzUyuO4pOpuLcrqX/y+tsCNaeeH7g+PCSr2SbpqpfG05ukFfGlQtk8yaPzp2rKI8fwk1n +xqE8Rg+MyaoVqIxXlFyh6FuFUI9j8+++D1a7TtW3eoklnWR2z9eJr10ztSShoYdm6HAko fhR0DXGlqJOoFHUovV22bBzlKdYzACU= Received: from fedora.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id W10NrnAvE0k1mW10Ornqsa; Fri, 02 Feb 2024 22:23:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1706909004; bh=gknkBxJEzqhmHTYPDuPbdM6rcQN2TQdAIGaoD5ZyO4w=; h=From:To:Cc:Subject:Date; b=YgoAR4A5THvusTgAiNg8KwY8Etnc1ncfqrO25s6RTtGo6epSz+oLTQA7rbUYQZsFt m6fXmOTJwj70w8j3JZ2dj3nCgtr2stskPQFrmZ+esPcZjx1ppIiGbNT+lI174WX6IL 41tlYVyiI2pTIpBcA4SRyVk9NH4xMjMowq8rfQ9QiRYhyhLt6UUgxYEdtgACe0Xy5X 98cCkSIaTp6eeItapQpmpFbawDyDQuTsg8LiKDwr58u/TTpm5Yq4eUJ0AubvZKU87t 6D48uWyMpkJEDGnByXqPCInHuOIkmLvTXrodOQhxnw3jSlhXIB8e6Z5VOGM96Zmxy8 ibym9c28XQnqQ== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 02 Feb 2024 22:23:24 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] mm: Reduce dependencies on Date: Fri, 2 Feb 2024 22:23:18 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 83F26180011 X-Stat-Signature: hpk1jt3chmqqsty6ims16ja8odiqzg1n X-HE-Tag: 1706909006-633991 X-HE-Meta: U2FsdGVkX18uuyfaDLOkpBkDFVuCTQI4Slwci8TVZbAtT7TFq/6INCqX4XmUFbJRS1t64MF0X/Dz67u4jEAVk0iyCKmPJzRZgwDcp6urm2N4QwN1J0PnK9E9ILDGMNUrRJo+LLnZk4W0BidIPeanGSQ1u/ZaYHkj5Zqqk4z7MeJftULO256/aXXZNYlCBGUBTQmcilRxFmFOWdwdiEEuGAF9fjuR51RvEzTtIIOFThqgJGq8WHyIljjn+gOIQo4zp+D/59cPsWXJ1qZdYj5sFYLpvfKwBfg0vYtpbIqwe1XJ8tz2WpqHIJ0ZiXsbLYvOdwNHMTJ5U+66FfIu6dy4GRTD7HJKLhfEn7vVkCrE78LF9xSAB89fVdXhHfD3R/7T9MJL5yFbfWhlNd9n799ne0WiNdbE9yFC8dOfxPRkJjGxF6uem+9nj2D4ImSieYEzyQScteOQPrqitPg2G21VLZhy0K4Engmmc/KBnKMF5GEsA0yCmHj0+t+p84QdCWE4OKrNnu0rxVvFsuDmiWs3Cs1kmFZClYmdIKcPPzYi7qoh40X33mdX/QSfLcPkf4rNWXV38AxFsCHEcs+pI/2+7lFhPh+z5Saa2wkoNlJiiGQ3e8/pI9kGAG+/BahppCWsFJbu1+WYIEe2Rld75hkqdrU50ulPS2Ymo0YvXzebBdkBgd017gIH/hTS/F3CJ8Gif2C9ZBUd6fzPM33CJN6nU3KxDrMPL1eSzHrqOPA+K9ZqoISMX2FdxRBt/oBiCn7NGOfLHlSUoCI/uAc9M0diG+vb6V+uorMox4GMlM0aGU+NPGg8RKnxZ4m+CGFvA+f3wv6bmTrutgNFKX8BmI6nTPffqkG1wK3HWpwtfghJd//uLmN7nLDRALqkgn8t/mLdj77qj5BSHqkSKa5SafwgZhHWDXxPlIjypF90CG6JiiQ5WlPYBrvxq+MKQyDLIB2Vhd3c2iLCSFzhPhzD94m 67cIkQGo PaQkVBLG4r0KklqsO+5Mx27EOeo19jQrSVjSVHkyjhuBgr870BU8KyrGi0tiQNHV0TKCNX0K+UKbFidexwyaJAoFSjsE3779qYSY1F/TN9kDswbmqDemolKjHHcI9SRaqRpP7WAW9XOVSg8A8fOoJA2+0+AAn1vZhzWhVrcfakm51uv4nEybpuBerRBBd8/Z7j0QhIdVPg6AphGI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000054, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: "page_counter.h" does not need . is enough to get LONG_MAX. Files that include page_counter.h are limited. They have been compile tested or checked. $ git grep page_counter\.h include/linux/hugetlb_cgroup.h: struct page_counter hugepage[HUGE_MAX_HSTATE]; --> all files that include it have been compile tested include/linux/memcontrol.h:#include --> has been added, to be safe include/net/sock.h:#include --> already include mm/hugetlb_cgroup.c:#include mm/memcontrol.c:#include mm/page_counter.c:#include --> compile tested Signed-off-by: Christophe JAILLET --- Let see if build-bots agree with me. --- include/linux/memcontrol.h | 1 + include/linux/page_counter.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 20ff87f8e001..4e4caeaea404 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/page_counter.h b/include/linux/page_counter.h index c141ea9a95ef..8cd858d912c4 100644 --- a/include/linux/page_counter.h +++ b/include/linux/page_counter.h @@ -4,7 +4,7 @@ #include #include -#include +#include #include struct page_counter {