Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2402004rdb; Mon, 12 Feb 2024 03:57:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXUPhpSo0Rn9NSMer2bI1DHahhj0P/1WWRxhGUG4aULZe6WAUkH8qntH0B8oMGybVh+pGZnhfDbhfjl4QAo2WuIerwlEw/j4XUDa8Qyaw== X-Google-Smtp-Source: AGHT+IFP9d+zbtniVcv+g38l/QzKjug85D0ul+tzGhZqKwX+v8PFBoVy6l7t1EdA/USI4Lj1wuyp X-Received: by 2002:a17:903:41cc:b0:1db:28c0:b705 with SMTP id u12-20020a17090341cc00b001db28c0b705mr319608ple.45.1707739067027; Mon, 12 Feb 2024 03:57:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707739067; cv=pass; d=google.com; s=arc-20160816; b=gsqy6jp7/ZTpJKDisRdECwRqa0R5Z+dcGe1UUiIMntVmQdJ0PMIL55wXrSMLX0i2wm 06716NsSMAnNse7HP0WaR8eP5VasaOFB6riAMNzNGzBS1q++4TewRXO+Dca5fZMJ6zjk BWR+Jdg+TtJ8WUjT/yPeWVGZd0CAWne7JrvamQBc9Hru7Q4u/08tbiTZozkrWydY3rCp lzB+UXSEC+P5B2pM1kVtNCg6FUaQxtSrfj4Yzslq3DkvuZKIJ/mopjkggaBvkjLeCbJT P/3n1b4C3FIYy74JIxS28YgJBMVWIf4oG2/9u5HgMOPLniBcxgnj6tJHumklNpSO12ya lzQw== 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=UvoiihLJ5aqM7bkArA3AZLqLBb82+bEROlJyYKdd/dM=; fh=2uVD+U5OttO1xQFYehjMbfp81YwOvy94zDpGjqcmG6k=; b=V7YKTWAon7ZruXendI8VbMPTd8EC32jCWRG+vXetvWngDKl7xLbjfG3fR3QAIaAi/D 3Y+2BntQLBboQ0f6op+w+NYIexQGR5k8RI93K09ZCUzezSS2B5YBpBAc0KTkaUMYFSSm B80ZJ1TKf/LnX2j2E/WK9wmp/c8Zdb0ftdMDjxDELsNtphYzI/AghSQsV9mwZxvEbCBI 1YJBHH1whvNbiGQdQFhjhxLkbG62E3gL0txMx9o6QULbZvbD7j1ILOYoe/VTiOq9RZ9f PE9oAZ7Yv9k/L0jRhLvrUMHageWOfef2j7QKRG9XEV/jJD67X6sosvQo/E6xuu7JiQXC W3AA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=UO8GVZhr; 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-61474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCWQm0kz3cYL2qNE3808WfJisQ6Fe3lqLZwktliBT8gWLrjM6G4hNb2OaWrHM5MVV0zpcOqr3ZrpKk7hjceQnbdMKFGRcX5TjOxPqrTNxg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u16-20020a170903125000b001d8dd5bb9a1si143286plh.412.2024.02.12.03.57.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=UO8GVZhr; 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-61474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A2BBA283F05 for ; Mon, 12 Feb 2024 11:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 663233B783; Mon, 12 Feb 2024 11:55:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="UO8GVZhr" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 F400039FF5 for ; Mon, 12 Feb 2024 11:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738930; cv=none; b=WlJKWZWuFXtD+Wogn6THEFq0oAXaWGBUpkM0zOuJpiTJ066+eK8em54B2fG5Nm+9kKZT2gb0Ptl/Sxc/QxtA63n0pbYXIciEnctZjLhNuwnnVpVqwWuj4HwSvpz5SpaSGRZNS3nCR4LJR9l9Q4e+RGXkA9GpNw0a9K2jAGWzsbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738930; c=relaxed/simple; bh=SCadLCodTQ4TW+/zHHITSe11VlBLx8yTMl1c5EKWZlE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GI6CRTipg1pJuePZ6Ao0XaZOSL9wpEqi3byV6PnOQ5sGFQXtrBgbFmsvzHJjBMnWIbjgAeeyESQTHx0VHmsOicu2ZPdD4ffDRZ09VUjuVrGxSVkT219ID3xikJ22vSbEKVJeSW25YGWlpLCay+8KAJ7MXUMHWNHF/dF1iWNWnV8= 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=UO8GVZhr; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a3566c0309fso362876566b.1 for ; Mon, 12 Feb 2024 03:55:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707738925; x=1708343725; 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=UvoiihLJ5aqM7bkArA3AZLqLBb82+bEROlJyYKdd/dM=; b=UO8GVZhrqmvUCoommc8dYswl14dYNbwFMTsuqpJP+yeVWWktxTE8mNlc/0d+KacLYd HYkcvuD4X+sZWqWr5yVINe3Gc8AewAX9iQuvO0MaCN+VZq2yp3c51HPmVbBX9btbOkse zjVRiq13HAEgkwvjHVzH+p3wWYd3AmekPDaT8BiXDtovODf1cEbvILxAXdj0czCsFqw8 2Rx6okxG6P37WyH9bQmYkn88tK5vgnEsIHfKrLXz4c+z4FEHCmFTDIm9Dpji3VJLchea Lo05NMxK/UYadN7hIama27bsjW5R820RhnOnKuLpuNCUJ6+JS5HjjCXt4iWB54TGOTd+ B16A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707738925; x=1708343725; 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=UvoiihLJ5aqM7bkArA3AZLqLBb82+bEROlJyYKdd/dM=; b=Dl10IC1Nna1bU442ODIah2Tiq+T44V0/peBf6lpd5shwDusczxjhqe+52ZhxIZk187 vAkkbwq1PmJsFVE8Nry8uVO4NNWvRvNAhoKGoPTuDttxlP3QjjZ5IpNDNn0E4BctZrU6 9M2UR+8NT3yX3Qp3WZ/2Xa5tJiCpdQpBxBS3dryM/vb0nrV0+Hu9NI2y8GjYOxBqSf5r Gd15f2XdysFdRJBUg58o65DRG/NzFdyDAjVcQzzkDoB1IUyH6VQanYXdgMW5C4PCpzEa WGmLmWVBDVvEj4pLnQZ6vDeF18h7gXeLL1Fn0/+Xtqv7//CWucCuF1OUVLQ1hKOeiCVW /MoA== X-Gm-Message-State: AOJu0YxzsUo9GhJvVv5bykQwpntoObkAHlsFWeWy4YzPSYy/lpV2DK2Y cW/f9pqBvGne8NlbWxf0Nq+hFIUB8ntzdydjxIr5tDanu6KMHN43bhaNM60Y+ZL8Y9GdPK381k/ A X-Received: by 2002:a17:906:3454:b0:a37:5137:1263 with SMTP id d20-20020a170906345400b00a3751371263mr3826377ejb.30.1707738925417; Mon, 12 Feb 2024 03:55:25 -0800 (PST) Received: from raven.blarg.de (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id m1-20020a17090607c100b00a36c3e2e52dsm139203ejc.61.2024.02.12.03.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:55:25 -0800 (PST) From: Max Kellermann To: linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH v5 13/35] wait.h: move declarations to wait_types.h Date: Mon, 12 Feb 2024 12:54:38 +0100 Message-Id: <20240212115500.2078463-14-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240212115500.2078463-1-max.kellermann@ionos.com> References: <20240212115500.2078463-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit By providing declarations in a lean header, we can reduce header dependencies. Signed-off-by: Max Kellermann --- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 2 +- include/drm/gpu_scheduler.h | 2 +- include/linux/backing-dev-defs.h | 2 +- include/linux/blkdev.h | 2 +- include/linux/buffer_head.h | 2 +- include/linux/ceph/libceph.h | 2 +- include/linux/cgroup-defs.h | 2 +- include/linux/console_struct.h | 2 +- include/linux/counter.h | 2 +- include/linux/dcache.h | 2 +- include/linux/dma-buf.h | 2 +- include/linux/eventfd.h | 2 +- include/linux/gnss.h | 2 +- include/linux/libps2.h | 2 +- include/linux/lp.h | 2 +- include/linux/mempool.h | 2 +- include/linux/mhi.h | 2 +- include/linux/mmzone.h | 2 +- include/linux/mtd/flashchip.h | 2 +- include/linux/net.h | 2 +- include/linux/nfs_fs_sb.h | 2 +- include/linux/parport.h | 2 +- include/linux/pid.h | 2 +- include/linux/pm.h | 2 +- include/linux/poll.h | 2 +- include/linux/psi_types.h | 2 +- include/linux/relay.h | 2 +- include/linux/rtnetlink.h | 2 +- include/linux/sbitmap.h | 2 +- include/linux/sunrpc/rpc_pipe_fs.h | 2 +- include/linux/syslog.h | 2 +- include/linux/tty_port.h | 2 +- include/linux/wait.h | 23 +------------------ include/linux/wait_bit.h | 2 +- include/linux/wait_types.h | 31 ++++++++++++++++++++++++++ include/media/dvb_ringbuffer.h | 2 +- include/net/smc.h | 2 +- include/net/sock.h | 2 +- include/scsi/libiscsi.h | 2 +- include/sound/control.h | 2 +- include/sound/rawmidi.h | 2 +- 41 files changed, 71 insertions(+), 61 deletions(-) create mode 100644 include/linux/wait_types.h diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h index 59a5bc9b1120..6e01527b2be5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h @@ -25,7 +25,7 @@ #define __AMDGPU_IH_H__ #include -#include +#include /* Maximum number of IVs processed at once */ #define AMDGPU_IH_MAX_NUM_IVS 32 diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 4edd7ac64b62..05591cc987c2 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_scheduler.h @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #define MAX_WAIT_SCHED_ENTITY_Q_EMPTY msecs_to_jiffies(1000) diff --git a/include/linux/backing-dev-defs.h b/include/linux/backing-dev-defs.h index 9f2ef799cff4..068fc9f3e883 100644 --- a/include/linux/backing-dev-defs.h +++ b/include/linux/backing-dev-defs.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 26344147adec..2a8df9c0e87b 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index d78454a4dd1f..15dffb5374fb 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include enum bh_state_bits { diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index d01be9103e56..12eb9c9f6620 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 380a59b31624..99e24f3034df 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/console_struct.h b/include/linux/console_struct.h index a0142b93eaf9..8babdd50a4ca 100644 --- a/include/linux/console_struct.h +++ b/include/linux/console_struct.h @@ -13,7 +13,7 @@ #ifndef _LINUX_CONSOLE_STRUCT_H #define _LINUX_CONSOLE_STRUCT_H -#include +#include #include #include diff --git a/include/linux/counter.h b/include/linux/counter.h index 846b94517c5b..638ebb5b4d27 100644 --- a/include/linux/counter.h +++ b/include/linux/counter.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include struct counter_device; diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 04ab9e67046c..560ca5e16f1e 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include struct path; struct file; diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index 8ff4add71f88..ab67e5a4b0ec 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h @@ -21,7 +21,7 @@ #include #include #include -#include +#include struct device; struct dma_buf; diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index 7199c5039561..5f41551db2f1 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h @@ -9,7 +9,7 @@ #ifndef _LINUX_EVENTFD_H #define _LINUX_EVENTFD_H -#include +#include #include #include #include diff --git a/include/linux/gnss.h b/include/linux/gnss.h index 9f38ff948d78..3c24e934b732 100644 --- a/include/linux/gnss.h +++ b/include/linux/gnss.h @@ -14,7 +14,7 @@ #include #include #include -#include +#include struct gnss_device; diff --git a/include/linux/libps2.h b/include/linux/libps2.h index 006c38667e75..c2f438730ae1 100644 --- a/include/linux/libps2.h +++ b/include/linux/libps2.h @@ -11,7 +11,7 @@ #include #include #include -#include +#include struct ps2dev; diff --git a/include/linux/lp.h b/include/linux/lp.h index 337573412852..d700bf3255b1 100644 --- a/include/linux/lp.h +++ b/include/linux/lp.h @@ -9,7 +9,7 @@ #define _LINUX_LP_H -#include +#include #include #include diff --git a/include/linux/mempool.h b/include/linux/mempool.h index 16c5cc807ff6..d3df002ac3b7 100644 --- a/include/linux/mempool.h +++ b/include/linux/mempool.h @@ -5,7 +5,7 @@ #ifndef _LINUX_MEMPOOL_H #define _LINUX_MEMPOOL_H -#include +#include #include struct kmem_cache; diff --git a/include/linux/mhi.h b/include/linux/mhi.h index bd99f47726dc..243bfae1a94c 100644 --- a/include/linux/mhi.h +++ b/include/linux/mhi.h @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #define MHI_MAX_OEM_PK_HASH_SEGMENTS 16 diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index ce11c2dab2bc..fa41c34f16da 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/mtd/flashchip.h b/include/linux/mtd/flashchip.h index e856c0dcba27..58ffb6515741 100644 --- a/include/linux/mtd/flashchip.h +++ b/include/linux/mtd/flashchip.h @@ -13,7 +13,7 @@ */ #include #include -#include +#include typedef enum { FL_READY, diff --git a/include/linux/net.h b/include/linux/net.h index c9b4a63791a4..139a936fb772 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -16,7 +16,7 @@ #include #include -#include +#include #include /* For O_CLOEXEC and O_NONBLOCK */ #include #include diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index 08860ceda787..1c9a1e28b13e 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/linux/parport.h b/include/linux/parport.h index c8e3b71a3b49..783835d05d9b 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/pid.h b/include/linux/pid.h index 8124d57752b9..fd9d9c054585 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h @@ -7,7 +7,7 @@ #include #include #include -#include +#include /* * What is struct pid? diff --git a/include/linux/pm.h b/include/linux/pm.h index 303a143c4e04..c1533ce86893 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/linux/poll.h b/include/linux/poll.h index a9e0e1c2d1f2..043aa684b09c 100644 --- a/include/linux/poll.h +++ b/include/linux/poll.h @@ -5,7 +5,7 @@ #include #include -#include +#include #include #include #include diff --git a/include/linux/psi_types.h b/include/linux/psi_types.h index 8af6452b36e2..de72dcc6e0bf 100644 --- a/include/linux/psi_types.h +++ b/include/linux/psi_types.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #ifdef CONFIG_PSI diff --git a/include/linux/relay.h b/include/linux/relay.h index d33735edc3cb..79ecc446ed48 100644 --- a/include/linux/relay.h +++ b/include/linux/relay.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index d1c42219429c..4b1f01916825 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -3,7 +3,7 @@ #define __LINUX_RTNETLINK_H #include -#include +#include #include #include diff --git a/include/linux/sbitmap.h b/include/linux/sbitmap.h index d7d3fba174f8..f7279f7632fe 100644 --- a/include/linux/sbitmap.h +++ b/include/linux/sbitmap.h @@ -18,7 +18,7 @@ #include #include #include -#include +#include struct seq_file; diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index c26733d8fde7..3f4d6fc0a8a3 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h @@ -4,7 +4,7 @@ #include #include -#include +#include struct rpc_pipe_dir_head { struct list_head pdh_entries; diff --git a/include/linux/syslog.h b/include/linux/syslog.h index 955f80e34d4f..2a4c9199d718 100644 --- a/include/linux/syslog.h +++ b/include/linux/syslog.h @@ -8,7 +8,7 @@ #ifndef _LINUX_SYSLOG_H #define _LINUX_SYSLOG_H -#include +#include /* Close the log. Currently a NOP. */ #define SYSLOG_ACTION_CLOSE 0 diff --git a/include/linux/tty_port.h b/include/linux/tty_port.h index a76a5b6a5cf2..8622638452cb 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/wait.h b/include/linux/wait.h index 8aa3372f21a0..b36000bb012c 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -4,17 +4,12 @@ /* * Linux wait queue related types and methods */ -#include +#include #include #include #include -typedef struct wait_queue_entry wait_queue_entry_t; - -typedef int (*wait_queue_func_t)(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); -int default_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); - /* wait_queue_entry::flags */ #define WQ_FLAG_EXCLUSIVE 0x01 #define WQ_FLAG_WOKEN 0x02 @@ -22,22 +17,6 @@ int default_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int #define WQ_FLAG_DONE 0x08 #define WQ_FLAG_PRIORITY 0x10 -/* - * A single wait-queue entry structure: - */ -struct wait_queue_entry { - unsigned int flags; - void *private; - wait_queue_func_t func; - struct list_head entry; -}; - -struct wait_queue_head { - spinlock_t lock; - struct list_head head; -}; -typedef struct wait_queue_head wait_queue_head_t; - struct task_struct; /* diff --git a/include/linux/wait_bit.h b/include/linux/wait_bit.h index 96c90fbcf652..514f68eff79d 100644 --- a/include/linux/wait_bit.h +++ b/include/linux/wait_bit.h @@ -8,7 +8,7 @@ #include #include // for __init #include // for might_sleep() -#include +#include struct wait_bit_key { void *flags; diff --git a/include/linux/wait_types.h b/include/linux/wait_types.h new file mode 100644 index 000000000000..4b43e7bc6dac --- /dev/null +++ b/include/linux/wait_types.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_WAIT_TYPES_H +#define _LINUX_WAIT_TYPES_H +/* + * Linux wait queue related types and methods + */ +#include +#include + +typedef struct wait_queue_entry wait_queue_entry_t; + +typedef int (*wait_queue_func_t)(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); +int default_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); + +/* + * A single wait-queue entry structure: + */ +struct wait_queue_entry { + unsigned int flags; + void *private; + wait_queue_func_t func; + struct list_head entry; +}; + +struct wait_queue_head { + spinlock_t lock; + struct list_head head; +}; +typedef struct wait_queue_head wait_queue_head_t; + +#endif /* _LINUX_WAIT_TYPES_H */ diff --git a/include/media/dvb_ringbuffer.h b/include/media/dvb_ringbuffer.h index 131997d1f131..22da81bff624 100644 --- a/include/media/dvb_ringbuffer.h +++ b/include/media/dvb_ringbuffer.h @@ -24,7 +24,7 @@ #define _DVB_RINGBUFFER_H_ #include -#include +#include /** * struct dvb_ringbuffer - Describes a ring buffer used at DVB framework diff --git a/include/net/smc.h b/include/net/smc.h index 44a01bd3da10..92611a9cf0e9 100644 --- a/include/net/smc.h +++ b/include/net/smc.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include "linux/ism.h" struct device; diff --git a/include/net/sock.h b/include/net/sock.h index bebdc45cf622..008a6c5a3bfc 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -53,7 +53,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 01f13729ad24..d30e65c5f137 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h @@ -11,7 +11,7 @@ #define LIBISCSI_H #include -#include +#include #include #include #include diff --git a/include/sound/control.h b/include/sound/control.h index 486017d25181..04ad6c42029d 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -7,7 +7,7 @@ * Copyright (c) by Jaroslav Kysela */ -#include +#include #include #include // for strscpy() #include diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index 46678a38dbb9..6c380196bff4 100644 --- a/include/sound/rawmidi.h +++ b/include/sound/rawmidi.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include -- 2.39.2