Skip to content

Commit

Permalink
headers: include linux/types.h where appropriate
Browse files Browse the repository at this point in the history
This addresses some header check warnings.  DRM headers which include
"drm.h" have been excluded, as they indirectly include types.h.

Signed-off-by: Bobby Powers <[email protected]>
Cc: Chris Ball <[email protected]>
Cc: Dave Airlie <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Takashi Iwai <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
bpowers authored and torvalds committed Mar 23, 2012
1 parent d314d74 commit 10db4e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/drm/drm_mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#ifndef _DRM_MODE_H
#define _DRM_MODE_H

#include <linux/types.h>

#define DRM_DISPLAY_INFO_LEN 32
#define DRM_CONNECTOR_NAME_LEN 32
#define DRM_DISPLAY_MODE_LEN 32
Expand Down
3 changes: 3 additions & 0 deletions include/linux/mmc/ioctl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#ifndef LINUX_MMC_IOCTL_H
#define LINUX_MMC_IOCTL_H

#include <linux/types.h>

struct mmc_ioc_cmd {
/* Implies direction of data. true = write, false = read */
int write_flag;
Expand Down
2 changes: 1 addition & 1 deletion include/scsi/scsi_netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define SCSI_NETLINK_H

#include <linux/netlink.h>

#include <linux/types.h>

/*
* This file intended to be included by both kernel and user space
Expand Down
2 changes: 2 additions & 0 deletions include/sound/compress_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
#ifndef __SND_COMPRESS_PARAMS_H
#define __SND_COMPRESS_PARAMS_H

#include <linux/types.h>

/* AUDIO CODECS SUPPORTED */
#define MAX_NUM_CODECS 32
#define MAX_NUM_CODEC_DESCRIPTORS 32
Expand Down

0 comments on commit 10db4e1

Please sign in to comment.