From patchwork Tue Mar 5 08:59:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 13581854 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 C940EC54798 for ; Tue, 5 Mar 2024 08:59:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 409F46B007D; Tue, 5 Mar 2024 03:59:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3BB666B0083; Tue, 5 Mar 2024 03:59:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1BE7D6B0088; Tue, 5 Mar 2024 03:59:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 07BAA6B007D for ; Tue, 5 Mar 2024 03:59:39 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B15A540D83 for ; Tue, 5 Mar 2024 08:59:38 +0000 (UTC) X-FDA: 81862387236.12.134D4E1 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) by imf30.hostedemail.com (Postfix) with ESMTP id A759F80019 for ; Tue, 5 Mar 2024 08:59:36 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=aJ9rRYD2; spf=pass (imf30.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.45 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=1709629176; 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=/qIFUyqNzJGU/sV3s/MTC8AnDdvnQ4WfWOVpbwwJc84=; b=8hVdBXO59IrkAzgkVHFpgH+DIx7AELJZUA8EvD1Vg1apbzle7iylZfvo7gHWqXj0mJYU6P Nu4njND4JymLPDiLS49DGbozl14Xn1kp8/gAJ9+frLDzgwSdZyl81SO8RU7UicnSYxqjMl tYvFfNWqFaAexcSxYvqJBQcOFnGZN/E= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709629176; a=rsa-sha256; cv=none; b=GhqebQurcgE26ppLrdhF8iDiFh9Z6MkMFaUNniOkTkvEwGl0nS3vzRmIxyRyf7V8q2Aykw 1kMCLXTfROER918bY29dtg1wKfa6/CRcinjvhVF39Q1xUcoqk4edpmT6PQSQfzpyy9AggB oy+pcSnnQn/L/kwBskvQlFhC1kWTmlg= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=aJ9rRYD2; spf=pass (imf30.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.45 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com; dmarc=pass (policy=quarantine) header.from=ionos.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-56698eb5e1dso7057469a12.2 for ; Tue, 05 Mar 2024 00:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1709629175; x=1710233975; 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=/qIFUyqNzJGU/sV3s/MTC8AnDdvnQ4WfWOVpbwwJc84=; b=aJ9rRYD2X2Lnk8v2Y61gAA/zhpo0rcJ+CUQvk47I6iAeyZmJCGgT9j8R7APRufrUMR bXAxV5rFjmEwqWjdkObOclZcR3F6IwT97NPDRPKmn4xaaMHbx6yLN3DlP3hC3oR9/zul SFqfqQ43Y1k14Al0UxxirTCi4o3o9tUxxBscNHVoKPErpcuitTmwdVXoZW44sHBZsm2H i+fQD5URkIqGucLhrrLyijpdj5f5YIBkTUW+KhVX7sz2z9ZhrdQ20HvQXV+dr1ft/VgX 6Zpjh4Ep9N/eKWovEK/XCvKDxsC1r0M57XV8EALP7VHBWcZlSixFMPZt/KyEcR1nT+AI rDOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709629175; x=1710233975; 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=/qIFUyqNzJGU/sV3s/MTC8AnDdvnQ4WfWOVpbwwJc84=; b=AdrmT/biebvBoRsAgKxnFbU82UNu9XUa0KGSWbOKn8QA7GJ+nWUkdtb7AtszkOCkH1 4FfdQx0atqP/L3K7ZcIInqM+SOQq0kFJ4vXgq8qjviLx1hcp68WfmAGAodaVURHILzkA HpsyNwAftOkFH9hqzvpPRJTd6s1YSmLGHC/2k2dUA8LY9Q5ycAzKJ6eLJ0u87RQVF/P3 nfud11UBnqLckUvun6VTKHCW65qoL1/6YL4yvnF5sBWGlLbTZEllQuuCax+bswY2SOuW adVc/AKDFWVc0tOhDe+xKnnkDrKOE4RQEaUhm6kI/a6U4lRCYuJfsBcIzwFPKH+Bjxet WWXg== X-Forwarded-Encrypted: i=1; AJvYcCW2lkPxwoyiaRmWTgdlFCry4kNhO7EoWKyuDnL4j2gyMprwq4P+/Eli0kAP9gfcYKmg+Pl1mOUBcUfggnhV0jLC8HM= X-Gm-Message-State: AOJu0Yzi1a92eHW2I0xj5AVLLr2tQjrH0SBIGwCJay4ZZe+RGPhhTnUa nc7sl5w3JjMxjfv/FGYKQFmVV90vdIK7QqUHOIK6Li2zViNzMWP3cAtBNyQdFnx8choEp0wXzT+ x X-Google-Smtp-Source: AGHT+IEPQyBh8s6BMZHnBwuNzm4qtytqWKQC66qXTpgFJkJLHir+hbbuiT2exhYdVnu0LiN9RvteGQ== X-Received: by 2002:a17:906:fc01:b0:a43:f267:789f with SMTP id ov1-20020a170906fc0100b00a43f267789fmr7581742ejb.41.1709629175181; Tue, 05 Mar 2024 00:59:35 -0800 (PST) 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 gs4-20020a170906f18400b00a449d12cdc5sm4453005ejb.119.2024.03.05.00.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:59:34 -0800 (PST) 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 v3 01/14] drivers: add missing includes on linux/mm.h (and others) Date: Tue, 5 Mar 2024 09:59:06 +0100 Message-Id: <20240305085919.1601395-2-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240305085919.1601395-1-max.kellermann@ionos.com> References: <20240305085919.1601395-1-max.kellermann@ionos.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: A759F80019 X-Rspam-User: X-Stat-Signature: 47t767gmdajoe16pydpsj7m3kuzzcqoz X-Rspamd-Server: rspam03 X-HE-Tag: 1709629176-477219 X-HE-Meta: U2FsdGVkX1+bGPZRO4YJkV6MQ3M6Uc6zA/yRpJoXH5OSVJX+GtZN6G3jt4bZI9l6+bEz0NIz0GEEmH0mmsdO+uVazu97F7oyMwEZcBb658k4p3dJnp4Jhh5kMNVSqZ7y4I03zFvLjuZmvBD0gTFnYdOKQF831CiJ0aYyRZsxbd7sbNeeJIN0+PxOlfDRBYU+BWGUM62bcfIVLIvqMlGSZ5p8gEj7JO/DAb6Ex3NAggiSNSaUHOZuwvqvH559WXzLvyib4wU6XY5A8TtXS1GaYe3Dhs1qM8eJlH61XsGMb1mCGdZnUyWdZi28SJnrusNmXRStHK5iqXTITPs/GXg/EfQ2ZMRL/krhfwRk4UJzFmT3tTIQdiLmFYNQcQrMYiZt21jhrYgLEZBA8w7AdiG6Abm80QC+3mLnxRrDDqTyySiHz97M8Wjvj3M7eZ1o/yXdKoag/pjur0pRxC/b7zvU0q4tVKSrdm05ouNf0JNDVg+WVSnpgvYbhroD8NxC5khFno7yBGDuxViYlYYUNdNgNFk0K+gYbp2oeRh8VpmAH0LF3tCTXD9MJJQ46FncFFTNRRVWmomxhY4KQKBjGNOXq/pkykffGiNDpoJJ4E46LWoH8H6NEGt07GeLXEoxSfVCEp8dq49bu7tL9XI6XMEA9AdqQenUgBL2LAE4+WwCm3BVds06vACD/km+uXwmhk0qSiEIWiHq9eNj4gxEm/fU/KGzHDJiMAewGGiURYNXp/CKobrHtPa+8N0ZhkBZyBjybvK6A608S6peEGQ0tWtp9U12XrJ0BSf1HdeYaAwzx2nmbspEeMr4OpzAW9FzeWT7ocTDPEiAp0K8NTK9/r1rhFwovMB8nkG035UAUD18SQmT4Ga2dkFgRs/h+zwQ1dg3dVpkeFhdQt2CpuwCTzU8i4WeQ8jKod3ylCqGSSFbdrbp4dXWa6LfOlSURR5hcMxj6CgYYBplVT7V5jPTdS2 pyLSs1v1 t4UgkAeOUIJPGgjx7i9SKlIZhAek5+4qTOWPVJVlbJioFDjGctBtnk/5VO+CM32yuqbyAgbZiHYV8oZpEPI//CO/dtELfRGhB05r2H6Ga3PLxPg+AnwB8MZw1ZJnTNUB1D7dvBHFkQPn3S7otIQKt5op10DU3zfUf9GkOWsYlGniAgzMqFlh0CwSdoBckIL7fV2A0RIC8BEkU+TxlTUhQnnu4SLKFvmpDVpRrhge2HFM1CHgB+g/AKK3r3Azu9s1umz4nso1XJfBKASbFyeC6rekh4aywMJE4ZjKS6bgXHkv40wCPHBa/WFBndg1ipahPiDiWj1HhznGF/bVN7ZYBAyTYujZ10SfiT1wIlNoMRV+ZDfdh5LM0+wAIHw== 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/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/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/scatterlist.h | 6 ++++++ kernel/dma/ops_helpers.c | 1 + kernel/dma/remap.c | 1 + mm/dmapool.c | 1 + 33 files changed, 45 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/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index 4e339c04fc1e..0c98bf0e4b5d 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 322aada20f74..beef5c4afef2 100644 --- a/drivers/firmware/raspberrypi.c +++ b/drivers/firmware/raspberrypi.c @@ -9,6 +9,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 5610ba67925e..b3ce8c4b101a 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 7243604a82a5..885b873982e4 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 dbd26c3b245b..35701e9ec28e 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 442786685515..c113ed8e8751 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 cfc5b84dc9c9..e2afd992caa7 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/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 6f7e5010a673..48f694d1bc46 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 de0c89105076..55b94db3bd5c 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 af6c367ed673..030820a5639e 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/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/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/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