Skip to content

Commit

Permalink
treewide: remove redundant #include <linux/kconfig.h>
Browse files Browse the repository at this point in the history
Kernel source files need not include <linux/kconfig.h> explicitly
because the top Makefile forces to include it with:

  -include $(srctree)/include/linux/kconfig.h

This commit removes explicit includes except the following:

  * arch/s390/include/asm/facilities_src.h
  * tools/testing/radix-tree/linux/kernel.h

These two are used for host programs.

Link: http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Masahiro Yamada authored and Linus Torvalds committed Oct 11, 2016
1 parent 48a6d64 commit 97139d4
Show file tree
Hide file tree
Showing 96 changed files with 0 additions and 112 deletions.
1 change: 0 additions & 1 deletion arch/arm/include/asm/trusted_foundations.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#ifndef __ASM_ARM_TRUSTED_FOUNDATIONS_H
#define __ASM_ARM_TRUSTED_FOUNDATIONS_H

#include <linux/kconfig.h>
#include <linux/printk.h>
#include <linux/bug.h>
#include <linux/of.h>
Expand Down
1 change: 0 additions & 1 deletion arch/arm64/include/asm/alternative.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#ifndef __ASSEMBLY__

#include <linux/init.h>
#include <linux/kconfig.h>
#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/stringify.h>
Expand Down
1 change: 0 additions & 1 deletion arch/mips/include/asm/mach-loongson64/loongson.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/io.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/kconfig.h>
#include <boot_param.h>

/* loongson internal northbridge initialization */
Expand Down
1 change: 0 additions & 1 deletion arch/mips/math-emu/cp1emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
*/
#include <linux/sched.h>
#include <linux/debugfs.h>
#include <linux/kconfig.h>
#include <linux/percpu-defs.h>
#include <linux/perf_event.h>

Expand Down
1 change: 0 additions & 1 deletion arch/mips/net/bpf_jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/errno.h>
#include <linux/filter.h>
#include <linux/if_vlan.h>
#include <linux/kconfig.h>
#include <linux/moduleloader.h>
#include <linux/netdevice.h>
#include <linux/string.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <linux/kconfig.h>
#include "../tty/hvc/hvc_console.h"

#define is_rproc_enabled IS_ENABLED(CONFIG_REMOTEPROC)
Expand Down
1 change: 0 additions & 1 deletion drivers/input/rmi4/rmi_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/kconfig.h>
#include <linux/list.h>
#include <linux/pm.h>
#include <linux/rmi.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/input/rmi4/rmi_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/bitmap.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/kconfig.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/of.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/input/rmi4/rmi_f01.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#include <linux/kernel.h>
#include <linux/kconfig.h>
#include <linux/rmi.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/input/rmi4/rmi_f11.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <linux/device.h>
#include <linux/input.h>
#include <linux/input/mt.h>
#include <linux/kconfig.h>
#include <linux/rmi.h>
#include <linux/slab.h>
#include <linux/of.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/irqchip/irq-bcm6345-l1.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

#include <linux/bitops.h>
#include <linux/cpumask.h>
#include <linux/kconfig.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/irqchip/irq-bcm7038-l1.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/bitops.h>
#include <linux/kconfig.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/irqchip/irq-bcm7120-l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kconfig.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/of.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/irqchip/irq-brcmstb-l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kconfig.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/of.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/af9013.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#ifndef AF9013_H
#define AF9013_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

