Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp943468lql; Tue, 12 Mar 2024 02:46:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUG6Hm2YGIk1mP5DsZ5px761MlqUwbq0NN+9rsUG5Qqx139wXV//XylcBXmcPNiNi8+7WdjgBtQzvko5cJjDIwBYsMFevWktZTL/Jyxsw== X-Google-Smtp-Source: AGHT+IENe0l/5JihPYlIdYuk6Yzwnqhn5Ra/4fA1TFXC3XjPN634W3ieiv0TxhYA3Lth1fK9ZcvU X-Received: by 2002:a05:622a:105:b0:42f:309d:a44e with SMTP id u5-20020a05622a010500b0042f309da44emr10534423qtw.37.1710236785526; Tue, 12 Mar 2024 02:46:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710236785; cv=pass; d=google.com; s=arc-20160816; b=LBwZ3VGQcRwPBGqm3MeTEJgfcV4ZoLLaqqVYpzVE3No/HLGLEtRfg/uQxaLRbqPJq3 lDHNSpH75P+V0FKLOVqszWBxdNJKAqF47zQCm+exTBmetPnRnCeYHiS2GWpfLfXaejo0 pBE8yjt33NNCK1zdvclGkyYR1dLFKNJwe0y159+pIugqek7d2VbM/lzeGsgS9W+J0EPw /pH4e4H4jcIgX+10+/51ntYDsod50Jcv7zOcjdt1Tontx3H8x7GKh/63ynE7y5HTogBL /vK1Jy/TVN+7QRYEZJr6i+SqNNZtnP/RkY9pKh6juvucLtmH2H9CbncIMlsM7EcfZ9YL brOA== 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=Jrscdt21PtPY517djC+TvV15g1fCQxv1c3sR3dIsMR0=; fh=HJpN25ROwg7+3dH2MfEYf1WSPm+tx+QLLNcPappJ2W4=; b=jewNY0egaHy0bMhQhsNDdUkrxPXYUJdr+zzUqPj4PsKMfKehzoqfxrXmOZEvDwXWiU W2b3uXOcdq9yq/pwRcoHB3M3kkWaSOtVjZR32DtYz2yg98qoh9khHwRs+EsKWMI09KAD cPdp4bDKdIt9jxzRWRI4rozjZ3gEFPZzwnxFQbrOD7hUvVqtpBatY+Kayykb6FLSE16E rnvVOsShCMebalWmtKHhqyl6paH/ox5HIuUCVd+XAYrYPTuJx8U7eeHNcMQuqCSHlgxj sNFpqGvpo7oRsdOIfVkYkZP068x2N747XWRW8QTfYddikxAoGWeN+smbML5VHqPZNAk8 kYgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=a7t0xL1+; 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-100055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o7-20020ac87c47000000b0042ee0557898si7240640qtv.5.2024.03.12.02.46.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=a7t0xL1+; 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-100055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100055-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 446E01C20984 for ; Tue, 12 Mar 2024 09:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3E037867E; Tue, 12 Mar 2024 09:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="a7t0xL1+" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 9E8D47C0BC for ; Tue, 12 Mar 2024 09:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710236527; cv=none; b=DqJWLGTQrcBJPGHM8+svPN7ufpktWGiQH9VlznfNbPP21Kl1rifBybt4ysqpS54Uz0GNzTdqqHpO4WkQDBvwT0F64rkFwqzDqkATzDPgCZ5kxjXKaOdDcX+riyrMvW9YLIvkBRg9MJE54qUUAMkMcM2PWknw/rva/Ne6FZ+KPP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710236527; c=relaxed/simple; bh=zLQTClvlEzGI/x44WBlT/FrIRLpjouIvXQ6mUIYW7FY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FGtSTYZGBJ/v/UAJw5AtNBVJ5K6TUCxqwGb4L4WlzCl59WZbMVrYnmVufeMIiDjIFz6WIVMx7PsqCFJ775OYWP5qnnT66BrMdA8fGmfEDBqaLDA75CZWHMDmi5yaq20mblmKcpSQ1zURA9nNjnpZ7sJkgHU0IIjCNMmffWBmHWc= 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=a7t0xL1+; arc=none smtp.client-ip=209.85.218.42 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-ej1-f42.google.com with SMTP id a640c23a62f3a-a446b5a08f0so949702666b.1 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=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=Jrscdt21PtPY517djC+TvV15g1fCQxv1c3sR3dIsMR0=; b=a7t0xL1+yZpk3D/c4AXn/nqxuiH7M95uXiteXoVAtvHKtYwP+fFa8XJbQvUjizIG/g UCylibaS+aaraSxx4crrWL9Via55L0IWuyG5ENGUCgjuaqs4jPugMF9qjielVnO8l4g1 LnpOifUiYgPGXDxIs9PNB7YYzx9EjqMvyVwWiidSkGHvOHUHvgf0WM+59HGQ4lqZAZfi aTCjB+SIWHvZwDPgSIPwwx8bMv08qjVOpo5Qpt9WARPt/S40Qh+YaXryns05KVL4paQd dqDrxMuMY2jB2amcrDxIgGZFQrO8pEynL54SSkUf1572nx2/Jd0/mdIIcpQNtYkiU83H BJoQ== 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=I5lRzyRf9Ka3ksbvgiX9tQSLfy6yMzGd87i6O+UBJOlXGN2XgbkYfSvBXIWvRcBSXX rRY3Y0eG7HlGC5juzZ/GL9sVvIYgIlgumej8N8L8nCY2qaitPzQYroC+KO9ewEsTQH+L FSTsZDGaOZwd5JRmMd3ehs1o2jEYyHEc4nIQOvZMxq4bFiSOBR7UjZ31zynsND/CyVjY t+tcBJK3yaaVoM1KPlfJEB1f7iUSnm6h3SQETFnnKMo40NSUXvP2sJ2bshAgq+xM24/k TiQ5GrD1uxfMkw3u0JcnZgQLhmjxalRxX3PVMV69wPJOcLT+uuobchAGHtEUjgN00Tji dH+A== X-Forwarded-Encrypted: i=1; AJvYcCX8K5qqwNqMRz0Duw3Bf80itvWPAwVOvxawV+QxEswamX4s82KIxfUvklyrjNtMjedv0couLQooGWvnk2N1noRG+eXAAMtozhz5e6yf X-Gm-Message-State: AOJu0Yzvmcz0KF0Otm/XHtFzgobNqfmWICBkAXYGWr4+0FuVoy7dMTw/ NuUf3YS83nDvrhjl11e09WXNpvJKCM4KHy+LPS1s6DdtM923a4+k2Zmpe1MEyJo= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.39.2