clang-tidy: Fix all remaining misc-include-cleaner violations

- Remove unused includes
- Add common false positive headers to misc-include-cleaner.IgnoreHeaders
- Add IWYU pragma keep for uncommon false positive headers
This commit is contained in:
Daan De Meyer
2025-11-22 10:19:41 +01:00
parent d11ce97386
commit 87fbd33372
123 changed files with 138 additions and 147 deletions
+7
View File
@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
/* The kernel header depends on <arpa/inet.h> being included. */
#include <arpa/inet.h>
#include_next <linux/sctp.h> /* IWYU pragma: export */
+2 -1
View File
@@ -4,7 +4,8 @@
/* sched.h includes linux/sched/types.h since glibc-2.41 (21571ca0d70302909cf72707b2a7736cf12190a0),
* to make struct sched_attr being defined.
* Note, this must be included before sched.h, otherwise the headers conflict with each other. */
#include <linux/sched/types.h>
#include <linux/sched.h> /* IWYU pragma: export */
#include <linux/sched/types.h> /* IWYU pragma: export */
#include_next <sched.h> /* IWYU pragma: export */