Skip to content

Commit

Permalink
isystem: trim/fixup stdarg.h and other headers
Browse files Browse the repository at this point in the history
Delete/fixup few includes in anticipation of global -isystem compile
option removal.

Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: linux-um@lists.infradead.org
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
  • Loading branch information
Alexey Dobriyan authored and intel-lab-lkp committed Aug 1, 2021
1 parent e1ab9a7 commit f3863b2
Show file tree
Hide file tree
Showing 32 changed files with 5 additions and 44 deletions.
2 changes: 0 additions & 2 deletions arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-bcm/bcm_kona_smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions arch/arm64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions arch/openrisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/

#define __KERNEL_SYSCALLS__
#include <stdarg.h>

#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/sched/debug.h>
Expand Down
3 changes: 0 additions & 3 deletions arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#undef DEBUG

#include <stdarg.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/init.h>
Expand Down
3 changes: 0 additions & 3 deletions arch/sparc/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions arch/sparc/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions arch/um/drivers/rtc_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions arch/um/drivers/vector_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion arch/um/include/shared/irq_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define __IRQ_USER_H__

#include <sysdep/ptrace.h>
#include <stdbool.h>

enum um_irq_type {
IRQ_READ,
Expand Down
1 change: 0 additions & 1 deletion arch/um/include/shared/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#ifndef __OS_H__
#define __OS_H__

#include <stdarg.h>
#include <irq_user.h>
#include <longjmp.h>
#include <mm_id.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/um/os-Linux/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions arch/um/os-Linux/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion crypto/aegis128-neon-inner.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#define AEGIS_BLOCK_SIZE 16

#include <stddef.h>
#include <linux/types.h>

extern int aegis128_have_aes_insn;

Expand Down
1 change: 0 additions & 1 deletion drivers/block/xen-blkback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include <linux/types.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <stdarg.h>

#include "atomfirmware.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/msm/disp/msm_disp_snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/macintosh/macio-adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions drivers/macintosh/via-macii.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/intersil/orinoco/hermes.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@

#undef HERMES_DEBUG
#ifdef HERMES_DEBUG
#include <stdarg.h>

#define DEBUG(lvl, stuff...) if ((lvl) <= HERMES_DEBUG) DMSG(stuff)

Expand Down
1 change: 0 additions & 1 deletion drivers/net/wwan/iosm/iosm_ipc_imem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion drivers/pinctrl/aspeed/pinmux-aspeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/scsi/elx/efct/efct_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/***************************************************************************
* OS specific includes
*/
#include <stdarg.h>
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/firmware.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions drivers/xen/xen-scsiback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions include/linux/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion include/linux/mISDNif.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion kernel/debug/kdb/kdb_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion sound/aoa/codecs/onyx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion sound/aoa/codecs/tas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f3863b2

Please sign in to comment.