From patchwork Thu Feb 15 14:56:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 13558594 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 D2DE4C4829E for ; Thu, 15 Feb 2024 14:56:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1192C8D0029; Thu, 15 Feb 2024 09:56:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 076316B009C; Thu, 15 Feb 2024 09:56:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC97B8D0029; Thu, 15 Feb 2024 09:56:28 -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 BDE916B009B for ; Thu, 15 Feb 2024 09:56:28 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AA7B9140959 for ; Thu, 15 Feb 2024 14:56:27 +0000 (UTC) X-FDA: 81794339214.04.296FE4E Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by imf25.hostedemail.com (Postfix) with ESMTP id 9F051A001C for ; Thu, 15 Feb 2024 14:56:25 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b="Uzkmgt/s"; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf25.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.171 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=1708008985; 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=k5bNFuP+26n2WAnHi+toNNvLtJ00uY1JoGlCS6SUUmE=; b=2p5fLllkF5XUIVzraQUo6yWBBoPbj4aSmJG62qptoTC2BzztnCbedGsuKjM9dZdxXzgIY7 tuPKgc+T0ZYeEMFwpvIk1UHspHuCRyufoQpwb73O8r3IenbxIDTVRPYrwgvXouZ6lkTiug nDQPZ33MSz3ch32heG7rIqIofFeuyzU= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b="Uzkmgt/s"; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf25.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.171 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708008985; a=rsa-sha256; cv=none; b=m8RTLyG7ne1BFoChYJcJxgpKAtYHKhJlJ8RIdQxYcmU5CZWMoWyKmJhjdvqkp8J0228Wpa CZ1youQmh4umdN/cpKUM0zNjUBEDCdsSqkoRRYpCW7pSwCbtnGXUg2i4viPOaFBDvXDM2V yKrLxXEUWnsOEyOVYihM7shZPGcUdm0= Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d0aabed735so12340161fa.0 for ; Thu, 15 Feb 2024 06:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1708008984; x=1708613784; 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=k5bNFuP+26n2WAnHi+toNNvLtJ00uY1JoGlCS6SUUmE=; b=Uzkmgt/sVXIFudypCsxLe61GueKB5wrk5Q7cYgZ5H51JWH77pniYoKDL8c3+1msNnm 7NrnDdfogb5aMCEqDrTWfn0jyf3Fdy8dLt+VrRCOOS/+8lNWrvrMf0Jlk/9+gxVNGyaI 89mfzSzsiwaVV7OEFQxC+IdDmKdSpo3ig70StS1Hf+CdVZeMirx0Ge7RgshcsKt3dGqH 7SBPmQ3g58YC+oiBe/wtNH+8qwXFdA3p9+rJUSzVZBE7DMM64czPeDaFR/uqhUDyhyKM BRYpjcIyf8juQRoax/7hMdrx4DK1DPSnNcB6C+3nSH6K2YHS07EWDnN+NI9MalCMbx15 6AMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708008984; x=1708613784; 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=k5bNFuP+26n2WAnHi+toNNvLtJ00uY1JoGlCS6SUUmE=; b=gDRTnHbUy+uNE75qJq17KCfWYhEdVZBwkNhYWi+hGKNQARSAD6FesOvr4ybaRNj962 MNitGMAOWwaWB783kavyHF1g1gOaN/s4TojsUTZqMdVohzMcDe7bfgpOyWLORmgDLs5T qwub2DAG9zU49/e5+P1VoZqww07vPrwRF/Bi2B70EuthR8zJFjN86V88RkzgghPA0dLD 5Pt64Cvz60SRMHpy9/SZBhcAIsdTNZz538+2+1Gnd/tqFzy6vmQxFDflNm8xkoiMrtVU XRgaycumqnEr4kGcYqqD6nYYVro8hD1gwwTGuBQ83ETFJlIDZ9r0VwTmiCKg5BgNcU5Z DnBQ== X-Forwarded-Encrypted: i=1; AJvYcCX8c0GRczME5400Tm7sxz72unGQnA+uFp16v4kG4qSNiELj9giEZ5H4hakgX6eN0c5o3QYns2VUSt65T5TZvhvDjC0= X-Gm-Message-State: AOJu0YyvvY5iRrFTPvtQlCJz2avcq9j9X6FbMQakQBNXKPJ3SCwwu42b r4md1TyRdnU3Rq4BDa8IXjKqa95EFtSNxfZbf7FlQSi0wcecIG/nTUCv0xmDoY4= X-Google-Smtp-Source: AGHT+IGTejOtFQSkxWlTe5pM1Jt/3IY1ChHH3rRQyQWLJsBYWozwuVRPQn/QL5Lsca+6dY2PXq0OmA== X-Received: by 2002:ac2:58f3:0:b0:511:986e:671e with SMTP id v19-20020ac258f3000000b00511986e671emr1726945lfo.10.1708008984131; Thu, 15 Feb 2024 06:56:24 -0800 (PST) Received: from raven.intern.cm-ag (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id s18-20020a170906169200b00a3d1897ab68sm631175ejd.113.2024.02.15.06.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:56:23 -0800 (PST) From: Max Kellermann To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH v1 14/14] include: reduce dependencies on linux/mm.h Date: Thu, 15 Feb 2024 15:56:02 +0100 Message-Id: <20240215145602.1371274-15-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215145602.1371274-1-max.kellermann@ionos.com> References: <20240215145602.1371274-1-max.kellermann@ionos.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 9F051A001C X-Stat-Signature: hprmuk63d519ik8z8wka6ieyucowzo8s X-HE-Tag: 1708008985-569358 X-HE-Meta: U2FsdGVkX19cRzEy/MM1/WoGfSOcRmGOg0XLyCKyJnF3tUojLz5JmFwLdXbw02C29JQUIXg0BZeMLu4wW+ae2b/uQ5Vadd9ChZ5PHHhZWxOygkC//7IX+QgARBAQXc6u+/28wsWPjLYmB9uhSkxRHBA0o4vs68xaHN0K1wDfOa4gU9JDgYJSzLAAzpSCY3yXGzJGp9P67DoyCmzXJhMN2V92dOEydfltz3g80DJjwLpRNjn0Afz389xPU88pz1mz3uaTavGZMP4dM788tnvbcgM78+hFzY1VXd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GdcRx2TpHA 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 ++++ 6 files changed, 13 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..b9dd5dd915c3 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -7,7 +7,9 @@ #include #include #include -#include +#include +#include +#include // for folio_put() #include #include diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index 77df3d7b18a6..d55cfcde1b09 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include struct scatterlist { diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 696e7680656f..5bd89f0f7e7e 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