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: 201520 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp454979dyb; Thu, 15 Feb 2024 07:00:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVh35w8ZPrs6HJnqVXxRBAh2BiK46ibKSa91OJ59tS40sr8gyfmyrnz22knDbjmusVdUyqP5Dg66XGGdn+5mRRsp9J6aA== X-Google-Smtp-Source: AGHT+IGLWoOnZ+meVDlxCt2A5kQtEyjdByJBRrBrkMixSRH3NIOuIVw3aUjZ6yWyBf4Vnd1zNjCy X-Received: by 2002:aa7:c645:0:b0:563:8b25:1658 with SMTP id z5-20020aa7c645000000b005638b251658mr1750880edr.19.1708009210894; Thu, 15 Feb 2024 07:00:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708009210; cv=pass; d=google.com; s=arc-20160816; b=GYwPbmaAidvQ746S1bVTYvbRZwTnymSxf9QTWw1k7kt0hVTduPn7nXSCDE9yos6wIh 7xPMwyCcpsur5gCbqnX7/XbcaDs5rFzI+LyhNFAyeCEZFDT/ld3KjBrj9AT8ilQpK3E2 oQJZ9tpmj1JUX0OLAG+F1saIUU8CMRGY/zzm60duRpF7sRB1V0ZIEwZqrxwXDQCpzmPQ 54lseyVLYXDpAdj4OSfKfrZZpqRCH6EU8NwQoQTSKhjVWTqS+HtK+e9vy7qpRRwUcI2j m+SaVPJxi0QB920YHxKOPCChJ7SB/4lsp0QxEVUwn75Pz2ngYuTbWssBUIEsQ69CxRDE Fz9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=k5bNFuP+26n2WAnHi+toNNvLtJ00uY1JoGlCS6SUUmE=; fh=4JIr2CRSGoFo7UcN+zSYPAERMMyhb401V/t63VsrK1U=; b=wntzQOkdnfr0mzZmFHc/cwgQRMIO3zEa6v7aQm3mbNNmIMP5aBIDzRfeN2ElXr6JJF x5Rhvr7HfZupszAj79mEa7HXzFh73mwaVb/GqL6fvrkZOytZ8Kds5AAxfV37nGbHHXOg y1MOZKq0RhAWeZozKfnL0ImhMOf/URgD3U+GiM2wnvOsf89SXO4Vsojd6rhk4gRKJPzm 39oGHaQR17gggf9of56DyaL8Gu//GSaEbHkG8D+ZKn0odbXp9LChO/L1fvbc60flOCXb T9/hu1jyT6MBKfJbc+CmwUB/l/cjs8qa2LSQNHNXy5hn9LUvqiSPZ9UL6iVtUiSH0/UU 1CkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=ZUNiT+mB; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-67125-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67125-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i6-20020aa7c706000000b00560d6e97583si695485edq.226.2024.02.15.07.00.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:00:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67125-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=ZUNiT+mB; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-67125-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67125-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4EEFB1F2174B for ; Thu, 15 Feb 2024 15:00:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B10301353E9; Thu, 15 Feb 2024 14:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="ZUNiT+mB" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37EAE13398A for ; Thu, 15 Feb 2024 14:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708008988; cv=none; b=tr/mTwvY1gokxhcDEPO/htm0JSGmI3HfIXchc2dKBrbwPBqk7ARV92+L/pu2ZGfG1GPM7u8NfzyUL8EtoJIGHVpO+abxPLUwBsaRnWy/AtEQ8GKzejdQ8SPpfVKzYLqyzOoMMDlrrt4B6PIwORGASFRdK/ULSjoQDLfKUM5px9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708008988; c=relaxed/simple; bh=99abj94cdBtHWVGTVg4oNZ+VC7s2b8Dvb4V+r0FrVoY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gC4AGqwYMtqzUxUoBJ1SWCGjhiVsEIXaEePfCwkT7oK7XWGHob0Sr6slHnqhhaNi5MW69ML/4FUp2aoaKbtVoQy+TvOJU+5wIXaJM6NjtzyWc1LTo4ZNryww1F+SzjmIvniysDGYUP+Kd18aBtDhBE5momts3orJAQ+LClOC6GQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=ZUNiT+mB; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5116ec49081so1125243e87.2 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=vger.kernel.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=ZUNiT+mBSOWniI42pndDtvF09ox6f75QaOJD40J8jpHr4ipe8HrfmKrGrsymVKZjF1 nN0IdTbrAlksw74gDKDlznGuK7M5N0WPZuksSj3qkD24FLY9R4nWg7d7w4GCPFdTdaKQ XmI916qGi+TSRF8yebdVBcPfIhoSHsxBEVvoR5hA8VIacFxIGUsLr/XO5SAHwfSPjMjo 8chq/cLNd1IQ6pzassYtl6NKf7CMGcDpnu0Hu5F+H31Gv3UcxM/Sg3anWou0F7qU4kaw 5EfnwC0eovGJBjVuxjlMVDXlvp2f5l4LMfMk98u/JIcdmj/hHMFJRTunl0jsvTBG8Odn igQQ== 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=eSfpWAaK8JJxsFaTKlkrrMwb6yjwq1qQI7KxtIzrwxvBOiLsxMzdV+Apb1aJ/Smkts KrGelEdMAelgUwuCPDQCzByI4wd6dGKFNqnngvjxb5D6JTBtVraqiwWB8lpcLGxkRO42 g7c3xN/9TaOfCvGvrVG2MX5VnmoEjW+1i8qxHtRJsmN3iaV5VXpjlv9QM7jRYrFJxDe5 UNvyDvwS+ds5p9KT45S59EYqpUIZaqtAQcKBD0o3ZHEc8sCpkUQWogBOr7lnosk37Oce k6hzjzFkGd6yFwRslgZxzY3TNmdgL0gvxQtLbSFURH52ZuoBrGjP0z3g4Fw/OS4GKRs4 BTGQ== X-Forwarded-Encrypted: i=1; AJvYcCXvFWjE6vnFTqyl4dzkoF1GXko5DDIIZH5gNjE7nIF75q2uZAxIQYXWE3luR9jIpXDsGWYfMX1sqsTDuaYdmNI0PRWoUhUvNhehuq7c X-Gm-Message-State: AOJu0YyYWtqaud2095wB0ccdpxrU6Z7KsliHrq6BWmwaATr5W/T20yQm kC+aGnhKn7vwYqLICd+mS1dxwdXTcnhBQLgQ2LbzB+LrSCsF/b90UL93WLfOxCpJJ5t8wj7+CdV P 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790977466425994953 X-GMAIL-MSGID: 1790977466425994953 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