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 <jaswinderrajput@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Jaswinder Singh Rajput 2009-01-15 13:51:26 -08:00 committed by Linus Torvalds
parent 068b38c1fa
commit 00bfddaf7f
15 changed files with 13 additions and 16 deletions

View file

@ -52,7 +52,6 @@
#ifndef __KERNEL__
#include <linux/types.h>
#include <asm/types.h>
struct agp_version {
__u16 major;

View file

@ -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>

View file

@ -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>

View file

@ -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

View file

@ -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 */

View file

@ -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;

View file

@ -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>

View file

@ -17,7 +17,7 @@
#define __LINUX_IF_PPPOX_H
#include <asm/types.h>
#include <linux/types.h>
#include <asm/byteorder.h>
#ifdef __KERNEL__

View file

@ -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
/*

View file

@ -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>
/*

View file

@ -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>

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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