From patchwork Tue Mar 5 08:59:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 13581867 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 E05C2C54798 for ; Tue, 5 Mar 2024 09:00:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 542EC6B00A3; Tue, 5 Mar 2024 03:59:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4F43E6B00A4; Tue, 5 Mar 2024 03:59:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 346DC6B00A5; Tue, 5 Mar 2024 03:59:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1D3FA6B00A3 for ; Tue, 5 Mar 2024 03:59:54 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id BEF5080D50 for ; Tue, 5 Mar 2024 08:59:53 +0000 (UTC) X-FDA: 81862387866.06.C4109C3 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by imf22.hostedemail.com (Postfix) with ESMTP id E693BC0012 for ; Tue, 5 Mar 2024 08:59:51 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=DnroNY6s; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf22.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.218.48 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=1709629192; 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=kg2bpXGSRrzoISiqX7O1pb+MwUieZ+xnjYvseU34GPw=; b=pwrICu11MHcg+B0d0mrwQZT/y3ddnvelbIYukBqjImkG/VS91F75ow47xNXvyr127d+8Z3 p7nTYYbo8rApW0PDlRMLyeE/EBItpisb1+s3qrWo654RqyxXqtPOvXDZtwW9Jv6JqBkqPv k1GNH9SZ0lKftYysnoG4ZRiaCeW6hAE= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=DnroNY6s; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf22.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709629192; a=rsa-sha256; cv=none; b=X87Ys9eEr6W93uhPAlQbp3Fag0N2/VVG7MYnHOCqpnzPkVRAzCXHzPYcxxzUWeD1g43gXZ Fe/Ndq0OnY+9uhvsWtaQ9B9FPvw6Y1hCGt5R39EjquylGjAomGBlT5pttzj/zrLhW2wXkW XIKYFzancmE5m4qw0l+OLiyQVDhqaZU= Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a450615d1c4so399324666b.0 for ; Tue, 05 Mar 2024 00:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1709629190; x=1710233990; 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=kg2bpXGSRrzoISiqX7O1pb+MwUieZ+xnjYvseU34GPw=; b=DnroNY6shXVM1Q0DJaaUdR74KwCg2jGIZBvZRDtKHHtM+rG1/dttnQFhgKLK+IJdpN f/BD6kaARmrhvl9SxQZFzD4+xcNwLXdhlJqJIHZVF1AD8iJ9rNegsQ9NKsXJkQozr49V Hn4Di0eK0rOrDDan4wxScv3gpAb1uZFdp9Jri1RlT9YMGnWR+jyj2bekTJf46f2V/wQl Msg/oVg8kiDtKD38Dc02zWlFF+T6stRWoMsb+AaZvzujoHZTOv8oOJiJtjmVfGMEvKk0 2dx795c95l4V0KwFJ7es51a7Q0mdHhg3EWluKIh03QIhDYX4ekW8X2I3pGmHvoGsiShw 3DKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709629190; x=1710233990; 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=kg2bpXGSRrzoISiqX7O1pb+MwUieZ+xnjYvseU34GPw=; b=FWOtQUH05Ifj8AQrYF1+9EZRrKvHXmZGjz0H+08tcfaF/6tbtQSgPOzBnFFhRfb7ty 2f8jfPz25zObyv7b48lnh4g2PKnJcQsX62j6YkiYC0n53co5bGYttjNsBR3s7mLCd1lR g4D61d+OOyE1ij8v920cleVILp6WKqkYUJaxYNYXXakrYAj7XKUFtucUUa8hDLrxNyBH 1iqL/rx1OJeegF57haXNGM0DY/R2nvHCXpciVQTvIPWqQN6COtKT9tiOm+0DDpKhSeI7 fSTswjYoAGetO2Jxwmmjuh1aL2U+Ne30/aq8vBeWh+sCe1iXqreUvlnQ6woriFM8ZKV6 +Fgg== X-Forwarded-Encrypted: i=1; AJvYcCUS4Qa8tEGoa+RgQcUlPDI2WsGQtNTiRjn4jpIcxoEpUXHoKKVKA/mFfItyt6aa/0E5s4I2rHhTJU8G3aPltjHjcc8= X-Gm-Message-State: AOJu0YyNUYJ/gUU4ksiuP4RB6MU1dtYQJvnk/KbwvcSBWW4/jIx4fWu6 521uNGAJJMY8zNIuWKNBIucX23Inshga6LPfDmADNxKYRbAS9ZcZVIzEWw7YyfQ= X-Google-Smtp-Source: AGHT+IEzQL7M2UuAo9MnJ/pbyNhFbLssWyCiOGjpuRhDJu5ujpFN+An9p4+sh1nmIhJdXaRA1x3R/g== X-Received: by 2002:a17:906:190e:b0:a43:ab6f:ef6b with SMTP id a14-20020a170906190e00b00a43ab6fef6bmr1942409eje.32.1709629190675; Tue, 05 Mar 2024 00:59:50 -0800 (PST) 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 gs4-20020a170906f18400b00a449d12cdc5sm4453005ejb.119.2024.03.05.00.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:59:50 -0800 (PST) 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 v3 14/14] include: reduce dependencies on linux/mm.h Date: Tue, 5 Mar 2024 09:59:19 +0100 Message-Id: <20240305085919.1601395-15-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240305085919.1601395-1-max.kellermann@ionos.com> References: <20240305085919.1601395-1-max.kellermann@ionos.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: E693BC0012 X-Stat-Signature: rtibfw6ooodbii1ir8hca6ecyoa6uy5y X-HE-Tag: 1709629191-325674 X-HE-Meta: U2FsdGVkX1/c++Oq+hdKCUUIo1vmChqCFFHiWrM0Wb0F2WGCIUlgOOV4HDqDmzqJZxbq9sQsiTeJQhlJ2UvIEDsooo/a5v0OVKl7LC26ae44MW6Q28odAanrNKan59eRTPwyuiDwwmVuZQ84E0kdS0MeGo6AKnWHY388KxZTFl51mVJXqoN9PsWgQr1MqoBAJszctHxd9xAmwD3r+199X43u0GFAwOEAu6VIALIHaQ6cNlwMMkjEDe5nB7TJfwgefzbsZaRTHgDIFL+wsq4FkATo9kY1N/KgOVXbUubOZWqQu4Q1btP1c/IjQ5CY/GTNUET9Tit75GGXScezsTyi4nEslc2t8en1bv+EQVBAdzWsKOm6uFyAZIfDY4MtBbpR2fxOnVD/Z/1gLh0b478qWgy2A5KvxYn+WT+ayyUy8mbzlqA24E5uygLKjt4WFRqCOxa51+yJ067Nn2HJUzTlWIIVlZZEpITsQ/MxTTIqnVuGtRvSsLdV8Qfel7hLOyLtDK8zedA4P+0Gqe9wV1QqO9HWagY6Icn+sEAq/w1n49ptdGHNU+KtOlcXCJsN0NdqhoKQZXpJmoh4yzNtWDindb87f1pqUYISoJyhJi30A01s/yI7p3crUcXUzfAJ3d8gEyP3GMjuDJy76/LuLDVsna228xJaypEcdQmeyS04LKCRNQO8AP6l9lQX+B8p6HyIzLuILP9luxSyGqlTotKn9KFrdtEHakI20NQ1jpA19c3Jqo3DsW6QMz+vlm+g9AFOm+VOD5biWFpZkV0rCitrHHm5hvFay0gAYlVMuC1FgRA8V7iqOqjM/dvLaZJDY+0U7wWZxFoYujrDzYJHKk9W4IE8YxQ4BWkqYyvcP66qnz9Woslqy3DEj1CsiNfz3sMWPzIc4z3sm5xG23pFy2DP4kd2kAoQ9PbltdDiPZmNgoW+clQ/Iu6KbEBikHeA0wOcNlJfD+elfOlXZWmNIeH hoS95Rrp 8EisXkaSGTuxM8pAOYh7oi5ULKFvbUmdjIJHFSKVl+9LLX9Ss5cVw8h+32YevpoZ2heykUOgGiAQLQhG66viZptEWO8NT20eF+GU4RA8cOhvYizOEnG3e3xV108wGDloSkU7Y8EDAhwRvUsiN1ddy6E/H6OZ5GFR7FkNv 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 d577e0bee18d..ac121262bedb 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