提交 00bfddaf 编写于 作者: J Jaswinder Singh Rajput 提交者: Linus Torvalds

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: NJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 068b38c1
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#ifndef __KERNEL__ #ifndef __KERNEL__
#include <linux/types.h> #include <linux/types.h>
#include <asm/types.h>
struct agp_version { struct agp_version {
__u16 major; __u16 major;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef LINUX_ATM_IDT77105_H #ifndef LINUX_ATM_IDT77105_H
#define LINUX_ATM_IDT77105_H #define LINUX_ATM_IDT77105_H
#include <asm/types.h> #include <linux/types.h>
#include <linux/atmioc.h> #include <linux/atmioc.h>
#include <linux/atmdev.h> #include <linux/atmdev.h>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#ifndef __LINUX_CAPI_H__ #ifndef __LINUX_CAPI_H__
#define __LINUX_CAPI_H__ #define __LINUX_CAPI_H__
#include <asm/types.h> #include <linux/types.h>
#include <linux/ioctl.h> #include <linux/ioctl.h>
#ifndef __KERNEL__ #ifndef __KERNEL__
#include <linux/kernelcapi.h> #include <linux/kernelcapi.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifndef __CONNECTOR_H #ifndef __CONNECTOR_H
#define __CONNECTOR_H #define __CONNECTOR_H
#include <asm/types.h> #include <linux/types.h>
#define CN_IDX_CONNECTOR 0xffffffff #define CN_IDX_CONNECTOR 0xffffffff
#define CN_VAL_CONNECTOR 0xffffffff #define CN_VAL_CONNECTOR 0xffffffff
......
...@@ -150,8 +150,6 @@ struct CYZ_BOOT_CTRL { ...@@ -150,8 +150,6 @@ struct CYZ_BOOT_CTRL {
* architectures and compilers. * architectures and compilers.
*/ */
#include <asm/types.h>
typedef __u64 ucdouble; /* 64 bits, unsigned */ typedef __u64 ucdouble; /* 64 bits, unsigned */
typedef __u32 uclong; /* 32 bits, unsigned */ typedef __u32 uclong; /* 32 bits, unsigned */
typedef __u16 ucshort; /* 16 bits, unsigned */ typedef __u16 ucshort; /* 16 bits, unsigned */
......
#ifndef _LINUX_FB_H #ifndef _LINUX_FB_H
#define _LINUX_FB_H #define _LINUX_FB_H
#include <asm/types.h> #include <linux/types.h>
#include <linux/i2c.h> #include <linux/i2c.h>
struct dentry; struct dentry;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#ifndef __LINUX_IF_PPPOL2TP_H #ifndef __LINUX_IF_PPPOL2TP_H
#define __LINUX_IF_PPPOL2TP_H #define __LINUX_IF_PPPOL2TP_H
#include <asm/types.h> #include <linux/types.h>
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/in.h> #include <linux/in.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define __LINUX_IF_PPPOX_H #define __LINUX_IF_PPPOX_H
#include <asm/types.h> #include <linux/types.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
#ifdef __KERNEL__ #ifdef __KERNEL__
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/types.h> #include <sys/types.h>
#include <asm/types.h> #include <linux/types.h>
#endif #endif
/* /*
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic * Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
*/ */
#include <asm/types.h> #include <linux/types.h>
#include <linux/input.h> #include <linux/input.h>
/* /*
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Note: you must update KVM_API_VERSION if you change this interface. * 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/compiler.h>
#include <linux/ioctl.h> #include <linux/ioctl.h>
#include <asm/kvm.h> #include <asm/kvm.h>
......
...@@ -80,7 +80,7 @@ enum { ...@@ -80,7 +80,7 @@ enum {
}; };
#include <asm/posix_types.h> /* for __kernel_old_dev_t */ #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 */ /* Backwards compatibility version */
struct loop_info { struct loop_info {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define __LINUX_MATROXFB_H__ #define __LINUX_MATROXFB_H__
#include <asm/ioctl.h> #include <asm/ioctl.h>
#include <asm/types.h> #include <linux/types.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
struct matroxioc_output_mode { struct matroxioc_output_mode {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#ifndef __PHANTOM_H #ifndef __PHANTOM_H
#define __PHANTOM_H #define __PHANTOM_H
#include <asm/types.h> #include <linux/types.h>
/* PHN_(G/S)ET_REG param */ /* PHN_(G/S)ET_REG param */
struct phm_reg { struct phm_reg {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define __LINUX_RADEONFB_H__ #define __LINUX_RADEONFB_H__
#include <asm/ioctl.h> #include <asm/ioctl.h>
#include <asm/types.h> #include <linux/types.h>
#define ATY_RADEON_LCD_ON 0x00000001 #define ATY_RADEON_LCD_ON 0x00000001
#define ATY_RADEON_CRT_ON 0x00000002 #define ATY_RADEON_CRT_ON 0x00000002
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册