Skip to content

Commit 10db4e1

Browse files
bpowerstorvalds
authored andcommitted
headers: include linux/types.h where appropriate
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 <bobbypowers@gmail.com> Cc: Chris Ball <cjb@laptop.org> Cc: Dave Airlie <airlied@linux.ie> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d314d74 commit 10db4e1

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Diff for: include/drm/drm_mode.h

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#ifndef _DRM_MODE_H
2828
#define _DRM_MODE_H
2929

30+
#include <linux/types.h>
31+
3032
#define DRM_DISPLAY_INFO_LEN 32
3133
#define DRM_CONNECTOR_NAME_LEN 32
3234
#define DRM_DISPLAY_MODE_LEN 32

Diff for: include/linux/mmc/ioctl.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#ifndef LINUX_MMC_IOCTL_H
22
#define LINUX_MMC_IOCTL_H
3+
4+
#include <linux/types.h>
5+
36
struct mmc_ioc_cmd {
47
/* Implies direction of data. true = write, false = read */
58
int write_flag;

Diff for: include/scsi/scsi_netlink.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SCSI_NETLINK_H
2424

2525
#include <linux/netlink.h>
26-
26+
#include <linux/types.h>
2727

2828
/*
2929
* This file intended to be included by both kernel and user space

Diff for: include/sound/compress_params.h

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
#ifndef __SND_COMPRESS_PARAMS_H
5252
#define __SND_COMPRESS_PARAMS_H
5353

54+
#include <linux/types.h>
55+
5456
/* AUDIO CODECS SUPPORTED */
5557
#define MAX_NUM_CODECS 32
5658
#define MAX_NUM_CODEC_DESCRIPTORS 32

0 commit comments

Comments
 (0)