include of <linux/types.h> is preferred over <asm/types.h>
Subsystems (7)
PATCH 1/1 include of <linux/types.h> is preferred over <asm/types.h>
Impact: fix 15 make headers_check warnings:
include of <linux/types.h> is preferred over <asm/types.h>
Signed-off-by Jaswinder Singh Rajput <[email protected]>
--- include/linux/agpgart.h | 1 - include/linux/atm_idt77105.h | 2 +- include/linux/capi.h | 2 +- include/linux/connector.h | 2 +- include/linux/cyclades.h | 2 -- include/linux/fb.h | 2 +- include/linux/if_pppol2tp.h | 2 +- include/linux/if_pppox.h | 2 +- include/linux/input.h | 2 +- include/linux/joystick.h | 2 +- include/linux/kvm.h | 2 +- include/linux/loop.h | 2 +- include/linux/matroxfb.h | 2 +- include/linux/phantom.h | 2 +- include/linux/radeonfb.h | 2 +- 15 files changed, 13 insertions(+), 16 deletions(-)
include/linux/agpgart.h +0 -1
@@ -52,7 +52,6 @@ #ifndef __KERNEL__ #include <linux/types.h> -#include <asm/types.h> struct agp_version { __u16 major;
include/linux/atm_idt77105.h +1 -1
@@ -7,7 +7,7 @@#ifndef LINUX_ATM_IDT77105_H #define LINUX_ATM_IDT77105_H -#include <asm/types.h> +#include <linux/types.h> #include <linux/atmioc.h> #include <linux/atmdev.h>
include/linux/capi.h +1 -1
@@ -12,7 +12,7 @@#ifndef __LINUX_CAPI_H__#define __LINUX_CAPI_H__ -#include <asm/types.h> +#include <linux/types.h> #include <linux/ioctl.h> #ifndef __KERNEL__#include <linux/kernelcapi.h>
include/linux/connector.h +1 -1
@@ -22,7 +22,7 @@#ifndef __CONNECTOR_H#define __CONNECTOR_H -#include <asm/types.h> +#include <linux/types.h> #define CN_IDX_CONNECTOR 0xffffffff#define CN_VAL_CONNECTOR 0xffffffff
include/linux/cyclades.h +0 -2
@@ -150,8 +150,6 @@ struct CYZ_BOOT_CTRL {* architectures and compilers. */ -#include <asm/types.h> -typedef __u64 ucdouble ;/* 64 bits, unsigned */ typedef __u32 uclong ;/* 32 bits, unsigned */ typedef __u16 ucshort ;/* 16 bits, unsigned */
include/linux/fb.h +1 -1
@@ -1,7 +1,7 @@#ifndef _LINUX_FB_H#define _LINUX_FB_H -#include <asm/types.h> +#include <linux/types.h> #include <linux/i2c.h> struct dentry ;
include/linux/if_pppol2tp.h +1 -1
@@ -15,7 +15,7 @@#ifndef __LINUX_IF_PPPOL2TP_H#define __LINUX_IF_PPPOL2TP_H -#include <asm/types.h> +#include <linux/types.h> #ifdef __KERNEL__#include <linux/in.h>
include/linux/if_pppox.h +1 -1
@@ -17,7 +17,7 @@#define __LINUX_IF_PPPOX_H -#include <asm/types.h> +#include <linux/types.h> #include <asm/byteorder.h> #ifdef __KERNEL__
include/linux/input.h +1 -1
@@ -16,7 +16,7 @@#include <sys/time.h> #include <sys/ioctl.h> #include <sys/types.h> -#include <asm/types.h> +#include <linux/types.h> #endif /*
include/linux/joystick.h +1 -1
@@ -27,7 +27,7 @@* Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic */ -#include <asm/types.h> +#include <linux/types.h> #include <linux/input.h> /*
include/linux/kvm.h +1 -1
@@ -7,7 +7,7 @@* Note: you must update KVM_API_VERSION if you change this interface. */ -#include <asm/types.h> +#include <linux/types.h> #include <linux/compiler.h> #include <linux/ioctl.h> #include <asm/kvm.h>
include/linux/loop.h +1 -1
@@ -80,7 +80,7 @@ enum { };#include <asm/posix_types.h> /* for __kernel_old_dev_t */ -#include <asm/types.h> /* for __u64 */ +#include <linux/types.h> /* for __u64 */ /* Backwards compatibility version */ struct loop_info {
include/linux/matroxfb.h +1 -1
@@ -2,7 +2,7 @@#define __LINUX_MATROXFB_H__#include <asm/ioctl.h> -#include <asm/types.h> +#include <linux/types.h> #include <linux/videodev2.h> struct matroxioc_output_mode {
include/linux/phantom.h +1 -1
@@ -10,7 +10,7 @@#ifndef __PHANTOM_H#define __PHANTOM_H -#include <asm/types.h> +#include <linux/types.h> /* PHN_(G/S)ET_REG param */ struct phm_reg {
include/linux/radeonfb.h +1 -1
@@ -2,7 +2,7 @@#define __LINUX_RADEONFB_H__#include <asm/ioctl.h> -#include <asm/types.h> +#include <linux/types.h> #define ATY_RADEON_LCD_ON 0x00000001#define ATY_RADEON_CRT_ON 0x00000002
Signature · 1 line
1.5.6.6