isystem: trim/fixup stdarg.h and other headers
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 2 Aug 2021 20:40:31 +0000 (23:40 +0300)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 19 Aug 2021 00:02:55 +0000 (09:02 +0900)
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>
31 files changed:
arch/arm/kernel/process.c
arch/arm/mach-bcm/bcm_kona_smc.c
arch/arm64/kernel/process.c
arch/openrisc/kernel/process.c
arch/parisc/kernel/process.c
arch/powerpc/kernel/prom.c
arch/sparc/kernel/process_32.c
arch/sparc/kernel/process_64.c
arch/um/drivers/rtc_user.c
arch/um/drivers/vector_user.c
arch/um/include/shared/irq_user.h
arch/um/include/shared/os.h
arch/um/os-Linux/signal.c
arch/um/os-Linux/util.c
drivers/block/xen-blkback/xenbus.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
drivers/gpu/drm/msm/disp/msm_disp_snapshot.h
drivers/macintosh/macio-adb.c
drivers/macintosh/via-macii.c
drivers/net/wireless/intersil/orinoco/hermes.c
drivers/net/wwan/iosm/iosm_ipc_imem.h
drivers/pinctrl/aspeed/pinmux-aspeed.h
drivers/scsi/elx/efct/efct_driver.h
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/isp_local.h
drivers/xen/xen-scsiback.c
include/linux/filter.h
include/linux/mISDNif.h
kernel/debug/kdb/kdb_support.c
sound/aoa/codecs/onyx.h
sound/aoa/codecs/tas.c
sound/core/info.c

index fc9e8b37eaa8405144da5c7c553d4613215ab801..bb5ad8a6a4c33871697c9b4cfa1c6860c3ec2473 100644 (file)
@@ -5,8 +5,6 @@
  *  Copyright (C) 1996-2000 Russell King - Converted to ARM.
  *  Original Copyright (C) 1995  Linus Torvalds
  */
-#include <stdarg.h>
-
 #include <linux/export.h>
 #include <linux/sched.h>
 #include <linux/sched/debug.h>
index 43a16f922b53b9ddd9bdb2f869549d60e09b3e0a..43829e49ad93ffdc31e849d3fedd25ef903d77b6 100644 (file)
@@ -10,8 +10,6 @@
  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
-
-#include <stdarg.h>
 #include <linux/smp.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
index c8989b999250d9df1403a4ac0e4fb3dc2081cece..5f7ac9a0f9a38c50dd03aba5303d2576f455c47e 100644 (file)
@@ -6,9 +6,6 @@
  * Copyright (C) 1996-2000 Russell King - Converted to ARM.
  * Copyright (C) 2012 ARM Ltd.
  */
-
-#include <stdarg.h>
-
 #include <linux/compat.h>
 #include <linux/efi.h>
 #include <linux/elf.h>
index eb62429681fc806e5b48658d05488b3aa1e826c4..b0698d9ce14faf9dd389f9d28740caa04a8e6e1c 100644 (file)
@@ -14,8 +14,6 @@
  */
 
 #define __KERNEL_SYSCALLS__
-#include <stdarg.h>
-
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/sched/debug.h>
index 184ec3c1eae440af9f102333c579db34d59c5319..38ec4ae812396c737aed58714faf8b287984018f 100644 (file)
@@ -17,9 +17,6 @@
  *    Copyright (C) 2001-2014 Helge Deller <deller@gmx.de>
  *    Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>
  */
-
-#include <stdarg.h>
-
 #include <linux/elf.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
index f620e04dc9bfea3c2160a44727f10cfac2796eb1..a1e7ba0fad0991d769694ce84be9dfe73061a71d 100644 (file)
@@ -11,7 +11,6 @@
 
 #undef DEBUG
 
-#include <stdarg.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/init.h>
index 93983d6d431def5441b5827425744e017cfe5c76..bbbe0cfef7465fa931656e3cb0c9217eba4241bc 100644 (file)
@@ -8,9 +8,6 @@
 /*
  * This file handles the architecture-dependent parts of process handling..
  */
-
-#include <stdarg.h>
-
 #include <linux/elfcore.h>
 #include <linux/errno.h>
 #include <linux/module.h>
