From patchwork Tue Mar 12 09:41:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 13589728 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 4712FC54E66 for ; Tue, 12 Mar 2024 09:42:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 813988D0035; Tue, 12 Mar 2024 05:42:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C27C8D0033; Tue, 12 Mar 2024 05:42:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 616108D0035; Tue, 12 Mar 2024 05:42:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 462808D0033 for ; Tue, 12 Mar 2024 05:42:07 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 204D61C0581 for ; Tue, 12 Mar 2024 09:42:07 +0000 (UTC) X-FDA: 81887895894.06.954EC58 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by imf15.hostedemail.com (Postfix) with ESMTP id 5ED8AA000E for ; Tue, 12 Mar 2024 09:42:05 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b="GSz6Q/z1"; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf15.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710236525; a=rsa-sha256; cv=none; b=h0DP4Kt4RB23F4G7kkdqygUPl7PJUxNvav15rr8q9ujKjv3mL39Zg3jGmOeDHK59VzADgt G9/8UvSMm0qm4XQr4r70vaxb8ymKwTe8vKtZ8XTOQm65JE6IZGQ5HROxmIVup0moHpREQx AVim0Uqqh0usAoxBscW8gZkNieSO39o= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b="GSz6Q/z1"; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf15.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710236525; 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:in-reply-to:references:references:dkim-signature; bh=Jrscdt21PtPY517djC+TvV15g1fCQxv1c3sR3dIsMR0=; b=0uRQhXZ7oov8zRAcXclgvYu6BAHwe/zfNDuTWzEsVrtTOJkLpQ5YIOErfMqXaTsF82uMJX rYI5lioUfCz2uqIN70DTltG099m/3mAGaiR2tUdLGuSoCPZ3jXR66g5ncRDjC9k7EKuU7M gccmeEczwCtcr3A/lIyj/6II1ZguC8o= Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5686677bda1so2339948a12.0 for ; Tue, 12 Mar 2024 02:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1710236524; x=1710841324; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Jrscdt21PtPY517djC+TvV15g1fCQxv1c3sR3dIsMR0=; b=GSz6Q/z1OfrgVYdQlFhxpC5mEMWaGtvVWp2ItWh6QBc2wgMEW8TGrHdnOjZLVbc9jb aVaksYhmRNaMR7IRtVU7c8t+vQW0YJKkhP0AtmdNkCSWh5/9GOJmEGxQ/fFZVZhjyhdB D1/VYvnfyq4bPKd8iRPqq4UYgijQO8GxuVt7r3RZGEr30gpSgpzR+MXxHEoM74A3i4fW 71a4s2OBQAsIOripLu+0DbqrfFDBqCTkQt1tYY9gBm5U7pWzOXPCS5Z9VDQh3kOFrcwk bS4pG50p7nLTXKnPMsviMs2UeLra52VVYCsVD9KLoXBxOxyDL7i4yVUOmGfGw0uJNQ2k GbTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710236524; x=1710841324; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jrscdt21PtPY517djC+TvV15g1fCQxv1c3sR3dIsMR0=; b=H6fZKjU0Pry76emuPH0v/apaAH0ZTCW/lEjCgdY31ArWK8jCQafSUYf37krX2J5D42 M+JpvaruDSBnESGYczj59cY4FqblyUa9TvjFMslRgxAVlbFZZYYqi9Yh4h5Lihbgtzh7 gj/7xVlVC5fcExoJaijETMOyMjnj9SLl/5/3Pobvg65sZXzFy93gPNUMZbexU2bxp4KT SaGUku4dYgLUshqDjGZQW5Z2Od7AK5n11tTh9FQoZ5r1GsLLuAf25NUzSrtCVd07t0Lo bByWzNdXAB/G00MwzbNDJsS8zy/Hc+oFr/6FDvPKObJrXlu0IoGSl/kH6yl00anKhTXN TI0g== X-Forwarded-Encrypted: i=1; AJvYcCW5oeP5sAko+zcFHDNlIGbAO1v0iaMJyyH1DEPYapP1YWXAKRHq6mcGMxF+V2STuxfyJq/gIXCmLnMw2VmH9EDKLfs= X-Gm-Message-State: AOJu0YxzlK/z2ljErt8cI7Uwbdli6cgnZs7RemiPTpflgXd/ywPHPQ9V TkwV8bNPZvF161ajACo7bw34jIpXUxGjXp2oQmfoTmGKondYIgxB5AXRqXCV7Nc= X-Google-Smtp-Source: AGHT+IH+55sS4D1Wofdn/P5aBaDbVhmB1/EaSYmDeSmBmhB/cebupf3IhOpDFPGmtUJAfiNuT3MXBw== X-Received: by 2002:a17:907:d50a:b0:a43:ffe1:7d1 with SMTP id wb10-20020a170907d50a00b00a43ffe107d1mr8979316ejc.17.1710236524165; Tue, 12 Mar 2024 02:42:04 -0700 (PDT) Received: from raven.blarg.de (p200300dc6f010900023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f01:900:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id jw22-20020a170906e95600b00a4623030893sm2091961ejb.126.2024.03.12.02.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:42:03 -0700 (PDT) From: Max Kellermann To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: willy@infradead.org, sfr@canb.auug.org.au, Max Kellermann Subject: [PATCH v4 15/15] include: reduce dependencies on linux/mm.h Date: Tue, 12 Mar 2024 10:41:33 +0100 Message-Id: <20240312094133.2084996-16-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240312094133.2084996-1-max.kellermann@ionos.com> References: <20240312094133.2084996-1-max.kellermann@ionos.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 5ED8AA000E X-Stat-Signature: q5sui77horq6gfzjyniamjjud58bk39w X-HE-Tag: 1710236525-598611 X-HE-Meta: U2FsdGVkX1/xRZaoP5BPgNKdnBCPv5Yr3VY5ou/5mB28ktNfGT/D3eyE7uzKYf5ISlB3kyQUQwsxJzwfCSXb6vVnY1HtR3GVo8fo4bCT2Bh6Gg1Pc1V6fhnTeqFplVbq/W44TFUF9qXtHgnST3ie7NC0R1Hv3NPYwigFuyVDPwO/M8BQlY0sPKZYNEYlP6z55IjEiETH7SgP+NsbFKIcMpb3+K4Aph8IQ36bHENBxTFRpMJQ3XH1bzzDFgUUeja+FnDdPX486ew0uocARDD/FS+2C9DV7wbL8P+OoKv9Dc0R/OxJDEivWrUGWQqgrdJmSgrwGqDQA6yhejNvl+Qvzghl8t5jB1z32t6bIDzd3fpof0rrXBA0lU0mqkPJemGZzUIo05oMT7DqgkGutXl1lul1ie4cjpT5fLOx+paI+6skFGrKQc5Ds3U67Z7aTxADbVmXZft5kF+puxYgrJjrPGv2L7HFLpRG+aYspQABDXDhQvGKEnvlPIgv2qkgQ8C3t+xMRUA99RPZh2Z2ErDLY5UIAxXdT/53XluwzOIRwKdpEv18lPoiWnYPSuGzBie6dl5aF0VsOmn3B9NyE9vMCwjC5OYpdALOLvX/A7NDFT/aNJtTQYhpKrmuD1WntvRUKylg2/V1GSlqhCrc0szumvKvBMeyhGnL083oovqBTJ77pH6pGYUq5Lc+Kn0yk/DneHjdzklQnmtRebnsN/e79nt+XnRwR5ntdbyKEzxzxdwvN0Wx2qmGuCZidezmwwnWIumFU6xGDKTAJvT46HA4yefuHYwCrdb5wrH8IiXlwFkCdWlUklRVu9NP44zrq55DRysCuQqwuEjOMNR9LsCN3Vcaj52jhZFhUXLjOYpUtzlF8RAP6WGKre8/TU47RPcxQxj/hGBMFmOA6XFmyW+GVxFxAU1uxhbjZIJ3hGdYN1VdpbZL/peM4nnm8ybXsRxJ4o/5zESjVKsb6Lzq4n/ St5OY4Oz wB/BrrPQS8Wf1sliGR/q6e2rv37DrTzfhRcHV1T3ofgD0KDJg5fXQq3DCXGJ6HDIyYNVCFh2MeSCSrDCLA9ggaSPQu+Xx62zpYhNRLkKEBdgR78/jb4UuRAgLRQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Replace with the smaller pieces that were just splitted out. This affects a few headers that are included by many, e.g. bio.h and highmem.h, which now no longer depend on the fat header. For this, several missing includes need to be added because they are no longer indirectly included, e.g. . Signed-off-by: Max Kellermann --- include/linux/bio.h | 2 ++ include/linux/dma-mapping.h | 1 + include/linux/highmem-internal.h | 2 ++ include/linux/highmem.h | 4 +++- include/linux/scatterlist.h | 2 +- include/linux/skbuff.h | 4 ++++ lib/scatterlist.c | 1 + 7 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index 875d792bffff..e2f24d7235d3 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -5,7 +5,9 @@ #ifndef __LINUX_BIO_H #define __LINUX_BIO_H +#include // for struct kiocb, IOCB_NOWAIT #include +#include /* struct bio, bio_vec and BIO_* flags are defined in blk_types.h */ #include #include diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 4a658de44ee9..37d5591039c7 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -11,6 +11,7 @@ #include #include #include +#include /** * List of possible attributes associated with a DMA mapping. The semantics diff --git a/include/linux/highmem-internal.h b/include/linux/highmem-internal.h index a3028e400a9c..a479e6b7c54c 100644 --- a/include/linux/highmem-internal.h +++ b/include/linux/highmem-internal.h @@ -2,6 +2,8 @@ #ifndef _LINUX_HIGHMEM_INTERNAL_H #define _LINUX_HIGHMEM_INTERNAL_H +#include + /* * Outside of CONFIG_HIGHMEM to support X86 32bit iomap_atomic() cruft. */ diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 00341b56d291..10a165a913ad 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -7,7 +7,9 @@ #include #include #include -#include +#include // for page_size() +#include // for folio_put() +#include #include #include diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index 0516e64dc03e..9221bba82b23 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #ifdef CONFIG_UML diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 3023bc2be6a1..7b61eac3baa4 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -16,6 +16,10 @@ #include #include #include +#include // for alloc_pages_node() +#include // for get_page(), put_page() +#include // for page_to_nid() +#include // for page_is_pfmemalloc() #include #include #include diff --git a/lib/scatterlist.c b/lib/scatterlist.c index 68b45c82c37a..03599396f15d 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include