Skip to content

Commit 39f75da

Browse files
Alexey Dobriyanmasahir0y
authored andcommitted
isystem: trim/fixup stdarg.h and other headers
Delete/fixup few includes in anticipation of global -isystem compile option removal. Note: crypto/aegis128-neon-inner.c keeps <stddef.h> due to redefinition of uintptr_t error (one definition comes from <stddef.h>, another from <linux/types.h>). Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent f12b034 commit 39f75da

31 files changed

Lines changed: 4 additions & 43 deletions

File tree

‎arch/arm/kernel/process.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* Copyright (C) 1996-2000 Russell King - Converted to ARM.
66
* Original Copyright (C) 1995 Linus Torvalds
77
*/
8-
#include <stdarg.h>
9-
108
#include <linux/export.h>
119
#include <linux/sched.h>
1210
#include <linux/sched/debug.h>

‎arch/arm/mach-bcm/bcm_kona_smc.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111
* GNU General Public License for more details.
1212
*/
13-
14-
#include <stdarg.h>
1513
#include <linux/smp.h>
1614
#include <linux/io.h>
1715
#include <linux/ioport.h>

‎arch/arm64/kernel/process.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* Copyright (C) 1996-2000 Russell King - Converted to ARM.
77
* Copyright (C) 2012 ARM Ltd.
88
*/
9-
10-
#include <stdarg.h>
11-
129
#include <linux/compat.h>
1310
#include <linux/efi.h>
1411
#include <linux/elf.h>

‎arch/openrisc/kernel/process.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515

1616
#define __KERNEL_SYSCALLS__
17-
#include <stdarg.h>
18-
1917
#include <linux/errno.h>
2018
#include <linux/sched.h>
2119
#include <linux/sched/debug.h>

‎arch/parisc/kernel/process.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
* Copyright (C) 2001-2014 Helge Deller <deller@gmx.de>
1818
* Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>
1919
*/
20-
21-
#include <stdarg.h>
22-
2320
#include <linux/elf.h>
2421
#include <linux/errno.h>
2522
#include <linux/kernel.h>

‎arch/powerpc/kernel/prom.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#undef DEBUG
1313

14-
#include <stdarg.h>
1514
#include <linux/kernel.h>
1615
#include <linux/string.h>
1716
#include <linux/init.h>

‎arch/sparc/kernel/process_32.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
/*
99
* This file handles the architecture-dependent parts of process handling..
1010
*/
11-
12-
#include <stdarg.h>
13-
1411
#include <linux/elfcore.h>
1512
#include <linux/errno.h>
1613
#include <linux/module.h>

‎arch/sparc/kernel/process_64.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
/*
1010
* This file handles the architecture-dependent parts of process handling..
1111
*/
12-
13-
#include <stdarg.h>
14-
1512
#include <linux/errno.h>
1613
#include <linux/export.h>
1714
#include <linux/sched.h>

‎arch/um/drivers/rtc_user.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (C) 2020 Intel Corporation
44
* Author: Johannes Berg <johannes@sipsolutions.net>
55
*/
6+
#include <stdbool.h>
67
#include <os.h>
78
#include <errno.h>
89
#include <sched.h>

‎arch/um/drivers/vector_user.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
44
*/
55

6+
#include <stdbool.h>
67
#include <stdio.h>
78
#include <unistd.h>
89
#include <stdarg.h>

0 commit comments

Comments
 (0)