index d33c58a58d4ffb7045eb578bc99297a213ce35ec..0cabcdfb23fdfd998c6a94ccea290a374f7b3015 100644 (file)
@@ -9,9 +9,6 @@
 /*
  * This file handles the architecture-dependent parts of process handling..
  */
-
-#include <stdarg.h>
-
 #include <linux/errno.h>
 #include <linux/export.h>
 #include <linux/sched.h>
index 4016bc1d577e0c2a67f0da62f64c456b3628ff47..7c3cec4c68cffe221546ac0e69983a643b45ae0d 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2020 Intel Corporation
  * Author: Johannes Berg <johannes@sipsolutions.net>
  */
+#include <stdbool.h>
 #include <os.h>
 #include <errno.h>
 #include <sched.h>
index bae53220ce2625e07cfd0583e00203f6b672f226..e4ffeb9a1fa4d6a9748cf0aa4d3176230234a361 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  */
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <stdarg.h>
index 065829f443ae28b68baa6e7d0bea8dfd07974094..86a8a573b65c67330842728f66145e0583a8d7f5 100644 (file)
@@ -7,7 +7,6 @@
 #define __IRQ_USER_H__
 
 #include <sysdep/ptrace.h>
-#include <stdbool.h>
 
 enum um_irq_type {
        IRQ_READ,
index 60b84edc8a688baaad78e7b3f058511491f637ae..96d400387c93ef8b8c5da6cce42a3d15f5d6bc71 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef __OS_H__
 #define __OS_H__
 
-#include <stdarg.h>
 #include <irq_user.h>
 #include <longjmp.h>
 #include <mm_id.h>
index 6de99bb1611374e2507547bd931d8bc4d160181c..6cf098c23a394fd1fb525b966811101b8a3db44e 100644 (file)
@@ -67,7 +67,7 @@ int signals_enabled;
 #ifdef UML_CONFIG_UML_TIME_TRAVEL_SUPPORT
 static int signals_blocked;
 #else
-#define signals_blocked false
+#define signals_blocked 0
 #endif
 static unsigned int signals_pending;
 static unsigned int signals_active = 0;
index 07327425d06ea09038c8fea357879f3a4ccb4ea8..41297ec404bf9f8340fada960e007c5a044322b8 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  */
 
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index 125b22205d3836220cf7f8c2f23d77cfa310430f..33eba3df4dd9af6f545856326a46378178c0db27 100644 (file)
@@ -8,7 +8,6 @@
 
 #define pr_fmt(fmt) "xen-blkback: " fmt
 
-#include <stdarg.h>
 #include <linux/module.h>
 #include <linux/kthread.h>
 #include <xen/events.h>
index 7c4734f905d921ba105b9dd657a33b76d818bfc4..68fd451aca23f4b90d2d8081b61541468e254630 100644 (file)
@@ -39,7 +39,6 @@
 #include <linux/types.h>
 #include <linux/string.h>
 #include <linux/delay.h>
-#include <stdarg.h>
 
 #include "atomfirmware.h"
 
index c92a9508c8d324709128037351c1c4e47c9c7bbc..0f9a5364cd8633464c6122f86de325f5e572ed5d 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/pm_runtime.h>
 #include <linux/kthread.h>
 #include <linux/devcoredump.h>
-#include <stdarg.h>
 #include "msm_kms.h"
 
 #define MSM_DISP_SNAPSHOT_MAX_BLKS             10
index d4759db002c60ab450e973f8017c021a4307a15b..dc634c2932fd358917a511de0fd008182a392bbe 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Driver for the ADB controller in the Mac I/O (Hydra) chip.
  */
-#include <stdarg.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
index 060e03f2264bc58e514fef8680d93c0efb240a95..db9270da5b8e9c5d71ad4ea8049f9be7487feb63 100644 (file)
@@ -23,8 +23,6 @@
  * Apple's "ADB Analyzer" bus sniffer is invaluable:
  *   ftp://ftp.apple.com/developer/Tool_Chest/Devices_-_Hardware/Apple_Desktop_Bus/
  */
-
-#include <stdarg.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
index 6d4b7f64efcf59ef8999d8e588897f9b8440a9f4..25694655274284c12a420742990a5b340cace32e 100644 (file)
@@ -79,7 +79,6 @@
 
 #undef HERMES_DEBUG
 #ifdef HERMES_DEBUG
-#include <stdarg.h>
 
 #define DEBUG(lvl, stuff...) if ((lvl) <= HERMES_DEBUG) DMSG(stuff)
 
index 0d2f10e4cbc872db9e147c1c2fa5691d911d7339..dc65b0712261f18cec9c63e2d774af32a047610a 100644 (file)
@@ -7,7 +7,6 @@
 #define IOSM_IPC_IMEM_H
 
 #include <linux/skbuff.h>
-#include <stdbool.h>
 
 #include "iosm_ipc_mmio.h"
 #include "iosm_ipc_pcie.h"
index b69ba6b360a23317786115775e780b99a4bcca20..4d7548686f3939b50301cfec3310a0570d430c61 100644 (file)
@@ -5,7 +5,6 @@
 #define ASPEED_PINMUX_H
 
 #include <linux/regmap.h>
-#include <stdbool.h>
 
 /*
  * The ASPEED SoCs provide typically more than 200 pins for GPIO and other
index dab8eac4f243cd22a55fead3612ef7ee0245a246..0e3c931db7c2bfcfdd4d96b05dae556fe9a9c2f0 100644 (file)
@@ -10,7 +10,6 @@
 /***************************************************************************
  * OS specific includes
  */
-#include <stdarg.h>
 #include <linux/module.h>
 #include <linux/debugfs.h>
 #include <linux/firmware.h>
index eceeb5d160ad6f9b6081ea5b1bf652654d401804..4dbec4063b3d5a65a8c2478d998a655b14f4451e 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef __ISP_LOCAL_H_INCLUDED__
 #define __ISP_LOCAL_H_INCLUDED__
 
-#include <stdbool.h>
-
 #include "isp_global.h"
 
 #include <isp2400_support.h>
index 61ce0d142eea961757866ce014c262acc42d865d..0c5e565aa8cffd33382cf48791447c7c5a37ca68 100644 (file)
@@ -33,8 +33,6 @@
 
 #define pr_fmt(fmt) "xen-pvscsi: " fmt
 
-#include <stdarg.h>
-
 #include <linux/module.h>
 #include <linux/utsname.h>
 #include <linux/interrupt.h>
index 83b896044e79f3982ab783846445a69e5da7c403..c1711c9f9439661f67ba824bd052d7a34acc2eba 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef __LINUX_FILTER_H__
 #define __LINUX_FILTER_H__
 
-#include <stdarg.h>
-
 #include <linux/atomic.h>
 #include <linux/refcount.h>
 #include <linux/compat.h>
index a7330eb3ec64e2120e31413c48e6a24c1d8d6a70..7dd1f01ec4f9f5a8b27745d59fdacffb81bbe8a8 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef mISDNIF_H
 #define mISDNIF_H
 
-#include <stdarg.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/socket.h>
index 9f50d22d68e630a68e571bad5de2c73fbff7b01c..4f9950678e7b699dccf6cff634cdc0fd9816b4cb 100644 (file)
@@ -10,7 +10,6 @@
  * 03/02/13    added new 2.5 kallsyms <xavier.bru@bull.net>
  */
 
-#include <stdarg.h>
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/mm.h>
index 8a32c3c3d7167d79949b7beafb4d08f55fa64282..6c31b7373b78c9a3458631eec9603eb21668677f 100644 (file)
@@ -6,7 +6,6 @@
  */
 #ifndef __SND_AOA_CODEC_ONYX_H
 #define __SND_AOA_CODEC_ONYX_H
-#include <stddef.h>
 #include <linux/i2c.h>
 #include <asm/pmac_low_i2c.h>
 #include <asm/prom.h>
index ac246dd3ab49d64de8ea323421bbade44f4cd75a..ab19a37e2a68e69d02837f9b692dd47084f10b9a 100644 (file)
@@ -58,7 +58,6 @@
  *    and up to the hardware designer to not wire
  *    them up in some weird unusable way.
  */
-#include <stddef.h>
 #include <linux/i2c.h>
 #include <asm/pmac_low_i2c.h>
 #include <asm/prom.h>
index 9fec3070f8ba30734a21a7376c90d94ec6d2f1cd..a451b24199c3ee66a0a28a0aedd3240d015c6b1b 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/utsname.h>
 #include <linux/proc_fs.h>
 #include <linux/mutex.h>
-#include <stdarg.h>
 
 int snd_info_check_reserved_words(const char *str)
 {