From patchwork Thu Feb 22 11:50:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 13567175 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 D3C81C48BF8 for ; Thu, 22 Feb 2024 11:51:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 359B76B0092; Thu, 22 Feb 2024 06:51:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B8536B0093; Thu, 22 Feb 2024 06:51:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10E5E6B0095; Thu, 22 Feb 2024 06:51:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EC3AA6B0092 for ; Thu, 22 Feb 2024 06:51:17 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CEBF080DA4 for ; Thu, 22 Feb 2024 11:51:17 +0000 (UTC) X-FDA: 81819274194.09.98C1E9B Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by imf02.hostedemail.com (Postfix) with ESMTP id 0F55F80002 for ; Thu, 22 Feb 2024 11:51:15 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b="HU/DeWn4"; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf02.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.128.51 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=1708602676; 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=FORSCnEJSDoW1xOoni46e3+631c/MspUPxiW79pGM2g=; b=QD9cXGiAAEehiPgoxnVNp6bwOsFqdqjdmfk0EDNA7F5nDTMNZQ9Ch4H4sAgArJw3DLhDS6 SIzjCnPBK+IW8KF/EYdTFB3WBIHQaE1QvT0Xybc2Mnvm+J6fWNyblgkCh9cNNHum7Mqzbz DAwpNH6uMAwlv3WYWQNtLdSXtm0Ew9A= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b="HU/DeWn4"; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf02.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708602676; a=rsa-sha256; cv=none; b=DsM0pdpH7CtetHaDDX6wRwprkKJnRVV5vpeLJvkg8RIgkrNeLxbCThB04G9wwZCROTVw4+ LN6Y87CMeCfhrwZH2OYFmzRMi34spe9i8znnGUFrjb4AeL4wgVVQXckFKOIkFHcW4BggUJ I3W15TfTM8PrNzre2/IujDq3lRUR+9s= Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-412730e5b95so16939975e9.3 for ; Thu, 22 Feb 2024 03:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1708602675; x=1709207475; 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=FORSCnEJSDoW1xOoni46e3+631c/MspUPxiW79pGM2g=; b=HU/DeWn4ORb2j2uuxN4/zQqNWJ+1XGkQFs0Omv6Thg2RskuF58LfVIoWlmanY4BuVU TxG1XMNSy7VI9oAiIU2vpbG6SDEK3ExzTe+1WMt9X+FoWHPtp88OXAgoi5vVI8NZwaci JVDgeVpDtOkvfW0ooSFzZ3GMm8/ZWWjxj1QBoyLTwfy1+zV4QXK91HiykvcAWxOx+rPJ X98wKh0xugOWqGDyNvc05I239kNCrcb4CSl3lE4jY0+gbsTOWN+RpLqKe6SrrAl05hgg ysh9FZASt0IRamkOmFX6e/AIsx+mOMO+X4M84+50vPRSGBfnMJio/pZXFBjiZkufG+3D Fnfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708602675; x=1709207475; 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=FORSCnEJSDoW1xOoni46e3+631c/MspUPxiW79pGM2g=; b=aXZUdVTsre2yqDYFRcPZvtB8ln9L4ju+ZZ8IPbafhYnWP7/APnJHw0z9+o32XyTgDS DRamKJoen95sEwSb1EREZ8iczTZmmvILToyKBx11yq1bR0IJH8D4DIj0Z6Ms09+va1Fj gkxS8c491jtUM5TqOOb4Rafseqk2iTdV22/r9+c3sX9MIwKwukh5x0F/mhoekhJzFxEw GH/XRKo5Z4OlcU1BEB2qN1ycwMDeckWrYxIpMsJ5TFTc4yTr/70qGVWTlbuMkVOS5+ii sy+pAbvvI5YrIGi6/iEo07NJRb1l2tYCCwadWFoVCMNj+L7uT1KhRDOcpYmIdfqjv5Oy A/6w== X-Forwarded-Encrypted: i=1; AJvYcCUolSJkXMXPcX/5Zx+sqDNVjjovQA9mQRauIjnpU/IAY78wcSyfzbwfcKeG1cd1F0PRSwhvu1+h9Lm+Nsns5Ubysyo= X-Gm-Message-State: AOJu0YyJlS/Y/xPR8uTd9j8ClwE+ex/PLbuQeLruRP6JaakZBNF6kzWu dTJNpaHqUPezqG+ZUEBeu0nm8iJdTWt9te7oBu8Bx7aUsAbiNin4el7FI5dE3z4= X-Google-Smtp-Source: AGHT+IEnpTEGPoO8JHL0sqB2DmBhjMLtnhAh5loH7/awl6AZKhYcFoFELJghLaiQ/sOhlIdWSxDH3g== X-Received: by 2002:a5d:64a7:0:b0:33d:ed4:5c86 with SMTP id m7-20020a5d64a7000000b0033d0ed45c86mr19274430wrp.63.1708602674795; Thu, 22 Feb 2024 03:51:14 -0800 (PST) Received: from raven.intern.cm-ag (p200300dc6f010900023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f01:900:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id co18-20020a0560000a1200b0033d4c3b0beesm15044920wrb.19.2024.02.22.03.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 03:51:14 -0800 (PST) From: Max Kellermann To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: willy@infradead.org, Max Kellermann Subject: [PATCH v2 14/14] include: reduce dependencies on linux/mm.h Date: Thu, 22 Feb 2024 12:50:55 +0100 Message-Id: <20240222115055.1172877-15-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240222115055.1172877-1-max.kellermann@ionos.com> References: <20240222115055.1172877-1-max.kellermann@ionos.com> MIME-Version: 1.0 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 0F55F80002 X-Stat-Signature: rmmiwg9qzkx8w1dwutwr1pedddaq74gf X-Rspam-User: X-HE-Tag: 1708602675-735106 X-HE-Meta: U2FsdGVkX18RPiKLFsPLTcrfcWN5asHeAtnEImYffVLzV009qf/TyqruPH4r6z05Fh4Uj0l55xKuphxHL4465Ied9nffrpw9TiL2cmI1zWgita5+NTJOKRxGGigXXY7m+jAq55JigSKcl0rOy3pbQZO3H7WNMXfLNUrdt7p3Ro90WWILTAvfub8jnppoOSxDdXEXOzpuLRZtkxeG8+Pgfpy1UZU3Ouci3zNBmK44/11l+sE3EmfXj301p1sV+DHcpdh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njEq7u3b0pXi6MwvkdnEbuYbNAhi0BZbMV+wj/M/GL67sp 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 28c7cb7ce251..06fedc08b998 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