From patchwork Tue Jun 4 09:08:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 13684913 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 745B8C25B78 for ; Tue, 4 Jun 2024 09:09:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED8FC6B008A; Tue, 4 Jun 2024 05:09:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E5F376B008C; Tue, 4 Jun 2024 05:09:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D01026B0092; Tue, 4 Jun 2024 05:09:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id AA7B86B008A for ; Tue, 4 Jun 2024 05:09:10 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 606B0A1A74 for ; Tue, 4 Jun 2024 09:09:10 +0000 (UTC) X-FDA: 82192632060.11.13D83E4 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by imf07.hostedemail.com (Postfix) with ESMTP id 5C9354000D for ; Tue, 4 Jun 2024 09:09:08 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=V2Mzib0l; spf=pass (imf07.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com; dmarc=pass (policy=quarantine) header.from=ionos.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717492148; 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=F9nIWEpeq+x9zjwKZn660Hrmucb48woIRSOtfjCvxw0=; b=Dc2DuHlRQg6vdpuaHFbgkED/M4fdndNCaKfV/SR+t/UgKhx0VcmJRbCpypETvAEAog6dRc rFmGCdpRXBXju2HT0Mn5oGivHh/now9PpK5n1pUeLI3vk1ytIu9etsuOFfGrPGRJyxKz1e SklWtOwpv6S+46LIZIqHGhQ5i1Utb+g= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=V2Mzib0l; spf=pass (imf07.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com; dmarc=pass (policy=quarantine) header.from=ionos.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717492148; a=rsa-sha256; cv=none; b=xmRYGbws8h5l0MuN92pU6nxuwpdl3Y//n9BTUQUs2KrMeYITc2Iv2LH2ncfJ1WatvRo69r uDY84lmPAKsSgqe9Zo6EYUqjgO/2AP7+lpydi46C0eDMpAtYDui4rWIfbtEoQIiAF3VuHD S15H0ihFwd9crPR6JGj6o/xKa1E7ySg= Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a68b54577aaso315393366b.3 for ; Tue, 04 Jun 2024 02:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1717492147; x=1718096947; 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=F9nIWEpeq+x9zjwKZn660Hrmucb48woIRSOtfjCvxw0=; b=V2Mzib0lBBOam4xVY6GZ3X5d6nhEiii2uN07V4iKVLgI5eW5KlFfza1bMMO7BFuiFT PM07/bNrXTuM94VxtfRD3HPtDwQtpJbX869dDDWDZ/DVLj2kD5tJWoWGUKHQE6FUYmU1 CaWM7ikIaNcnBkA4vcfO8az75gJfJ1sYE+I9zf1IUVQ6ZccgINcJ3jlC/ZlbHvjuH/Pa yyUTs3ae9OK7MPHKq5bvBqYbaZSf7DdfS+DCAy1JW1dep7hbYDw/WVfp4xH9HFOrA77j 0YyCmSPKD1QhcvdG3gfsgmF0Q3FCYzlTMmz6SQN0vxhmtMMP1p1JEuxjTYB1sPy1/rZQ D9fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717492147; x=1718096947; 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=F9nIWEpeq+x9zjwKZn660Hrmucb48woIRSOtfjCvxw0=; b=HhzcIgKQ5J84nwrL0Ka8Myx+a0VFftYC43o0ciufuv7bzK9r8nYg30IpdYnRLPYTLU orHO3W6lkEsOQhCIoVOffa/xnbPDfxJ3H454Zf+kwVCWXlII6CuofFgDNcq7DE3rokdN AJfeKDJ73Di62pj4RR4Rt0OQOp/FuwvvkgP4/huaNNsZ6lgGLhuGxPMirKjsrPMPVWMV y1kd27mo9A8akxKzZ2BicfrXky+YRzCwAUZViqIHeVixHQnnyl8bbiPIz1eC3hf/a0vq 73SMOeIQUomNA0O/wC0hm1b+HKSZuDB9R8HUoYq1FZpB/D/ZSJ2ZdPLQs3Q5HoeM2YVH zFmg== X-Forwarded-Encrypted: i=1; AJvYcCWfcRk0G5byr+ynyEdW64g8TpQODblsKoaChb8iIlKFOWTz7HJEKoV1XsBiD1my85pgSJBOEm42lyyuEg+DHDJG2+M= X-Gm-Message-State: AOJu0YwRafTiaKMj/E2futq+hPf2heWfRsg41NkWSnFUENIkk1kXvex5 aACvAdTXgWM7Zm3gV9+6xrP/8PVNodOlNAM2vKsc5MyvmPc9vpnflIkZK8+dXHw= X-Google-Smtp-Source: AGHT+IH/QWdZZ4hxij414qaSi16QQPTkgw/+VI8cd7eUev+6bYbrIXWUDGZs5ah4lxOjZno8KDMAsg== X-Received: by 2002:a17:906:31c7:b0:a59:b61f:b96d with SMTP id a640c23a62f3a-a681fe4d0c3mr753625466b.5.1717492146689; Tue, 04 Jun 2024 02:09:06 -0700 (PDT) Received: from raven.blarg.de (p200300dc6f4f9200023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f4f:9200:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68fa49e66fsm328376766b.129.2024.06.04.02.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:09:06 -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, david@redhat.com, Max Kellermann Subject: [PATCH v6 01/15] drivers: add missing includes on linux/mm.h (and others) Date: Tue, 4 Jun 2024 11:08:31 +0200 Message-Id: <20240604090845.2182265-2-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240604090845.2182265-1-max.kellermann@ionos.com> References: <20240604090845.2182265-1-max.kellermann@ionos.com> MIME-Version: 1.0 X-Stat-Signature: k9ih4oy1yxbfipdqzsw6999m8497bzme X-Rspamd-Queue-Id: 5C9354000D X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1717492148-344241 X-HE-Meta: U2FsdGVkX18f4wUau0kAkf+HgKrZTlWqhxoxBByRgN0Jm5b+Omh0qGnHOZ5flBMWfhnEcaCjUOtqWH8FkCd9psFZQ5UAz266l8rXVJ6c5X3xDeXnAfeRizbqadGfuVbBf3LYzDU2XKdZjtkfyS/j/RNO/vm8WdRTN6qbK420IKUv6bz5Ij8KfOAdS+O81QNEDd9tHEwbV9EYVbkdHlPGnBjwz7OnFp5qUxaSe5l5rVQGAu0/mWy4lrEP8vKUeZOy5TlQEZqtnZSv3JMzx61Cpz6WptnDuqayX9AmgNx82Rp0dzfh9HGl74pKSN0QN73M3MZ4f9+/9q+fIzhavSTsHQJG8GPdRVp6tBsRNu6o2zCV8pLAHxxOb9m7qBW4q9wxXFe9L2YAnj7AhxfATTox6SNckuF+a8fj8s2vXzX4vER/AV0+nXCuHNN4b+3R6NnTpPPqFDJp1D9IoiW8zOYpl3xPPDQRW9rTyxQye6VwfNPuI7mNz2FiYYyPhztuYgftuSDIDmnguU6MHBmAb1JARuuHL021vv5SEj+ttIUYiuRvMG9+g2ZORUpuvqqBIvtzYSIpBfpXOb2bF8pQxPuTMs6wdSPgizdNrJSjkJ+QRL/LkFc/vtnwBggLzl9+Mosg3bdsuYjBCBZNXJnyC9oQwvwLg5hU5M8D8PbvgFyfL2b4nkBzcORvDt9jXdG9qLVgWPE6b4+4BvhhOxdbgpRvKJ4F9naMFKoAgNql+EKtfjkzpifAI1vE59V7TC5eESx4sPFmnpsPzW77EcXFq/TsViCPvEdowvCv09XPbM1DmUkTJckHi88HgKEmiaUyogTkej96CoJ+GIq5sevEwVie2AL3byAtQ7zbLGI+27V6cqy5r1oXkOWvogwHGZZ5pRd3+SOvmq4tDKCeBYUNytKWpYKDuWL0uXYmTwX+BSZzclbae13pbQtRRB77QwW+lkO34tuEVhU+yXpmCbiJH0H HSNlM77y W98fHQUIDWqRbiWzgXfOYariLQoR067nHUjEyld74kPOAO6bH5Xu6rnIxuUlnUO3xkihhSM4xoN/PUU9lXfCoEns2Kpss5UoneoYTcKKJyjREVbhlkCndby/G+8qH3cTAfmJI0zBR5hBOJlUhxrgLgeYVBCxC01wwLy2gGm4Un94zGxh922D5NVKo+NSzgvdTxjwEIlMnxTdLlDbomK75W1ROeuVGUsKU2NTToyzwgP7grqtLVu+Aqc30dIl+f1nvcgQHAPA+pPo6Q0Zvf+/gzsCYTYKlIpX536mQgl2icEltkBYeHycBlozaLc/7NIiRQkS3vxr7GcNwAzastScZXflkjsCmDKc2iS7zbqalShgDswbqE8kIuDucwzSCjN6SHlrb 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: After developing the other patches in this series, I had lots of build failures because "#include " was missing. This patch fixes those build failures by adding the missing "#include" lines. To allow bisects, it is ordered before the others. Signed-off-by: Max Kellermann --- arch/arm/mm/iomap.c | 3 +++ drivers/comedi/comedi_buf.c | 1 + drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c | 1 + drivers/dma/bcm2835-dma.c | 1 + drivers/dma/dma-axi-dmac.c | 1 + drivers/dma/sh/rcar-dmac.c | 1 + drivers/firmware/qcom/qcom_scm-legacy.c | 1 + drivers/firmware/qcom/qcom_scm-smc.c | 1 + drivers/firmware/raspberrypi.c | 1 + drivers/iio/buffer/industrialio-buffer-dma.c | 1 + drivers/iommu/iommufd/ioas.c | 2 ++ drivers/iommu/iommufd/selftest.c | 1 + drivers/media/platform/mediatek/vpu/mtk_vpu.c | 1 + drivers/media/platform/ti/omap/omap_voutlib.c | 1 + drivers/misc/bcm-vk/bcm_vk_dev.c | 1 + drivers/misc/fastrpc.c | 1 + drivers/misc/genwqe/card_dev.c | 1 + drivers/misc/uacce/uacce.c | 1 + drivers/mtd/spi-nor/core.h | 2 ++ drivers/pci/p2pdma.c | 1 + drivers/pci/pci.c | 1 + drivers/remoteproc/mtk_scp.c | 1 + drivers/remoteproc/remoteproc_core.c | 1 + drivers/soc/qcom/rmtfs_mem.c | 1 + drivers/spi/spi-aspeed-smc.c | 1 + drivers/spi/spi-bcm2835.c | 2 ++ drivers/spi/spi-intel.c | 1 + drivers/virtio/virtio_ring.c | 1 + include/linux/huge_mm.h | 2 ++ include/linux/iommu.h | 1 + include/linux/nvme-keyring.h | 2 ++ include/linux/page-flags.h | 3 +++ include/linux/scatterlist.h | 6 ++++++ include/linux/vmstat.h | 1 + include/scsi/scsicam.h | 3 +++ kernel/dma/ops_helpers.c | 1 + kernel/dma/remap.c | 1 + kernel/rcu/rcutorture.c | 1 + mm/dmapool.c | 1 + 39 files changed, 55 insertions(+) diff --git a/arch/arm/mm/iomap.c b/arch/arm/mm/iomap.c index 415d0a454237..9873d8156908 100644 --- a/arch/arm/mm/iomap.c +++ b/arch/arm/mm/iomap.c @@ -29,6 +29,9 @@ EXPORT_SYMBOL(ioport_unmap); #endif #ifdef CONFIG_PCI + +#include // for VMALLOC_* + unsigned long pcibios_min_io = 0x1000; EXPORT_SYMBOL(pcibios_min_io); diff --git a/drivers/comedi/comedi_buf.c b/drivers/comedi/comedi_buf.c index 393966c09740..23b07ebc97ca 100644 --- a/drivers/comedi/comedi_buf.c +++ b/drivers/comedi/comedi_buf.c @@ -10,6 +10,7 @@ #include #include #include +#include // for PAGE_KERNEL* #include "comedi_internal.h" #ifdef PAGE_KERNEL_NOCACHE diff --git a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c index ee0b5079de3e..c9b2787baac7 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c +++ b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* Copyright(c) 2023 Intel Corporation */ #include +#include // for simple_read_from_buffer() #include #include #include diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c index 9d74fe97452e..1d971999fd39 100644 --- a/drivers/dma/bcm2835-dma.c +++ b/drivers/dma/bcm2835-dma.c @@ -31,6 +31,7 @@ #include #include #include +#include // for ZERO_PAGE() #include "virt-dma.h" diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index bdb752f11869..7538459f1d8a 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -15,6 +15,7 @@ #include #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index 40482cb73d79..784da367665c 100644 --- a/drivers/dma/sh/rcar-dmac.c +++ b/drivers/dma/sh/rcar-dmac.c @@ -12,6 +12,7 @@ #include #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/firmware/qcom/qcom_scm-legacy.c b/drivers/firmware/qcom/qcom_scm-legacy.c index 029e6d117cb8..01e082c7163c 100644 --- a/drivers/firmware/qcom/qcom_scm-legacy.c +++ b/drivers/firmware/qcom/qcom_scm-legacy.c @@ -5,6 +5,7 @@ #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/firmware/qcom/qcom_scm-smc.c b/drivers/firmware/qcom/qcom_scm-smc.c index 16cf88acfa8e..a5c74d8996fe 100644 --- a/drivers/firmware/qcom/qcom_scm-smc.c +++ b/drivers/firmware/qcom/qcom_scm-smc.c @@ -5,6 +5,7 @@ #include #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c index ac34876a97f8..b7858014a59c 100644 --- a/drivers/firmware/raspberrypi.c +++ b/drivers/firmware/raspberrypi.c @@ -10,6 +10,7 @@ #include #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/iio/buffer/industrialio-buffer-dma.c b/drivers/iio/buffer/industrialio-buffer-dma.c index 13b1a858969e..d3e82d25df70 100644 --- a/drivers/iio/buffer/industrialio-buffer-dma.c +++ b/drivers/iio/buffer/industrialio-buffer-dma.c @@ -6,6 +6,7 @@ #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/iommu/iommufd/ioas.c b/drivers/iommu/iommufd/ioas.c index 742248276548..40c4942406cd 100644 --- a/drivers/iommu/iommufd/ioas.c +++ b/drivers/iommu/iommufd/ioas.c @@ -5,6 +5,8 @@ #include #include #include +#include +#include #include #include "io_pagetable.h" diff --git a/drivers/iommu/iommufd/selftest.c b/drivers/iommu/iommufd/selftest.c index 7a2199470f31..bcecf44681fe 100644 --- a/drivers/iommu/iommufd/selftest.c +++ b/drivers/iommu/iommufd/selftest.c @@ -5,6 +5,7 @@ */ #include #include +#include // for GUP_PIN_COUNTING_BIAS #include #include #include diff --git a/drivers/media/platform/mediatek/vpu/mtk_vpu.c b/drivers/media/platform/mediatek/vpu/mtk_vpu.c index 724ae7c2ab3b..f248e4194b49 100644 --- a/drivers/media/platform/mediatek/vpu/mtk_vpu.c +++ b/drivers/media/platform/mediatek/vpu/mtk_vpu.c @@ -8,6 +8,7 @@ #include #include #include +#include // for totalram_pages() #include #include #include diff --git a/drivers/media/platform/ti/omap/omap_voutlib.c b/drivers/media/platform/ti/omap/omap_voutlib.c index 0ac46458e41c..3b653b49cc48 100644 --- a/drivers/media/platform/ti/omap/omap_voutlib.c +++ b/drivers/media/platform/ti/omap/omap_voutlib.c @@ -18,6 +18,7 @@ * */ +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/misc/bcm-vk/bcm_vk_dev.c b/drivers/misc/bcm-vk/bcm_vk_dev.c index d4a96137728d..c5a39a8189bf 100644 --- a/drivers/misc/bcm-vk/bcm_vk_dev.c +++ b/drivers/misc/bcm-vk/bcm_vk_dev.c @@ -11,6 +11,7 @@ #include #include #include +#include // for io_remap_pfn_range() #include #include #include diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 694fc083b1bd..1e7421995f6b 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -10,6 +10,7 @@ #include #include #include +#include // for find_vma() #include #include #include diff --git a/drivers/misc/genwqe/card_dev.c b/drivers/misc/genwqe/card_dev.c index 4441aca2280a..ce3acb938ca6 100644 --- a/drivers/misc/genwqe/card_dev.c +++ b/drivers/misc/genwqe/card_dev.c @@ -17,6 +17,7 @@ #include #include +#include // for struct vm_operations_struct #include #include #include diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c index bdc2e6fda782..af815b8a718e 100644 --- a/drivers/misc/uacce/uacce.c +++ b/drivers/misc/uacce/uacce.c @@ -2,6 +2,7 @@ #include #include #include +#include // for struct vm_operations_struct #include #include #include diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 1516b6d0dc37..6b48bb57b638 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -9,6 +9,8 @@ #include "sfdp.h" +#include // for SZ_* + #define SPI_NOR_MAX_ID_LEN 6 /* * 256 bytes is a sane default for most older flashes. Newer flashes will diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 4f47a13cb500..ef37ea6c09fc 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -16,6 +16,7 @@ #include #include #include +#include // for VM_MAYSHARE #include #include #include diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index aac5daad3188..780d6b4f923b 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -25,6 +25,7 @@ #include #include #include +#include // for pgprot_device() #include #include #include diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index b885a9a041e4..4f4f1e51d160 100644 --- a/drivers/remoteproc/mtk_scp.c +++ b/drivers/remoteproc/mtk_scp.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "mtk_common.h" #include "remoteproc_internal.h" diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index f276956f2c5c..938220fe29f5 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -18,6 +18,7 @@ #include #include +#include // for PAGE_ALIGN() #include #include #include diff --git a/drivers/soc/qcom/rmtfs_mem.c b/drivers/soc/qcom/rmtfs_mem.c index df850d073102..15c2f6e5eaff 100644 --- a/drivers/soc/qcom/rmtfs_mem.c +++ b/drivers/soc/qcom/rmtfs_mem.c @@ -6,6 +6,7 @@ #include #include #include +#include // for remap_pfn_range() #include #include #include diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c index bbd417c55e7f..e45f64761e5e 100644 --- a/drivers/spi/spi-aspeed-smc.c +++ b/drivers/spi/spi-aspeed-smc.c @@ -11,6 +11,7 @@ #include #include #include +#include // for SZ_* #include #include diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index e1b9b1235787..d8ed5575a9c6 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c @@ -33,6 +33,8 @@ #include #include +#include // for ZERO_PAGE() + /* SPI register offsets */ #define BCM2835_SPI_CS 0x00 #define BCM2835_SPI_FIFO 0x04 diff --git a/drivers/spi/spi-intel.c b/drivers/spi/spi-intel.c index 3e5dcf2b3c8a..cf8e4f1c4d93 100644 --- a/drivers/spi/spi-intel.c +++ b/drivers/spi/spi-intel.c @@ -8,6 +8,7 @@ #include #include +#include // for SZ_* #include #include diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 2a972752ff1b..12ad62415312 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -12,6 +12,7 @@ #include #include #include +#include // for PAGE_ALIGN() #include #include diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index 020e2344eb86..c48fdb486bb3 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h @@ -7,6 +7,8 @@ #include /* only for vma_is_dax() */ +#include // for pmd_t + vm_fault_t do_huge_pmd_anonymous_page(struct vm_fault *vmf); int copy_huge_pmd(struct mm_struct *dst_mm, struct mm_struct *src_mm, pmd_t *dst_pmd, pmd_t *src_pmd, unsigned long addr, diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 7bc8dff7cf6d..d56e17a0fdf6 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -14,6 +14,7 @@ #include #include #include +#include // for copy_struct_from_user() #define IOMMU_READ (1 << 0) #define IOMMU_WRITE (1 << 1) diff --git a/include/linux/nvme-keyring.h b/include/linux/nvme-keyring.h index e10333d78dbb..9e033850b967 100644 --- a/include/linux/nvme-keyring.h +++ b/include/linux/nvme-keyring.h @@ -6,6 +6,8 @@ #ifndef _NVME_KEYRING_H #define _NVME_KEYRING_H +#include + #if IS_ENABLED(CONFIG_NVME_KEYRING) key_serial_t nvme_tls_psk_default(struct key *keyring, diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index f04fea86324d..4d7265bbd93e 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -12,6 +12,9 @@ #ifndef __GENERATING_BOUNDS_H #include #include +#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP +#include // for DECLARE_STATIC_KEY_FALSE +#endif #endif /* !__GENERATING_BOUNDS_H */ /* diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index 77df3d7b18a6..0516e64dc03e 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h @@ -8,6 +8,12 @@ #include #include +#ifdef CONFIG_UML +#include // for virt_to_page(), page_to_phys() +#else +#include // for virt_to_page(), page_to_phys() +#endif + struct scatterlist { unsigned long page_link; unsigned int offset; diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 131966a4af78..67c2505d3b78 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -4,6 +4,7 @@ #include #include +#include // for folio_zone(), folio_nr_pages() #include #include #include diff --git a/include/scsi/scsicam.h b/include/scsi/scsicam.h index 08edd603e521..6eb9fb7a57d0 100644 --- a/include/scsi/scsicam.h +++ b/include/scsi/scsicam.h @@ -13,6 +13,9 @@ #ifndef SCSICAM_H #define SCSICAM_H + +#include // for sector_t + int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip); bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]); unsigned char *scsi_bios_ptable(struct block_device *bdev); diff --git a/kernel/dma/ops_helpers.c b/kernel/dma/ops_helpers.c index af4a6ef48ce0..641363b13bb9 100644 --- a/kernel/dma/ops_helpers.c +++ b/kernel/dma/ops_helpers.c @@ -4,6 +4,7 @@ * the allocated memory contains normal pages in the direct kernel mapping. */ #include +#include // for PAGE_ALIGN() static struct page *dma_common_vaddr_to_page(void *cpu_addr) { diff --git a/kernel/dma/remap.c b/kernel/dma/remap.c index 27596f3b4aef..87b3c874d370 100644 --- a/kernel/dma/remap.c +++ b/kernel/dma/remap.c @@ -3,6 +3,7 @@ * Copyright (c) 2014 The Linux Foundation */ #include +#include // for vmap(), PAGE_ALIGN() #include #include diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 08bf7c669dd3..a1527f855f2a 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -47,6 +47,7 @@ #include #include #include +#include // for mem_dump_obj() #include #include "rcu.h" diff --git a/mm/dmapool.c b/mm/dmapool.c index f0bfc6c490f4..b8e23fdc81d7 100644 --- a/mm/dmapool.c +++ b/mm/dmapool.c @@ -25,6 +25,7 @@ #include #include #include +#include // for want_init_on_alloc() #include #include #include