/* AF9013/5 GPIOs (mostly guessed)
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/af9033.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#ifndef AF9033_H
#define AF9033_H

#include <linux/kconfig.h>

/*
* I2C address (TODO: are these in 8-bit format?)
* 0x38, 0x3a, 0x3c, 0x3e
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/ascot2e.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef __DVB_ASCOT2E_H__
#define __DVB_ASCOT2E_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/atbm8830.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef __ATBM8830_H__
#define __ATBM8830_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/au8522.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef __AU8522_H__
#define __AU8522_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

enum au8522_if_freq {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cx22702.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#ifndef CX22702_H
#define CX22702_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct cx22702_config {
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/cx24113.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#ifndef CX24113_H
#define CX24113_H

#include <linux/kconfig.h>

struct dvb_frontend;

struct cx24113_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cx24116.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef CX24116_H
#define CX24116_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct cx24116_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cx24117.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef CX24117_H
#define CX24117_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct cx24117_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cx24120.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef CX24120_H
#define CX24120_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/firmware.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cx24123.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef CX24123_H
#define CX24123_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct cx24123_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cxd2820r.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef CXD2820R_H
#define CXD2820R_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

#define CXD2820R_GPIO_D (0 << 0) /* disable */
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/cxd2841er.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef CXD2841ER_H
#define CXD2841ER_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

enum cxd2841er_xtal {
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/dib3000mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef DIB3000MC_H
#define DIB3000MC_H

#include <linux/kconfig.h>

#include "dibx000_common.h"

struct dib3000mc_config {
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/dib7000m.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef DIB7000M_H
#define DIB7000M_H

#include <linux/kconfig.h>

#include "dibx000_common.h"

struct dib7000m_config {
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/dib7000p.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef DIB7000P_H
#define DIB7000P_H

#include <linux/kconfig.h>

#include "dibx000_common.h"

struct dib7000p_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/drxd.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#ifndef _DRXD_H_
#define _DRXD_H_

#include <linux/kconfig.h>
#include <linux/types.h>
#include <linux/i2c.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/drxk.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _DRXK_H_
#define _DRXK_H_

#include <linux/kconfig.h>
#include <linux/types.h>
#include <linux/i2c.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/ds3000.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef DS3000_H
#define DS3000_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct ds3000_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/dvb_dummy_fe.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef DVB_DUMMY_FE_H
#define DVB_DUMMY_FE_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/ec100.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef EC100_H
#define EC100_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct ec100_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/hd29l2.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#ifndef HD29L2_H
#define HD29L2_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct hd29l2_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/helene.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef __DVB_HELENE_H__
#define __DVB_HELENE_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/horus3a.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef __DVB_HORUS3A_H__
#define __DVB_HORUS3A_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/ix2505v.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef DVB_IX2505V_H
#define DVB_IX2505V_H

#include <linux/kconfig.h>
#include <linux/i2c.h>
#include "dvb_frontend.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/lg2160.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef _LG2160_H_
#define _LG2160_H_

#include <linux/kconfig.h>
#include <linux/i2c.h>
#include "dvb_frontend.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/lgdt3305.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef _LGDT3305_H_
#define _LGDT3305_H_

#include <linux/kconfig.h>
#include <linux/i2c.h>
#include "dvb_frontend.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/lgs8gl5.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#ifndef LGS8GL5_H
#define LGS8GL5_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

struct lgs8gl5_config {
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/lgs8gxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#ifndef __LGS8GXX_H__
#define __LGS8GXX_H__

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include <linux/i2c.h>

Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/lnbh24.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#ifndef _LNBH24_H
#define _LNBH24_H

#include <linux/kconfig.h>

/* system register bits */
#define LNBH24_OLF 0x01
#define LNBH24_OTF 0x02
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/lnbh25.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define LNBH25_H

#include <linux/i2c.h>
#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

/* 22 kHz tone enabled. Tone output controlled by DSQIN pin */
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/lnbp21.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#ifndef _LNBP21_H
#define _LNBP21_H

#include <linux/kconfig.h>

/* system register bits */
/* [RO] 0=OK; 1=over current limit flag */
#define LNBP21_OLF 0x01
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/dvb-frontends/lnbp22.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#ifndef _LNBP22_H
#define _LNBP22_H

#include <linux/kconfig.h>

/* Enable */
#define LNBP22_EN 0x10
/* Voltage selection */
Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/m88rs2000.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef M88RS2000_H
#define M88RS2000_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/media/dvb-frontends/mb86a20s.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef MB86A20S_H
#define MB86A20S_H

#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>

/**
Expand Down
Loading

0 comments on commit 97139d4

Please sign in to comment.