From patchwork Wed Jan 31 14:49:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 194810 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1959765dyb; Wed, 31 Jan 2024 07:19:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXBhf1zfepPtQLkjya7wZY5hEPaBrkF9IxLmXoOe79ZfdFdE2bB59bTBmt9w73hTNiFloy X-Received: by 2002:a05:6871:28f:b0:210:c32b:c59a with SMTP id i15-20020a056871028f00b00210c32bc59amr1927747oae.24.1706714363600; Wed, 31 Jan 2024 07:19:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706714363; cv=pass; d=google.com; s=arc-20160816; b=jAKqPqTgAYL+Hn7vTebfEkimnbn5nlN7LpGsAeUbl8TJ6fnnaR6o8QE97MQPYDpkFA KJ0Zs+hVW01LRyUNSrXsinuiyk32G3I5vDXMzgdYevBQ6qolUst0WksiZBgmH6J8gdnw HHzVII6lHgUOi3h2QVWH64X1ql7TTbRihkf1PGU4KBNajWJJfEjtwjrB5vvZr/hcUQTs 0/I8k7VvyKy1hXJ2d1y+EDqb5OKDr+CCaVBK9JJSdJQ7VvOEUQvffYPzvgDhc95uH0n0 Hn7ltNVa+uhah7o+LaUvZDhfugEAH0ugMErnC30TSUfub7z91TZThObs6OdlsNTfpxud 1kCw== 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=unbojhj1zDYGwzMqxWkFj6fjv9KPGUWtjAjRtjwvXnI=; fh=QsNTw5qtyNx9xI/ZhRokr4mTpf+Qhv+2TseK5fMGRMs=; b=wl+FuoR86lSW+vVLa6MW1OEm3iD7TaxRy1tdv8nxil5w4HyxAyibscqDc5ZXjYhuVs a2ypFq3uFGgg1BFpiYSEHMpvW2D8Pqpqb8NNhYIzYHbNuF66HrrJVpCmRbcQlG70KrAi 8M0t7vbq+ZwwNw6UTVlxIySNu2SGrXKekgD4k///b+hfHr6rCcD2zABckZqAuAF5ZtTP IFJswtlzGSzxNIzwyUmFTCjOgTmjlvFstnEMfU4Z6nN+trfhyizqaTG2q0YULq30aLJN 2a4t0CoKG/yiiJ6ta81glmx7ck+sEYFjszQXXtatu24UWnf64rrtdX7KaUEDi7G+mZvn c41Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=gsGANMFo; 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-46634-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46634-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=1; AJvYcCX1SV3qNwvR+xhGFe4YTRky4EU6zLzUPQESgSQMltGFgWvOoAAj7xz2MfPwjf4leL5qzDtZGluE++RUb5C2oUG84uOpow== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t5-20020a632d05000000b005d8d34e196csi5161343pgt.203.2024.01.31.07.19.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46634-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=gsGANMFo; 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-46634-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46634-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0ACFF294511 for ; Wed, 31 Jan 2024 14:56:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BCC313A253; Wed, 31 Jan 2024 14:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="gsGANMFo" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 2DB4E1272B2 for ; Wed, 31 Jan 2024 14:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706712621; cv=none; b=OxyxEPvnJ2TrjyHCuvy3XQDwrO9aLlsIi/7Px2CdDGdSkd2t+7UYYTBVcAQ1po8KDiuhxY0x7j9U14IbaD9hmcpwPrbRQVxMt+u3aUVVmmVKifYcnQExwO1FME1+CNHifPgd6vCaQvGWUBcoz4f6bdO8bn/g3LiosegTZ8SzuV4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706712621; c=relaxed/simple; bh=4Q2ZbNPk+YX9LfAs7nGPjRHLt4jNQPI22t4OvdtiOAM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ake4u8du8Kg5A9QRWGA1pbuB5gHODuA+0qsY7TlNRvIzdWxqRrWk+yU3Y9mbLskdAJQhQGmb8iBWbcH8hZurES6AyAgUzT5/uw0/g2SK9b4N/DoX8Y6GWHF8hhLsiAw8wYKXODP/yNwxzwZfCPMlf7yKxfheewfFH3rFuZOwn7c= 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=gsGANMFo; arc=none smtp.client-ip=209.85.221.48 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-wr1-f48.google.com with SMTP id ffacd0b85a97d-33af6129f3cso1438393f8f.2 for ; Wed, 31 Jan 2024 06:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1706712613; x=1707317413; 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=unbojhj1zDYGwzMqxWkFj6fjv9KPGUWtjAjRtjwvXnI=; b=gsGANMFo+Bs2JxHA+/e1xOzTSxhwdSnBPfSJv+cKEGZpWT+dEZjltnpIHOfSyWMi4E ZjQy3cDR+UmfNskokQCGG8ny8RfOu+7RRuxxrBKyMbiVQbn173A9DvX8HGuhR8YwvEfE 8PgorayBvjnPWbGbmRxI4WgEXyG04aOm9dqkDRsELxtCVamZdbTInmsBB9TsvHlhI/XT bYsfBRV+2lRztATAgGnCYqcbRrC+LIl0gWKuZR6zgfF2J99iXSPvtrn5h/B3KY8kVq+l /zb232sq1AAvrbeBDPmnRKj37kzS1cqQBx9DWX51K/Iei8NFexaPE5+TSBdFCoyNmJj8 uRNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706712613; x=1707317413; 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=unbojhj1zDYGwzMqxWkFj6fjv9KPGUWtjAjRtjwvXnI=; b=ul619NuYAXhXpI9FWyn44vHfvLTaw5DQB5E9RmzLWughJkEYiTsIDlnb4E0AFIr7Rj HCVNd8ITPcc+HIZkAvG7c1KQpogHEireaQvM8B1vohukTX+ChFcB1TjMGUqvZJG+DLNU Kyos4Tc5MFKHqaL616fKmeI3RIKvIZQ69FIhR4ZPysKDDiUn9S/07qDSri1XLbrXeBvG uS6WuKF1zgWmWrmrRsmO6ojYyTiAVkMp4mMXuscLbCyQmcnY8kVGkQGowVksFKi+qyhL IhJ3vpn86Woaxyudiv8iMb0PPEF1b1fZa5gdHF2nP5wtcCoCwuD4NhbRgt8t9LoSRswe SUKg== X-Gm-Message-State: AOJu0YxO9haZffMNrgRvO9eczyrVOmGtv4SY/Dm8oHD3W3tWqzFyjvX8 my2oYqqMlVJd5jhS03F1e0W3bbptTYX65ohrgfWbOEzAlGd8qDpCmbI+3RWYzpZUGL3nWhnQDx5 S X-Received: by 2002:a05:6000:14c:b0:33a:f034:bfe5 with SMTP id r12-20020a056000014c00b0033af034bfe5mr1330599wrx.66.1706712612629; Wed, 31 Jan 2024 06:50:12 -0800 (PST) Received: from raven.blarg.de (p200300dc6f2f5c00023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f2f:5c00:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id ch15-20020a5d5d0f000000b0033905a60689sm13850173wrb.45.2024.01.31.06.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:50:12 -0800 (PST) From: Max Kellermann To: linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH 02/28] include: remove unnecessary #include directives Date: Wed, 31 Jan 2024 15:49:42 +0100 Message-Id: <20240131145008.1345531-3-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131145008.1345531-1-max.kellermann@ionos.com> References: <20240131145008.1345531-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: 1789619720369594447 X-GMAIL-MSGID: 1789619720369594447 Reduce header dependencies by removing `#include` directives that are completely unnecessary (or obsolete) or eliminate them by using forward declarations. Signed-off-by: Max Kellermann --- include/crypto/drbg.h | 1 - include/crypto/if_alg.h | 1 - include/drm/drm_auth.h | 1 - include/drm/drm_debugfs.h | 2 ++ include/drm/drm_file.h | 2 +- include/drm/drm_gem_shmem_helper.h | 1 - include/drm/drm_mm.h | 1 - include/drm/drm_print.h | 2 ++ include/drm/drm_util.h | 1 - include/drm/drm_vma_manager.h | 1 - include/drm/ttm/ttm_device.h | 1 - include/drm/ttm/ttm_resource.h | 1 - include/keys/asymmetric-subtype.h | 1 + include/kunit/test.h | 1 - include/linux/acpi_amd_wbrf.h | 7 +++++-- include/linux/acpi_dma.h | 3 ++- include/linux/async_tx.h | 1 - include/linux/atmdev.h | 2 -- include/linux/backing-dev-defs.h | 1 - include/linux/blkdev.h | 2 -- include/linux/blktrace_api.h | 2 -- include/linux/bpf-netns.h | 1 - include/linux/bpf.h | 1 - include/linux/cacheinfo.h | 1 - include/linux/cdev.h | 2 +- include/linux/ceph/libceph.h | 1 - include/linux/ceph/messenger.h | 1 - include/linux/cgroup.h | 1 - include/linux/clocksource.h | 1 - include/linux/connector.h | 1 - include/linux/cpuidle.h | 1 - include/linux/dax.h | 1 - include/linux/dccp.h | 1 - include/linux/debugfs.h | 1 + include/linux/debugobjects.h | 1 - include/linux/device.h | 2 -- include/linux/device/bus.h | 3 ++- include/linux/device/class.h | 3 +-- include/linux/device/driver.h | 2 -- include/linux/dma-fence.h | 1 - include/linux/dma-resv.h | 1 - include/linux/dmi.h | 1 - include/linux/dpll.h | 1 - include/linux/energy_model.h | 4 ++-- include/linux/extcon.h | 5 ++++- include/linux/fb.h | 2 +- include/linux/filter.h | 1 - include/linux/firewire.h | 1 - include/linux/freezer.h | 1 - include/linux/fs.h | 1 - include/linux/greybus/connection.h | 1 - include/linux/hrtimer.h | 1 - include/linux/hyperv.h | 1 - include/linux/i2c-smbus.h | 2 -- include/linux/i3c/master.h | 1 - include/linux/iio/buffer.h | 2 +- include/linux/init_task.h | 2 -- include/linux/interconnect.h | 1 - include/linux/interrupt.h | 1 - include/linux/io_uring.h | 1 - include/linux/ism.h | 2 -- include/linux/kernel_stat.h | 1 - include/linux/kernfs.h | 5 ----- include/linux/kobj_map.h | 4 +++- include/linux/kobject.h | 2 -- include/linux/kprobes.h | 2 -- include/linux/kvm_host.h | 1 - include/linux/lapb.h | 1 - include/linux/libnvdimm.h | 3 ++- include/linux/lru_cache.h | 1 - include/linux/lsm_audit.h | 1 - include/linux/mISDNif.h | 3 ++- include/linux/mailbox_client.h | 2 +- include/linux/mailbox_controller.h | 2 +- include/linux/mdio-mux.h | 6 ++++-- include/linux/mdio/mdio-mscc-miim.h | 8 +++++--- include/linux/mempolicy.h | 1 - include/linux/mfd/altera-a10sr.h | 1 - include/linux/mfd/max8907.h | 1 - include/linux/mfd/wm831x/core.h | 1 - include/linux/mfd/wm8350/supply.h | 1 - include/linux/mfd/wm8400-private.h | 1 - include/linux/mfd/wm8994/core.h | 1 - include/linux/mm.h | 1 - include/linux/mm_types.h | 1 - include/linux/mmu_notifier.h | 1 - include/linux/mtd/blktrans.h | 1 - include/linux/mtd/qinfo.h | 2 -- include/linux/netdevice.h | 1 - include/linux/netfilter.h | 1 - include/linux/nfs_fs.h | 1 - include/linux/nfs_page.h | 1 - include/linux/nodemask.h | 3 +++ include/linux/nsproxy.h | 1 - include/linux/percpu_counter.h | 1 - include/linux/perf/arm_pmu.h | 1 - include/linux/phy.h | 2 -- include/linux/phylink.h | 2 -- include/linux/pid_namespace.h | 1 - include/linux/pktcdvd.h | 3 --- include/linux/platform_data/asoc-ti-mcbsp.h | 1 - include/linux/pm.h | 1 - include/linux/posix-timers.h | 1 - include/linux/pps_kernel.h | 3 ++- include/linux/psi_types.h | 1 - include/linux/pwm.h | 1 - include/linux/quota.h | 1 - include/linux/random.h | 1 - include/linux/regmap.h | 1 - include/linux/relay.h | 1 - include/linux/remoteproc.h | 1 - include/linux/rfkill.h | 2 -- include/linux/ring_buffer.h | 1 - include/linux/rtc/ds1685.h | 1 - include/linux/rtnetlink.h | 2 -- include/linux/sbitmap.h | 1 - include/linux/sched/clock.h | 2 +- include/linux/sched/signal.h | 1 + include/linux/seq_file.h | 1 - include/linux/sh_clk.h | 1 - include/linux/slab.h | 1 - include/linux/slimbus.h | 3 ++- include/linux/soc/apple/rtkit.h | 3 ++- include/linux/soc/apple/sart.h | 2 +- include/linux/soc/mediatek/mtk-cmdq.h | 1 - include/linux/soc/qcom/qcom_aoss.h | 2 +- include/linux/spi/spi_bitbang.h | 1 - include/linux/srcu.h | 2 -- include/linux/stm.h | 4 +++- include/linux/sunrpc/auth.h | 1 - include/linux/sunrpc/metrics.h | 3 ++- include/linux/sunrpc/rpc_pipe_fs.h | 1 - include/linux/sunrpc/sched.h | 1 - include/linux/sunrpc/svc.h | 1 - include/linux/sunrpc/svc_rdma.h | 1 - include/linux/swait.h | 1 - include/linux/swapops.h | 1 - include/linux/sync_file.h | 1 - include/linux/sys_soc.h | 3 ++- include/linux/syscalls.h | 1 - include/linux/sysfs.h | 5 ----- include/linux/torture.h | 4 ---- include/linux/tracefs.h | 1 - include/linux/transport_class.h | 3 ++- include/linux/tty_driver.h | 1 + include/linux/tty_ldisc.h | 2 -- include/linux/tty_port.h | 2 +- include/linux/u64_stats_sync.h | 3 +++ include/linux/uprobes.h | 2 -- include/linux/usb/hcd.h | 1 - include/linux/usb/role.h | 5 ++++- include/linux/user_namespace.h | 1 - include/linux/vfio_pci_core.h | 1 - include/linux/vmalloc.h | 1 - include/linux/vt_kern.h | 1 - include/linux/writeback.h | 1 - include/media/cec.h | 1 - include/media/dmxdev.h | 1 - include/media/dvb_demux.h | 1 - include/media/rc-core.h | 1 - include/media/v4l2-async.h | 1 - include/media/v4l2-event.h | 1 - include/media/v4l2-ioctl.h | 1 - include/net/ax25.h | 1 - include/net/bluetooth/bluetooth.h | 3 ++- include/net/bonding.h | 1 - include/net/bpf_sk_storage.h | 4 ---- include/net/caif/cfcnfg.h | 1 - include/net/caif/cfsrvl.h | 1 - include/net/devlink.h | 3 +-- include/net/dsa.h | 2 -- include/net/dsa_stubs.h | 1 - include/net/inet_hashtables.h | 1 - include/net/inet_timewait_sock.h | 1 - include/net/inetpeer.h | 1 - include/net/ip_fib.h | 1 - include/net/lib80211.h | 3 ++- include/net/neighbour.h | 3 ++- include/net/net_namespace.h | 1 - include/net/net_ratelimit.h | 2 -- include/net/netns/conntrack.h | 1 - include/net/netns/xfrm.h | 1 - include/net/netrom.h | 1 - include/net/pkt_cls.h | 3 ++- include/net/sch_generic.h | 1 - include/net/smc.h | 2 +- include/net/snmp.h | 1 - include/net/tcp.h | 4 ++-- include/net/udp.h | 3 ++- include/net/xfrm.h | 1 - include/rdma/ib_umem.h | 1 - include/rdma/restrack.h | 1 - include/scsi/scsi_cmnd.h | 1 - include/scsi/scsi_host.h | 1 + include/sound/core.h | 1 - include/video/atmel_lcdc.h | 2 -- include/xen/interface/memory.h | 2 -- include/xen/xenbus.h | 1 - 198 files changed, 90 insertions(+), 235 deletions(-) diff --git a/include/crypto/drbg.h b/include/crypto/drbg.h index af5ad51d3eef..e78a671a9e76 100644 --- a/include/crypto/drbg.h +++ b/include/crypto/drbg.h @@ -52,7 +52,6 @@ #include #include #include -#include /* * Concatenation Helper and string operation helper diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h index 78ecaf5db04c..6e532e2a6e6b 100644 --- a/include/crypto/if_alg.h +++ b/include/crypto/if_alg.h @@ -9,7 +9,6 @@ #define _CRYPTO_IF_ALG_H #include -#include #include #include #include diff --git a/include/drm/drm_auth.h b/include/drm/drm_auth.h index 50131383ed81..cb7377d5f5c3 100644 --- a/include/drm/drm_auth.h +++ b/include/drm/drm_auth.h @@ -30,7 +30,6 @@ #include #include -#include struct drm_file; diff --git a/include/drm/drm_debugfs.h b/include/drm/drm_debugfs.h index cf06cee4343f..ebf0973aaa8a 100644 --- a/include/drm/drm_debugfs.h +++ b/include/drm/drm_debugfs.h @@ -37,6 +37,8 @@ #include +struct seq_file; + /** * DRM_DEBUGFS_GPUVA_INFO - &drm_info_list entry to dump a GPU VA space * @show: the &drm_info_list's show callback diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h index ab230d3af138..5d97a20cf80f 100644 --- a/include/drm/drm_file.h +++ b/include/drm/drm_file.h @@ -31,13 +31,13 @@ #define _DRM_FILE_H_ #include -#include #include #include #include +struct completion; struct dma_fence; struct drm_file; struct drm_device; diff --git a/include/drm/drm_gem_shmem_helper.h b/include/drm/drm_gem_shmem_helper.h index bf0c31aa8fbe..dd74ffd10252 100644 --- a/include/drm/drm_gem_shmem_helper.h +++ b/include/drm/drm_gem_shmem_helper.h @@ -5,7 +5,6 @@ #include #include -#include #include #include diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index ac33ba1b18bc..abc1d1d48142 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h @@ -42,7 +42,6 @@ #include #include #include -#include #ifdef CONFIG_DRM_DEBUG_MM #include #endif diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index 5ed26a702e3e..36b0d14be87e 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -35,6 +35,8 @@ #include +struct seq_file; + /* Do *not* use outside of drm_print.[ch]! */ extern unsigned long __drm_debug; diff --git a/include/drm/drm_util.h b/include/drm/drm_util.h index 79952d8c4bba..15fd591f3e1d 100644 --- a/include/drm/drm_util.h +++ b/include/drm/drm_util.h @@ -35,7 +35,6 @@ #include #include #include -#include /* * Use EXPORT_SYMBOL_FOR_TESTS_ONLY() for functions that shall diff --git a/include/drm/drm_vma_manager.h b/include/drm/drm_vma_manager.h index 6c2a2f21dbf0..b0efaeeb4cf0 100644 --- a/include/drm/drm_vma_manager.h +++ b/include/drm/drm_vma_manager.h @@ -26,7 +26,6 @@ #include #include #include -#include #include /* We make up offsets for buffer objects so we can recognize them at diff --git a/include/drm/ttm/ttm_device.h b/include/drm/ttm/ttm_device.h index c22f30535c84..122f1455a2df 100644 --- a/include/drm/ttm/ttm_device.h +++ b/include/drm/ttm/ttm_device.h @@ -26,7 +26,6 @@ #define _TTM_DEVICE_H_ #include -#include #include #include diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h index 78a226eba953..043aeff83913 100644 --- a/include/drm/ttm/ttm_resource.h +++ b/include/drm/ttm/ttm_resource.h @@ -27,7 +27,6 @@ #include #include -#include #include #include diff --git a/include/keys/asymmetric-subtype.h b/include/keys/asymmetric-subtype.h index d55171f640a0..ea7d4ca9e315 100644 --- a/include/keys/asymmetric-subtype.h +++ b/include/keys/asymmetric-subtype.h @@ -13,6 +13,7 @@ #include #include +struct seq_file; struct kernel_pkey_query; struct kernel_pkey_params; struct public_key_signature; diff --git a/include/kunit/test.h b/include/kunit/test.h index fcb4a4940ace..febd48635ab1 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/acpi_amd_wbrf.h b/include/linux/acpi_amd_wbrf.h index 898f31d536d4..8b83cc9f6f7b 100644 --- a/include/linux/acpi_amd_wbrf.h +++ b/include/linux/acpi_amd_wbrf.h @@ -7,8 +7,11 @@ #ifndef _ACPI_AMD_WBRF_H #define _ACPI_AMD_WBRF_H -#include -#include +#include +#include + +struct device; +struct notifier_block; /* The maximum number of frequency band ranges */ #define MAX_NUM_OF_WBRF_RANGES 11 diff --git a/include/linux/acpi_dma.h b/include/linux/acpi_dma.h index 72cedb916a9c..40d99e88ddd2 100644 --- a/include/linux/acpi_dma.h +++ b/include/linux/acpi_dma.h @@ -12,10 +12,11 @@ #define __LINUX_ACPI_DMA_H #include -#include #include #include +struct device; + /** * struct acpi_dma_spec - slave device DMA resources * @chan_id: channel unique id diff --git a/include/linux/async_tx.h b/include/linux/async_tx.h index 5cc73d7e5b52..9ba1dd21e4de 100644 --- a/include/linux/async_tx.h +++ b/include/linux/async_tx.h @@ -5,7 +5,6 @@ #ifndef _ASYNC_TX_H_ #define _ASYNC_TX_H_ #include -#include #include /* on architectures without dma-mapping capabilities we need to ensure diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index 9b02961d65ee..4f9117f83d39 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h @@ -3,8 +3,6 @@ #ifndef LINUX_ATMDEV_H #define LINUX_ATMDEV_H - -#include /* wait_queue_head_t */ #include /* struct timeval */ #include #include diff --git a/include/linux/backing-dev-defs.h b/include/linux/backing-dev-defs.h index 721659b4edd7..7bf50450cd69 100644 --- a/include/linux/backing-dev-defs.h +++ b/include/linux/backing-dev-defs.h @@ -13,7 +13,6 @@ #include #include #include -#include #ifdef CONFIG_CGROUP_WRITEBACK #include diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 09e7268bc590..a98a9f1d21a0 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -22,7 +21,6 @@ #include #include #include -#include #include // for iov_iter_is_aligned() #include #include diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h index 122c62e561fc..c9e0ecae5fa0 100644 --- a/include/linux/blktrace_api.h +++ b/include/linux/blktrace_api.h @@ -11,8 +11,6 @@ #if defined(CONFIG_BLK_DEV_IO_TRACE) -#include - struct blk_trace { int trace_state; struct rchan *rchan; diff --git a/include/linux/bpf-netns.h b/include/linux/bpf-netns.h index 413cfa5e4b07..c5bcf01d712e 100644 --- a/include/linux/bpf-netns.h +++ b/include/linux/bpf-netns.h @@ -2,7 +2,6 @@ #ifndef _BPF_NETNS_H #define _BPF_NETNS_H -#include #include #include diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 1ebbee1d648e..5f2ee4e017db 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/cacheinfo.h b/include/linux/cacheinfo.h index d504eb4b49ab..9e422f4fdc38 100644 --- a/include/linux/cacheinfo.h +++ b/include/linux/cacheinfo.h @@ -4,7 +4,6 @@ #include #include -#include struct device_node; struct attribute; diff --git a/include/linux/cdev.h b/include/linux/cdev.h index 0e8cd6293deb..6f4892ff3a40 100644 --- a/include/linux/cdev.h +++ b/include/linux/cdev.h @@ -5,8 +5,8 @@ #include #include #include -#include +struct device; struct file_operations; struct inode; struct module; diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 4497d0a6772c..b86a567e9493 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 2eaaabbe98cb..e1a440f6c353 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 34aaf0e87def..24dcff53bd05 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -11,7 +11,6 @@ #include #include -#include #include #include #include diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 1d42d4b17327..4cfdc7068baa 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/connector.h b/include/linux/connector.h index 70bc1160f3d8..c85ddfc2094e 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h @@ -12,7 +12,6 @@ #include #include -#include #include #include diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 3183aeb7f5b4..188003e46c29 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -13,7 +13,6 @@ #include #include -#include #include #define CPUIDLE_STATE_MAX 10 diff --git a/include/linux/dax.h b/include/linux/dax.h index b463502b16e1..50f1e1ea2a47 100644 --- a/include/linux/dax.h +++ b/include/linux/dax.h @@ -4,7 +4,6 @@ #include #include -#include typedef unsigned long dax_entry_t; diff --git a/include/linux/dccp.h b/include/linux/dccp.h index 325af611909f..743f1abd20fb 100644 --- a/include/linux/dccp.h +++ b/include/linux/dccp.h @@ -8,7 +8,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index c9c65b132c0f..ef158781a580 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -20,6 +20,7 @@ struct device; struct file_operations; +struct seq_file; struct debugfs_blob_wrapper { void *data; diff --git a/include/linux/debugobjects.h b/include/linux/debugobjects.h index 32444686b6ff..3c689461781f 100644 --- a/include/linux/debugobjects.h +++ b/include/linux/debugobjects.h @@ -3,7 +3,6 @@ #define _LINUX_DEBUGOBJECTS_H #include -#include enum debug_obj_state { ODEBUG_STATE_NONE, diff --git a/include/linux/device.h b/include/linux/device.h index ddba2d30c541..5e47c9b5d0fa 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -22,8 +22,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h index 76826d165298..bdd8ac64f629 100644 --- a/include/linux/device/bus.h +++ b/include/linux/device/bus.h @@ -14,13 +14,14 @@ #ifndef _DEVICE_BUS_H_ #define _DEVICE_BUS_H_ -#include #include #include #include // for struct attribute struct device_driver; +struct device_node; struct fwnode_handle; +struct kobj_uevent_env; /** * struct bus_type - The bus type of the device diff --git a/include/linux/device/class.h b/include/linux/device/class.h index 6b1cebe43f8e..cf140c3e61f2 100644 --- a/include/linux/device/class.h +++ b/include/linux/device/class.h @@ -14,14 +14,13 @@ #ifndef _DEVICE_CLASS_H_ #define _DEVICE_CLASS_H_ -#include #include -#include #include #include struct device; struct fwnode_handle; +struct kobj_uevent_env; /** * struct class - device classes diff --git a/include/linux/device/driver.h b/include/linux/device/driver.h index 7738f458995f..a3b51f5bd0e9 100644 --- a/include/linux/device/driver.h +++ b/include/linux/device/driver.h @@ -14,9 +14,7 @@ #ifndef _DEVICE_DRIVER_H_ #define _DEVICE_DRIVER_H_ -#include #include -#include #include #include diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h index e06bad467f55..0b613c1b7520 100644 --- a/include/linux/dma-fence.h +++ b/include/linux/dma-fence.h @@ -14,7 +14,6 @@ #define __LINUX_DMA_FENCE_H #include -#include #include #include #include diff --git a/include/linux/dma-resv.h b/include/linux/dma-resv.h index 8d0e34dad446..4aae9e4cc592 100644 --- a/include/linux/dma-resv.h +++ b/include/linux/dma-resv.h @@ -42,7 +42,6 @@ #include #include #include -#include #include extern struct ww_class reservation_ww_class; diff --git a/include/linux/dmi.h b/include/linux/dmi.h index 927f8a8b7a1d..bb0d945e4163 100644 --- a/include/linux/dmi.h +++ b/include/linux/dmi.h @@ -3,7 +3,6 @@ #define __DMI_H__ #include -#include #include /* enum dmi_field is in mod_devicetable.h */ diff --git a/include/linux/dpll.h b/include/linux/dpll.h index 9cf896ea1d41..de21b3ba41c0 100644 --- a/include/linux/dpll.h +++ b/include/linux/dpll.h @@ -8,7 +8,6 @@ #define __DPLL_H__ #include -#include #include struct dpll_device; diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h index 88d91e087471..a1212432e447 100644 --- a/include/linux/energy_model.h +++ b/include/linux/energy_model.h @@ -2,14 +2,14 @@ #ifndef _LINUX_ENERGY_MODEL_H #define _LINUX_ENERGY_MODEL_H #include -#include #include -#include #include #include #include #include +struct device; + /** * struct em_perf_state - Performance state of a performance domain * @frequency: The frequency in KHz, for consistency with CPUFreq diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 0fd2ca917549..72a2c4028b2d 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -18,11 +18,14 @@ #ifndef __LINUX_EXTCON_H__ #define __LINUX_EXTCON_H__ -#include #include #include #include +struct device; +struct device_node; +struct notifier_block; + /* * Define the type of supported external connectors */ diff --git a/include/linux/fb.h b/include/linux/fb.h index 05dc9624897d..2bbad4a85a5d 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #include @@ -24,6 +23,7 @@ struct device; struct file; struct videomode; struct device_node; +struct backlight_device; /* Definitions below are used in the parsed monitor specs */ #define FB_DPMS_ACTIVE_OFF 1 diff --git a/include/linux/filter.h b/include/linux/filter.h index fee070b9826e..60c8371badec 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/firewire.h b/include/linux/firewire.h index dd9f2d765e68..c325e3523f93 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/freezer.h b/include/linux/freezer.h index b303472255be..5eb2a34ad7eb 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h @@ -6,7 +6,6 @@ #include #include -#include #include #include diff --git a/include/linux/fs.h b/include/linux/fs.h index 1cc1f3f08107..4048cf6ebb4f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/greybus/connection.h b/include/linux/greybus/connection.h index d59b7fc1de3e..d8926e864937 100644 --- a/include/linux/greybus/connection.h +++ b/include/linux/greybus/connection.h @@ -13,7 +13,6 @@ #include #include #include -#include #define GB_CONNECTION_FLAG_CSD BIT(0) #define GB_CONNECTION_FLAG_NO_FLOWCTRL BIT(1) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index ba795d668766..d31dd0be881b 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include /* for cpu_relax() */ diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 2b00faf98017..249c4eb67f38 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/i2c-smbus.h b/include/linux/i2c-smbus.h index ced1c6ead52a..7d6a3235ddf4 100644 --- a/include/linux/i2c-smbus.h +++ b/include/linux/i2c-smbus.h @@ -9,8 +9,6 @@ #define _LINUX_I2C_SMBUS_H #include -#include -#include /** diff --git a/include/linux/i3c/master.h b/include/linux/i3c/master.h index 0ca27dd86956..7fc1e0bb4122 100644 --- a/include/linux/i3c/master.h +++ b/include/linux/i3c/master.h @@ -15,7 +15,6 @@ #include #include #include -#include #include #define I3C_HOT_JOIN_ADDR 0x2 diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h index 418b1307d3f2..70c06c5b4e5d 100644 --- a/include/linux/iio/buffer.h +++ b/include/linux/iio/buffer.h @@ -6,7 +6,7 @@ #ifndef _IIO_BUFFER_GENERIC_H_ #define _IIO_BUFFER_GENERIC_H_ -#include + #include struct iio_buffer; diff --git a/include/linux/init_task.h b/include/linux/init_task.h index bccb3f1f6262..0f4ce5661d6d 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -11,8 +11,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h index 97ac253df62c..1763a7956b87 100644 --- a/include/linux/interconnect.h +++ b/include/linux/interconnect.h @@ -7,7 +7,6 @@ #ifndef __LINUX_INTERCONNECT_H #define __LINUX_INTERCONNECT_H -#include #include /* macros for converting to icc units */ diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 76121c2bb4f8..6322804d7534 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 68ed6697fece..d4142d3b7d10 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -3,7 +3,6 @@ #define _LINUX_IO_URING_H #include -#include #include #if defined(CONFIG_IO_URING) diff --git a/include/linux/ism.h b/include/linux/ism.h index 5428edd90982..48e4dbaae342 100644 --- a/include/linux/ism.h +++ b/include/linux/ism.h @@ -9,8 +9,6 @@ #ifndef _ISM_H #define _ISM_H -#include - struct ism_dmb { u64 dmb_tok; u64 rgid; diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 9935f7ecbfb9..b7747a80e4c7 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h @@ -2,7 +2,6 @@ #ifndef _LINUX_KERNEL_STAT_H #define _LINUX_KERNEL_STAT_H -#include #include #include #include diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index 99aaa050ccb7..5d16cb9c2d02 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -9,16 +9,11 @@ #include #include #include -#include #include #include -#include #include #include #include -#include -#include -#include struct file; struct dentry; diff --git a/include/linux/kobj_map.h b/include/linux/kobj_map.h index c9919f8b2293..5078a587b70c 100644 --- a/include/linux/kobj_map.h +++ b/include/linux/kobj_map.h @@ -6,7 +6,9 @@ #ifndef _KOBJ_MAP_H_ #define _KOBJ_MAP_H_ -#include +#include // for dev_t + +struct mutex; typedef struct kobject *kobj_probe_t(dev_t, int *, void *); struct kobj_map; diff --git a/include/linux/kobject.h b/include/linux/kobject.h index c30affcc43b4..b02c756fc4f2 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -23,8 +23,6 @@ #include #include #include -#include -#include #include #include diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 0ff44d6633e3..b0511d1090ed 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -19,10 +19,8 @@ #include #include #include -#include #include #include -#include #include #include #include diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7e7fd25b09b3..c5c00ecaf27e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/lapb.h b/include/linux/lapb.h index b5333f9413dc..7d4c5073aad4 100644 --- a/include/linux/lapb.h +++ b/include/linux/lapb.h @@ -7,7 +7,6 @@ #define LAPB_KERNEL_H #include -#include struct net_device; diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h index e772aae71843..f8ab7da9cc28 100644 --- a/include/linux/libnvdimm.h +++ b/include/linux/libnvdimm.h @@ -11,7 +11,8 @@ #include #include #include -#include + +struct bio; struct badrange_entry { u64 start; diff --git a/include/linux/lru_cache.h b/include/linux/lru_cache.h index c9afcdd9324c..03d2cda724ea 100644 --- a/include/linux/lru_cache.h +++ b/include/linux/lru_cache.h @@ -17,7 +17,6 @@ #include #include #include -#include /* for memset */ #include /* diff --git a/include/linux/lsm_audit.h b/include/linux/lsm_audit.h index 97a8b21eb033..bd1ae08af2aa 100644 --- a/include/linux/lsm_audit.h +++ b/include/linux/lsm_audit.h @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h index 7aab4a769736..25f1be21aee3 100644 --- a/include/linux/mISDNif.h +++ b/include/linux/mISDNif.h @@ -412,7 +412,8 @@ struct mISDN_ctrl_req { #include #include #include -#include + +struct completion; #define DEBUG_CORE 0x000000ff #define DEBUG_CORE_FUNC 0x00000002 diff --git a/include/linux/mailbox_client.h b/include/linux/mailbox_client.h index 734694912ef7..00abe565898a 100644 --- a/include/linux/mailbox_client.h +++ b/include/linux/mailbox_client.h @@ -8,8 +8,8 @@ #define __MAILBOX_CLIENT_H #include -#include +struct device; struct mbox_chan; /** diff --git a/include/linux/mailbox_controller.h b/include/linux/mailbox_controller.h index 6fee33cb52f5..254b329f7699 100644 --- a/include/linux/mailbox_controller.h +++ b/include/linux/mailbox_controller.h @@ -6,9 +6,9 @@ #include #include #include -#include #include +struct device; struct mbox_chan; /** diff --git a/include/linux/mdio-mux.h b/include/linux/mdio-mux.h index a5d58f221939..88d6cf303bbf 100644 --- a/include/linux/mdio-mux.h +++ b/include/linux/mdio-mux.h @@ -9,8 +9,10 @@ */ #ifndef __LINUX_MDIO_MUX_H #define __LINUX_MDIO_MUX_H -#include -#include + +struct device; +struct device_node; +struct mii_bus; /* mdio_mux_init() - Initialize a MDIO mux * @dev The device owning the MDIO mux diff --git a/include/linux/mdio/mdio-mscc-miim.h b/include/linux/mdio/mdio-mscc-miim.h index 1ce699740af6..3051d4acdde5 100644 --- a/include/linux/mdio/mdio-mscc-miim.h +++ b/include/linux/mdio/mdio-mscc-miim.h @@ -8,9 +8,11 @@ #ifndef MDIO_MSCC_MIIM_H #define MDIO_MSCC_MIIM_H -#include -#include -#include +#include + +struct device; +struct mii_bus; +struct regmap; int mscc_miim_setup(struct device *device, struct mii_bus **bus, const char *name, struct regmap *mii_regmap, diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 8108fc6e96ca..8128706b9ea0 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/mfd/altera-a10sr.h b/include/linux/mfd/altera-a10sr.h index d616da4b3c4c..06a18c707d3f 100644 --- a/include/linux/mfd/altera-a10sr.h +++ b/include/linux/mfd/altera-a10sr.h @@ -10,7 +10,6 @@ #ifndef __MFD_ALTERA_A10SR_H #define __MFD_ALTERA_A10SR_H -#include #include #include #include diff --git a/include/linux/mfd/max8907.h b/include/linux/mfd/max8907.h index 4be3c2370e2a..db4de95d3b9e 100644 --- a/include/linux/mfd/max8907.h +++ b/include/linux/mfd/max8907.h @@ -10,7 +10,6 @@ #define __LINUX_MFD_MAX8907_H #include -#include #define MAX8907_GEN_I2C_ADDR (0x78 >> 1) #define MAX8907_ADC_I2C_ADDR (0x8e >> 1) diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h index 511bcad876f0..1eb4e6a56183 100644 --- a/include/linux/mfd/wm831x/core.h +++ b/include/linux/mfd/wm831x/core.h @@ -10,7 +10,6 @@ #ifndef __MFD_WM831X_CORE_H__ #define __MFD_WM831X_CORE_H__ -#include #include #include #include diff --git a/include/linux/mfd/wm8350/supply.h b/include/linux/mfd/wm8350/supply.h index d7a91e26177c..797a78c53d32 100644 --- a/include/linux/mfd/wm8350/supply.h +++ b/include/linux/mfd/wm8350/supply.h @@ -8,7 +8,6 @@ #ifndef __LINUX_MFD_WM8350_SUPPLY_H_ #define __LINUX_MFD_WM8350_SUPPLY_H_ -#include #include /* diff --git a/include/linux/mfd/wm8400-private.h b/include/linux/mfd/wm8400-private.h index bc8c2ca6dc70..ba5cf8e0c3e4 100644 --- a/include/linux/mfd/wm8400-private.h +++ b/include/linux/mfd/wm8400-private.h @@ -9,7 +9,6 @@ #define __LINUX_MFD_WM8400_PRIV_H #include -#include #include #include diff --git a/include/linux/mfd/wm8994/core.h b/include/linux/mfd/wm8994/core.h index e8b093522ffd..a4780ac19d0f 100644 --- a/include/linux/mfd/wm8994/core.h +++ b/include/linux/mfd/wm8994/core.h @@ -10,7 +10,6 @@ #ifndef __MFD_WM8994_CORE_H__ #define __MFD_WM8994_CORE_H__ -#include #include #include diff --git a/include/linux/mm.h b/include/linux/mm.h index b111daecd173..3a47847b0db4 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 8b611e13153e..05556012321f 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/mmu_notifier.h b/include/linux/mmu_notifier.h index f349e08a9dfe..6aa17677254b 100644 --- a/include/linux/mmu_notifier.h +++ b/include/linux/mmu_notifier.h @@ -3,7 +3,6 @@ #define _LINUX_MMU_NOTIFIER_H #include -#include #include #include #include diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h index 92a7c94777b7..0aa2f072d2a1 100644 --- a/include/linux/mtd/blktrans.h +++ b/include/linux/mtd/blktrans.h @@ -9,7 +9,6 @@ #include #include #include -#include struct hd_geometry; struct mtd_info; diff --git a/include/linux/mtd/qinfo.h b/include/linux/mtd/qinfo.h index 0421f12156b5..63ae23b911b1 100644 --- a/include/linux/mtd/qinfo.h +++ b/include/linux/mtd/qinfo.h @@ -3,8 +3,6 @@ #define __LINUX_MTD_QINFO_H #include -#include -#include #include #include #include diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 118c40258d07..bf5a43616e1d 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -32,7 +32,6 @@ #include #include -#include #include #include diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 80900d910992..a75bb2286eee 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index f5ce7b101146..a832e18f6347 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -25,7 +25,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index 1c315f854ea8..13411baa80c6 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -13,7 +13,6 @@ #include #include -#include #include #include diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h index b61438313a73..0fd787033bb4 100644 --- a/include/linux/nodemask.h +++ b/include/linux/nodemask.h @@ -95,7 +95,10 @@ #include #include #include + +#if defined(CONFIG_NUMA) && (MAX_NUMNODES > 1) #include +#endif extern nodemask_t _unused_nodemask_arg_; diff --git a/include/linux/nsproxy.h b/include/linux/nsproxy.h index 5601d14e2886..aaf4abab1051 100644 --- a/include/linux/nsproxy.h +++ b/include/linux/nsproxy.h @@ -3,7 +3,6 @@ #define _LINUX_NSPROXY_H #include -#include #include struct mnt_namespace; diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h index 3a44dd1e33d2..231e75ec1d83 100644 --- a/include/linux/percpu_counter.h +++ b/include/linux/percpu_counter.h @@ -8,7 +8,6 @@ */ #include -#include #include #include #include diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h index b3b34f6670cf..9cde5226e133 100644 --- a/include/linux/perf/arm_pmu.h +++ b/include/linux/perf/arm_pmu.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #ifdef CONFIG_ARM_PMU diff --git a/include/linux/phy.h b/include/linux/phy.h index c9994a59ca2e..468371b1f508 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -12,7 +12,6 @@ #define __PHY_H #include -#include #include #include #include @@ -21,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/phylink.h b/include/linux/phylink.h index d589f89c612c..f00822f4ebd3 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -2,8 +2,6 @@ #define NETDEV_PCS_H #include -#include -#include struct device_node; struct ethtool_cmd; diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index f9f9931e02d6..c6f8e2e4cd03 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/pktcdvd.h b/include/linux/pktcdvd.h index 79594aeb160d..00141d9ca4b9 100644 --- a/include/linux/pktcdvd.h +++ b/include/linux/pktcdvd.h @@ -13,10 +13,7 @@ #define __PKTCDVD_H #include -#include #include -#include -#include #include #include diff --git a/include/linux/platform_data/asoc-ti-mcbsp.h b/include/linux/platform_data/asoc-ti-mcbsp.h index cc8197760015..115796e3af5f 100644 --- a/include/linux/platform_data/asoc-ti-mcbsp.h +++ b/include/linux/platform_data/asoc-ti-mcbsp.h @@ -8,7 +8,6 @@ #ifndef __ASOC_TI_MCBSP_H #define __ASOC_TI_MCBSP_H -#include #include /* Platform specific configuration */ diff --git a/include/linux/pm.h b/include/linux/pm.h index e0014edba850..abad6899e642 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index dc7b738de299..c88ceca7cb6e 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h @@ -4,7 +4,6 @@ #include #include -#include #include #include #include diff --git a/include/linux/pps_kernel.h b/include/linux/pps_kernel.h index 78c8ac4951b5..10e210ff86d0 100644 --- a/include/linux/pps_kernel.h +++ b/include/linux/pps_kernel.h @@ -10,9 +10,10 @@ #include #include -#include #include +struct device; + /* * Global defines */ diff --git a/include/linux/psi_types.h b/include/linux/psi_types.h index f1fd3a8044e0..7b1c9167f756 100644 --- a/include/linux/psi_types.h +++ b/include/linux/psi_types.h @@ -5,7 +5,6 @@ #include #include #include -#include #include #ifdef CONFIG_PSI diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 8ffe9ae7a23a..bb98b237ef52 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -3,7 +3,6 @@ #define __LINUX_PWM_H #include -#include #include struct pwm_chip; diff --git a/include/linux/quota.h b/include/linux/quota.h index 07071e64abf3..72a2efc77fb5 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h @@ -36,7 +36,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/random.h b/include/linux/random.h index b0a940af4fff..70e5250f3bc4 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -5,7 +5,6 @@ #include #include -#include #include diff --git a/include/linux/regmap.h b/include/linux/regmap.h index c9182a47736e..f0938b59600a 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -11,7 +11,6 @@ */ #include -#include #include #include #include diff --git a/include/linux/relay.h b/include/linux/relay.h index 72b876dd5cb8..50ac01f8d6d1 100644 --- a/include/linux/relay.h +++ b/include/linux/relay.h @@ -13,7 +13,6 @@ #include #include -#include #include #include #include diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index b4795698d8c2..a924a7d5b44a 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -39,7 +39,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h index 373003ace639..0e8d11410f9f 100644 --- a/include/linux/rfkill.h +++ b/include/linux/rfkill.h @@ -31,8 +31,6 @@ enum rfkill_user_states { #undef RFKILL_STATE_HARD_BLOCKED #include -#include -#include #include #include diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index fa802db216f9..a4553db80912 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h @@ -3,7 +3,6 @@ #define _LINUX_RING_BUFFER_H #include -#include #include struct trace_buffer; diff --git a/include/linux/rtc/ds1685.h b/include/linux/rtc/ds1685.h index 5a41c3bbcbe3..1bda17f878bb 100644 --- a/include/linux/rtc/ds1685.h +++ b/include/linux/rtc/ds1685.h @@ -23,7 +23,6 @@ #include #include -#include /** * struct ds1685_priv - DS1685 private data structure. diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 410529fca18b..904cf20a7ae6 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -2,8 +2,6 @@ #ifndef __LINUX_RTNETLINK_H #define __LINUX_RTNETLINK_H - -#include #include #include #include diff --git a/include/linux/sbitmap.h b/include/linux/sbitmap.h index d662cf136021..d7d3fba174f8 100644 --- a/include/linux/sbitmap.h +++ b/include/linux/sbitmap.h @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/sched/clock.h b/include/linux/sched/clock.h index 196f0ca351a2..bb5aaf98bf87 100644 --- a/include/linux/sched/clock.h +++ b/include/linux/sched/clock.h @@ -2,7 +2,7 @@ #ifndef _LINUX_SCHED_CLOCK_H #define _LINUX_SCHED_CLOCK_H -#include +#include /* * Do not use outside of architecture code which knows its limitations. diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index 4b7664c56208..8a2d65337c48 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h @@ -2,6 +2,7 @@ #ifndef _LINUX_SCHED_SIGNAL_H #define _LINUX_SCHED_SIGNAL_H +#include #include #include #include diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 234bcdb1fba4..96d595cd7659 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -8,7 +8,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h index 7bed5be886c6..3b2d8de6e7d8 100644 --- a/include/linux/sh_clk.h +++ b/include/linux/sh_clk.h @@ -3,7 +3,6 @@ #define __SH_CLOCK_H #include -#include #include #include #include diff --git a/include/linux/slab.h b/include/linux/slab.h index 12a62a17e893..b9716534a678 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/slimbus.h b/include/linux/slimbus.h index 12c9719b2a55..e29958e5e96d 100644 --- a/include/linux/slimbus.h +++ b/include/linux/slimbus.h @@ -7,9 +7,10 @@ #define _LINUX_SLIMBUS_H #include #include -#include #include +struct completion; + extern struct bus_type slimbus_bus; /** diff --git a/include/linux/soc/apple/rtkit.h b/include/linux/soc/apple/rtkit.h index 8c9ca857ccf6..64a4059249f6 100644 --- a/include/linux/soc/apple/rtkit.h +++ b/include/linux/soc/apple/rtkit.h @@ -10,10 +10,11 @@ #ifndef _LINUX_APPLE_RTKIT_H_ #define _LINUX_APPLE_RTKIT_H_ -#include #include #include +struct device; + /* * Struct to represent implementation-specific RTKit operations. * diff --git a/include/linux/soc/apple/sart.h b/include/linux/soc/apple/sart.h index 2249bf6cde09..f5d5dd678471 100644 --- a/include/linux/soc/apple/sart.h +++ b/include/linux/soc/apple/sart.h @@ -12,10 +12,10 @@ #ifndef _LINUX_SOC_APPLE_SART_H_ #define _LINUX_SOC_APPLE_SART_H_ -#include #include #include +struct device; struct apple_sart; /* diff --git a/include/linux/soc/mediatek/mtk-cmdq.h b/include/linux/soc/mediatek/mtk-cmdq.h index 649955d2cf5c..64411659966a 100644 --- a/include/linux/soc/mediatek/mtk-cmdq.h +++ b/include/linux/soc/mediatek/mtk-cmdq.h @@ -9,7 +9,6 @@ #include #include -#include #define CMDQ_ADDR_HIGH(addr) ((u32)(((addr) >> 16) & GENMASK(31, 0))) #define CMDQ_ADDR_LOW(addr) ((u16)(addr) | BIT(1)) diff --git a/include/linux/soc/qcom/qcom_aoss.h b/include/linux/soc/qcom/qcom_aoss.h index 7361ca028752..21d345a7e9c5 100644 --- a/include/linux/soc/qcom/qcom_aoss.h +++ b/include/linux/soc/qcom/qcom_aoss.h @@ -7,8 +7,8 @@ #define __QCOM_AOSS_H__ #include -#include +struct device; struct qmp; #if IS_ENABLED(CONFIG_QCOM_AOSS_QMP) diff --git a/include/linux/spi/spi_bitbang.h b/include/linux/spi/spi_bitbang.h index 0bd120e2c701..5a5852cb47c7 100644 --- a/include/linux/spi/spi_bitbang.h +++ b/include/linux/spi/spi_bitbang.h @@ -4,7 +4,6 @@ #include #include -#include struct spi_bitbang { struct mutex lock; diff --git a/include/linux/srcu.h b/include/linux/srcu.h index 236610e4a8fa..b86233c200e1 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h @@ -16,9 +16,7 @@ #ifndef _LINUX_SRCU_H #define _LINUX_SRCU_H -#include #include -#include #include struct srcu_struct; diff --git a/include/linux/stm.h b/include/linux/stm.h index 3b22689512be..c61f3841712c 100644 --- a/include/linux/stm.h +++ b/include/linux/stm.h @@ -7,7 +7,9 @@ #ifndef _STM_H_ #define _STM_H_ -#include +#include + +struct device; /** * enum stp_packet_type - STP packets that an STM driver sends diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index 61e58327b1aa..45be9d7e5976 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h @@ -16,7 +16,6 @@ #include #include -#include #include /* diff --git a/include/linux/sunrpc/metrics.h b/include/linux/sunrpc/metrics.h index 0ee3f7052846..6bfed383ed63 100644 --- a/include/linux/sunrpc/metrics.h +++ b/include/linux/sunrpc/metrics.h @@ -26,12 +26,13 @@ #ifndef _LINUX_SUNRPC_METRICS_H #define _LINUX_SUNRPC_METRICS_H -#include #include #include #define RPC_IOSTATS_VERS "1.1" +struct seq_file; + struct rpc_iostats { spinlock_t om_lock; diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index 5438de45300d..c26733d8fde7 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h @@ -5,7 +5,6 @@ #include #include #include -#include struct rpc_pipe_dir_head { struct list_head pdh_entries; diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 2d61987b3545..b568e439c6cf 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -10,7 +10,6 @@ #ifndef _LINUX_SUNRPC_SCHED_H_ #define _LINUX_SUNRPC_SCHED_H_ -#include #include #include #include diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 23617da0e565..4cb592e892bc 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -18,7 +18,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index e7595ae62fe2..1cfaf76d0732 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/include/linux/swait.h b/include/linux/swait.h index d324419482a0..535637f3bf32 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -5,7 +5,6 @@ #include #include #include -#include #include /* diff --git a/include/linux/swapops.h b/include/linux/swapops.h index 48b700ba1d18..1fe14636d51e 100644 --- a/include/linux/swapops.h +++ b/include/linux/swapops.h @@ -2,7 +2,6 @@ #ifndef _LINUX_SWAPOPS_H #define _LINUX_SWAPOPS_H -#include #include #include diff --git a/include/linux/sync_file.h b/include/linux/sync_file.h index 790ca021203a..2aa71bff4d4c 100644 --- a/include/linux/sync_file.h +++ b/include/linux/sync_file.h @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/include/linux/sys_soc.h b/include/linux/sys_soc.h index d9b3cf0f410c..09d4b53af192 100644 --- a/include/linux/sys_soc.h +++ b/include/linux/sys_soc.h @@ -6,7 +6,8 @@ #ifndef __SOC_BUS_H #define __SOC_BUS_H -#include +struct device; +struct soc_device; struct soc_device_attribute { const char *machine; diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 77eb9b0e7685..a7366e5ee88f 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -84,7 +84,6 @@ struct mnt_id_req; #include #include #include -#include #include #include #include diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index b717a70219f6..601ff20acc20 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -15,17 +15,12 @@ #include #include -#include #include #include -#include -#include -#include struct kobject; struct module; struct bin_attribute; -enum kobj_ns_type; struct attribute { const char *name; diff --git a/include/linux/torture.h b/include/linux/torture.h index 1541454da03e..f7a91dc7b063 100644 --- a/include/linux/torture.h +++ b/include/linux/torture.h @@ -12,12 +12,8 @@ #include #include -#include #include #include -#include -#include -#include #include #include #include diff --git a/include/linux/tracefs.h b/include/linux/tracefs.h index 7a5fe17b6bf9..bd5cc895f537 100644 --- a/include/linux/tracefs.h +++ b/include/linux/tracefs.h @@ -13,7 +13,6 @@ #define _TRACEFS_H_ #include -#include #include diff --git a/include/linux/transport_class.h b/include/linux/transport_class.h index 2efc271a96fa..b7d25a62b4d8 100644 --- a/include/linux/transport_class.h +++ b/include/linux/transport_class.h @@ -8,10 +8,11 @@ #ifndef _TRANSPORT_CLASS_H_ #define _TRANSPORT_CLASS_H_ -#include +#include #include #include +struct device; struct transport_container; struct transport_class { diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index 7372124fbf90..a9fd888f4cd3 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -11,6 +11,7 @@ #include #include +struct attribute_group; struct tty_struct; struct tty_driver; struct serial_icounter_struct; diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index af01e89074b2..3a6f70f2f41e 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h @@ -5,11 +5,9 @@ struct tty_struct; #include -#include #include #include #include -#include /* * the semaphore definition diff --git a/include/linux/tty_port.h b/include/linux/tty_port.h index 2de08c8d2584..1b861f2100b6 100644 --- a/include/linux/tty_port.h +++ b/include/linux/tty_port.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include struct attribute_group; struct tty_driver; diff --git a/include/linux/u64_stats_sync.h b/include/linux/u64_stats_sync.h index cf4b090e799a..03311e011724 100644 --- a/include/linux/u64_stats_sync.h +++ b/include/linux/u64_stats_sync.h @@ -61,7 +61,10 @@ */ #include + +#if BITS_PER_LONG == 64 #include +#endif struct u64_stats_sync { #if BITS_PER_LONG == 32 diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index f46e0ca0169c..a76155cf8ceb 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h @@ -12,9 +12,7 @@ */ #include -#include #include -#include struct vm_area_struct; struct mm_struct; diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index cd77fc6095a1..65f3a953d2c2 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h @@ -8,7 +8,6 @@ #ifdef __KERNEL__ -#include #include #include diff --git a/include/linux/usb/role.h b/include/linux/usb/role.h index b5deafd91f67..1fd9878daa01 100644 --- a/include/linux/usb/role.h +++ b/include/linux/usb/role.h @@ -3,8 +3,11 @@ #ifndef __LINUX_USB_ROLE_H #define __LINUX_USB_ROLE_H -#include +#include +#include +struct device; +struct fwnode_handle; struct usb_role_switch; enum usb_role { diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index 6030a8235617..a9cee5a7b8af 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h @@ -2,7 +2,6 @@ #ifndef _LINUX_USER_NAMESPACE_H #define _LINUX_USER_NAMESPACE_H -#include #include #include #include diff --git a/include/linux/vfio_pci_core.h b/include/linux/vfio_pci_core.h index 85e84b92751b..a3075d00675a 100644 --- a/include/linux/vfio_pci_core.h +++ b/include/linux/vfio_pci_core.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #ifndef VFIO_PCI_CORE_H diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 91810b4e9510..77054ddd7eac 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -2,7 +2,6 @@ #ifndef _LINUX_VMALLOC_H #define _LINUX_VMALLOC_H -#include #include #include #include diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index d008c3d0a9bb..28cd6b859fea 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 9a7a3d2b543f..9f5d9ac072c3 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -6,7 +6,6 @@ #define WRITEBACK_H #include -#include #include #include #include diff --git a/include/media/cec.h b/include/media/cec.h index d77982685116..085dd6a526c8 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include diff --git a/include/media/dmxdev.h b/include/media/dmxdev.h index 63219a699370..4f48ed5ceda7 100644 --- a/include/media/dmxdev.h +++ b/include/media/dmxdev.h @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/include/media/dvb_demux.h b/include/media/dvb_demux.h index 3b6aeca7a49e..8f90330274d5 100644 --- a/include/media/dvb_demux.h +++ b/include/media/dvb_demux.h @@ -20,7 +20,6 @@ #define _DVB_DEMUX_H_ #include -#include #include #include diff --git a/include/media/rc-core.h b/include/media/rc-core.h index 803349599c27..eabb19016fec 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h @@ -12,7 +12,6 @@ #include #include #include -#include #include /** diff --git a/include/media/v4l2-async.h b/include/media/v4l2-async.h index 9bd326d31181..95abe99a26b8 100644 --- a/include/media/v4l2-async.h +++ b/include/media/v4l2-async.h @@ -9,7 +9,6 @@ #define V4L2_ASYNC_H #include -#include struct dentry; struct device; diff --git a/include/media/v4l2-event.h b/include/media/v4l2-event.h index 3a0e2588361c..2d08ef0752df 100644 --- a/include/media/v4l2-event.h +++ b/include/media/v4l2-event.h @@ -14,7 +14,6 @@ #include #include -#include struct v4l2_fh; struct v4l2_subdev; diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index edb733f21604..d95461c2102d 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h @@ -12,7 +12,6 @@ #include #include -#include #include #include /* need __user */ #include diff --git a/include/net/ax25.h b/include/net/ax25.h index 0d939e5aee4e..8c5d4698cf29 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h @@ -15,7 +15,6 @@ #include #include #include -#include #define AX25_T1CLAMPLO 1 #define AX25_T1CLAMPHI (30 * HZ) diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 7ffa8c192c3f..b8f8c8fc52d3 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -28,7 +28,8 @@ #include #include -#include + +struct seq_file; #define BT_SUBSYS_VERSION 2 #define BT_SUBSYS_REVISION 22 diff --git a/include/net/bonding.h b/include/net/bonding.h index 5b8b1b644a2d..4e7d4bfb0103 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -13,7 +13,6 @@ #ifndef _NET_BONDING_H #define _NET_BONDING_H -#include #include #include #include diff --git a/include/net/bpf_sk_storage.h b/include/net/bpf_sk_storage.h index 2926f1f00d65..0e49c3602953 100644 --- a/include/net/bpf_sk_storage.h +++ b/include/net/bpf_sk_storage.h @@ -3,11 +3,7 @@ #ifndef _BPF_SK_STORAGE_H #define _BPF_SK_STORAGE_H -#include -#include -#include #include -#include #include #include #include diff --git a/include/net/caif/cfcnfg.h b/include/net/caif/cfcnfg.h index 8819ff4db35a..730aa6c0ebef 100644 --- a/include/net/caif/cfcnfg.h +++ b/include/net/caif/cfcnfg.h @@ -6,7 +6,6 @@ #ifndef CFCNFG_H_ #define CFCNFG_H_ -#include #include #include #include diff --git a/include/net/caif/cfsrvl.h b/include/net/caif/cfsrvl.h index 5ee7b322e18b..6bec9852c6fe 100644 --- a/include/net/caif/cfsrvl.h +++ b/include/net/caif/cfsrvl.h @@ -9,7 +9,6 @@ #include #include #include -#include #include struct cfsrvl { diff --git a/include/net/devlink.h b/include/net/devlink.h index 9ac394bdfbe4..7905d55ed0d4 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -7,7 +7,6 @@ #ifndef _NET_DEVLINK_H_ #define _NET_DEVLINK_H_ -#include #include #include #include @@ -18,9 +17,9 @@ #include #include #include -#include #include +struct device; struct devlink; struct devlink_linecard; diff --git a/include/net/dsa.h b/include/net/dsa.h index 82135fbdb1e6..b473dc806a10 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -11,8 +11,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/include/net/dsa_stubs.h b/include/net/dsa_stubs.h index 6f384897f287..1490c36ea9c4 100644 --- a/include/net/dsa_stubs.h +++ b/include/net/dsa_stubs.h @@ -3,7 +3,6 @@ * include/net/dsa_stubs.h - Stubs for the Distributed Switch Architecture framework */ -#include #include #include #include diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index 7f1b38458743..5c69fcd3e80e 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h @@ -19,7 +19,6 @@ #include #include #include -#include #include #include diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index f28da08a37b4..b7f313b277ea 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 74ff688568a0..de3536f280cc 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index d4667b7797e3..0d80e9a10019 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -13,7 +13,6 @@ #define _NET_IP_FIB_H #include -#include #include #include #include diff --git a/include/net/lib80211.h b/include/net/lib80211.h index 8b47d3a51cf8..973049cb0453 100644 --- a/include/net/lib80211.h +++ b/include/net/lib80211.h @@ -31,7 +31,8 @@ #include #include #include -#include + +struct seq_file; #define NUM_WEP_KEYS 4 diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 0d28172193fa..1197433b3315 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -22,7 +22,6 @@ #include #include #include -#include #include #include @@ -30,6 +29,8 @@ #include #include +struct seq_file; + /* * NUD stands for "neighbor unreachability detection" */ diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 13b3a4e29fdb..a2f221a39cd2 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -7,7 +7,6 @@ #include #include -#include #include #include #include diff --git a/include/net/net_ratelimit.h b/include/net/net_ratelimit.h index 93c1bd5133c2..8bc1c31cce8a 100644 --- a/include/net/net_ratelimit.h +++ b/include/net/net_ratelimit.h @@ -2,8 +2,6 @@ #ifndef _LINUX_NET_RATELIMIT_H #define _LINUX_NET_RATELIMIT_H -#include - extern struct ratelimit_state net_ratelimit_state; #endif /* _LINUX_NET_RATELIMIT_H */ diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index bae914815aa3..e2caf55de629 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h @@ -5,7 +5,6 @@ #include #include #include -#include #include #ifdef CONFIG_NF_CT_PROTO_DCCP #include diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 423b52eca908..79d382d72ede 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h @@ -3,7 +3,6 @@ #define __NETNS_XFRM_H #include -#include #include #include #include diff --git a/include/net/netrom.h b/include/net/netrom.h index f0565a5987d1..f6fe4a6e307d 100644 --- a/include/net/netrom.h +++ b/include/net/netrom.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #define NR_NETWORK_LEN 15 diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index f308e8268651..ad5d0f06cf94 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -3,11 +3,12 @@ #define __NET_PKT_CLS_H #include -#include #include #include #include +struct rcu_work; + /* TC action not accessible from user space */ #define TC_ACT_CONSUMED (TC_ACT_VALUE_MAX + 1) diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 934fdb977551..da96e966c807 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/include/net/smc.h b/include/net/smc.h index c9dcb30e3fd9..da590f95811e 100644 --- a/include/net/smc.h +++ b/include/net/smc.h @@ -11,12 +11,12 @@ #ifndef _SMC_H #define _SMC_H -#include #include #include #include #include "linux/ism.h" +struct device; struct sock; #define SMC_MAX_PNETID_LEN 16 /* Max. length of PNET id */ diff --git a/include/net/snmp.h b/include/net/snmp.h index 468a67836e2f..93ada92299fc 100644 --- a/include/net/snmp.h +++ b/include/net/snmp.h @@ -16,7 +16,6 @@ #include #include -#include /* * Mibs are stored in array of unsigned long. diff --git a/include/net/tcp.h b/include/net/tcp.h index 140e012260a8..36ce457e35ce 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include // for hrtimer_try_to_cancel() @@ -43,11 +42,12 @@ #include #include -#include #include #include #include +struct seq_file; + extern struct inet_hashinfo tcp_hashinfo; DECLARE_PER_CPU(unsigned int, tcp_orphan_count); diff --git a/include/net/udp.h b/include/net/udp.h index 488a6d2babcc..60388bea893d 100644 --- a/include/net/udp.h +++ b/include/net/udp.h @@ -26,10 +26,11 @@ #include #include #include -#include #include #include +struct seq_file; + /** * struct udp_skb_cb - UDP(-Lite) private variables * diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 1d107241b901..21d4f49cd83f 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h index 565a85044541..9ce4d1a88cad 100644 --- a/include/rdma/ib_umem.h +++ b/include/rdma/ib_umem.h @@ -9,7 +9,6 @@ #include #include -#include #include struct ib_ucontext; diff --git a/include/rdma/restrack.h b/include/rdma/restrack.h index 8b7c46daeb07..11e487bdf61c 100644 --- a/include/rdma/restrack.h +++ b/include/rdma/restrack.h @@ -12,7 +12,6 @@ #include #include #include -#include struct ib_device; struct sk_buff; diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 526def14e7fb..b1569693da53 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h @@ -7,7 +7,6 @@ #include #include #include -#include #include #include diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index b259d42a1e1a..2e6aaee6042d 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -11,6 +11,7 @@ #include #include +struct seq_file; struct block_device; struct completion; struct module; diff --git a/include/sound/core.h b/include/sound/core.h index eaae6da1e0b0..a4d06410638b 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -11,7 +11,6 @@ #include /* wake_up() */ #include /* struct mutex */ #include /* struct rw_semaphore */ -#include /* pm_message_t */ #include #include #include diff --git a/include/video/atmel_lcdc.h b/include/video/atmel_lcdc.h index 43e497cdeb60..282193d8e10f 100644 --- a/include/video/atmel_lcdc.h +++ b/include/video/atmel_lcdc.h @@ -9,8 +9,6 @@ #ifndef __ATMEL_LCDC_H__ #define __ATMEL_LCDC_H__ -#include - /* Way LCD wires are connected to the chip: * Some Atmel chips use BGR color mode (instead of standard RGB) * A swapped wiring onboard can bring to RGB mode. diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index 1a371a825c55..aa61456091cc 100644 --- a/include/xen/interface/memory.h +++ b/include/xen/interface/memory.h @@ -10,8 +10,6 @@ #ifndef __XEN_PUBLIC_MEMORY_H__ #define __XEN_PUBLIC_MEMORY_H__ -#include - /* * Increase or decrease the specified domain's memory reservation. Returns a * -ve errcode on failure, or the # extents successfully allocated or freed. diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h index ac22cf08c09f..d0f2e0a134be 100644 --- a/include/xen/xenbus.h +++ b/include/xen/xenbus.h @@ -36,7 +36,6 @@ #include #include -#include #include #include #include