Skip to content

Commit

Permalink
Merge branch 'header-fixes-for-linus' of git://git.kernel.org/pub/scm…
Browse files Browse the repository at this point in the history
…/linux/kernel/git/tip/linux-2.6-tip

* 'header-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (90 commits)
  headers_check fix: x86, swab.h
  headers_check fix: x86, sigcontext32.h
  headers_check fix: x86, sigcontext.h
  headers_check fix: x86, ptrace-abi.h
  headers_check fix: x86, mtrr.h
  headers_check fix: x86, mce.h
  headers_check fix: x86, kvm.h
  headers_check fix: x86, e820.h
  headers_check fix: linux/rtnetlink.h
  headers_check fix: linux/nubus.h
  headers_check fix: video/uvesafb.h
  headers_check fix: video/sisfb.h
  headers_check fix: sound/hdsp.h
  headers_check fix: mtd/inftl-user.h
  headers_check fix: linux/virtio_net.h
  headers_check fix: linux/virtio_console.h
  headers_check fix: linux/virtio_blk.h
  headers_check fix: linux/videodev.h
  headers_check fix: linux/video_encoder.h
  headers_check fix: linux/video_decoder.h
  ...
  • Loading branch information
torvalds committed Jan 31, 2009
2 parents 1347e96 + 7cff360 commit 45c82b5
Show file tree
Hide file tree
Showing 90 changed files with 125 additions and 37 deletions.
1 change: 1 addition & 0 deletions arch/x86/include/asm/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#define E820_RESERVED_KERN 128

#ifndef __ASSEMBLY__
#include <linux/types.h>
struct e820entry {
__u64 addr; /* start of memory segment */
__u64 size; /* size of memory segment */
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

#include <asm/types.h>
#include <linux/types.h>
#include <linux/ioctl.h>

/* Architectural interrupt line count. */
Expand Down
5 changes: 1 addition & 4 deletions arch/x86/include/asm/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#ifdef __x86_64__

#include <linux/types.h>
#include <asm/ioctls.h>
#include <asm/types.h>

/*
* Machine Check support for x86
Expand Down Expand Up @@ -115,8 +115,6 @@ extern int mce_notify_user(void);

#endif /* !CONFIG_X86_32 */



#ifdef CONFIG_X86_MCE
extern void mcheck_init(struct cpuinfo_x86 *c);
#else
Expand All @@ -126,5 +124,4 @@ extern void stop_mce(void);
extern void restart_mce(void);

#endif /* __KERNEL__ */

#endif /* _ASM_X86_MCE_H */
1 change: 1 addition & 0 deletions arch/x86/include/asm/mtrr.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#ifndef _ASM_X86_MTRR_H
#define _ASM_X86_MTRR_H

#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/errno.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/ptrace-abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#ifdef CONFIG_X86_PTRACE_BTS

#ifndef __ASSEMBLY__
#include <asm/types.h>
#include <linux/types.h>

/* configuration/status structure used in PTRACE_BTS_CONFIG and
PTRACE_BTS_STATUS commands.
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _ASM_X86_SIGCONTEXT_H

#include <linux/compiler.h>
#include <asm/types.h>
#include <linux/types.h>

#define FP_XSTATE_MAGIC1 0x46505853U
#define FP_XSTATE_MAGIC2 0x46505845U
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/include/asm/sigcontext32.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _ASM_X86_SIGCONTEXT32_H
#define _ASM_X86_SIGCONTEXT32_H

#include <linux/types.h>

/* signal context for 32bit programs. */

#define X86_FXSR_MAGIC 0x0000
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ASM_X86_SWAB_H
#define _ASM_X86_SWAB_H

#include <asm/types.h>
#include <linux/types.h>
#include <linux/compiler.h>

static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
Expand Down
1 change: 1 addition & 0 deletions include/linux/aio_abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#ifndef __LINUX__AIO_ABI_H
#define __LINUX__AIO_ABI_H

#include <linux/types.h>
#include <asm/byteorder.h>

typedef unsigned long aio_context_t;
Expand Down
1 change: 1 addition & 0 deletions include/linux/atalk.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef __LINUX_ATALK_H__
#define __LINUX_ATALK_H__

#include <linux/types.h>
#include <asm/byteorder.h>

/*
Expand Down
1 change: 1 addition & 0 deletions include/linux/atmbr2684.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef _LINUX_ATMBR2684_H
#define _LINUX_ATMBR2684_H

#include <linux/types.h>
#include <linux/atm.h>
#include <linux/if.h> /* For IFNAMSIZ */

Expand Down
1 change: 1 addition & 0 deletions include/linux/auto_fs4.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define _LINUX_AUTO_FS4_H

/* Include common v3 definitions */
#include <linux/types.h>
#include <linux/auto_fs.h>

/* autofs v4 definitions */
Expand Down
3 changes: 2 additions & 1 deletion include/linux/bfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#ifndef _LINUX_BFS_FS_H
#define _LINUX_BFS_FS_H

#include <linux/types.h>

#define BFS_BSIZE_BITS 9
#define BFS_BSIZE (1<<BFS_BSIZE_BITS)

Expand All @@ -17,7 +19,6 @@
#define BFS_VDIR 2L
#define BFS_VREG 1L


/* BFS inode layout on disk */
struct bfs_inode {
__le16 i_ino;
Expand Down
1 change: 1 addition & 0 deletions include/linux/blktrace_api.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef BLKTRACE_H
#define BLKTRACE_H

#include <linux/types.h>
#ifdef __KERNEL__
#include <linux/blkdev.h>
#include <linux/relay.h>
Expand Down
2 changes: 2 additions & 0 deletions include/linux/can/bcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#ifndef CAN_BCM_H
#define CAN_BCM_H

#include <linux/types.h>

/**
* struct bcm_msg_head - head of messages to/from the broadcast manager
* @opcode: opcode, see enum below.
Expand Down
8 changes: 4 additions & 4 deletions include/linux/capability.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ typedef struct __user_cap_data_struct {
#define VFS_CAP_U32 VFS_CAP_U32_2
#define VFS_CAP_REVISION VFS_CAP_REVISION_2

#ifdef CONFIG_SECURITY_FILE_CAPABILITIES
extern int file_caps_enabled;
#endif

struct vfs_cap_data {
__le32 magic_etc; /* Little endian */
struct {
Expand All @@ -96,6 +92,10 @@ struct vfs_cap_data {
#define _KERNEL_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_3
#define _KERNEL_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_3

#ifdef CONFIG_SECURITY_FILE_CAPABILITIES
extern int file_caps_enabled;
#endif

typedef struct kernel_cap_struct {
__u32 cap[_KERNEL_CAPABILITY_U32S];
} kernel_cap_t;
Expand Down
1 change: 1 addition & 0 deletions include/linux/cdrom.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef _LINUX_CDROM_H
#define _LINUX_CDROM_H

#include <linux/types.h>
#include <asm/byteorder.h>

/*******************************************************
Expand Down
1 change: 1 addition & 0 deletions include/linux/cgroupstats.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef _LINUX_CGROUPSTATS_H
#define _LINUX_CGROUPSTATS_H

#include <linux/types.h>
#include <linux/taskstats.h>

/*
Expand Down
2 changes: 2 additions & 0 deletions include/linux/dlm_plock.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef __DLM_PLOCK_DOT_H__
#define __DLM_PLOCK_DOT_H__

#include <linux/types.h>

#define DLM_PLOCK_MISC_NAME "dlm_plock"

#define DLM_PLOCK_VERSION_MAJOR 1
Expand Down
2 changes: 2 additions & 0 deletions include/linux/dn.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _LINUX_DN_H
#define _LINUX_DN_H

#include <linux/types.h>

/*
DECnet Data Structures and Constants
Expand Down
5 changes: 0 additions & 5 deletions include/linux/dvb/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
#ifndef _DVBAUDIO_H_
#define _DVBAUDIO_H_

#ifdef __KERNEL__
#include <linux/types.h>
#else
#include <stdint.h>
#endif


typedef enum {
AUDIO_SOURCE_DEMUX, /* Select the demux as the main source */
Expand Down
2 changes: 1 addition & 1 deletion include/linux/dvb/dmx.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef _DVBDMX_H_
#define _DVBDMX_H_

#include <asm/types.h>
#include <linux/types.h>
#ifdef __KERNEL__
#include <linux/time.h>
#else
Expand Down
3 changes: 1 addition & 2 deletions include/linux/dvb/frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
#ifndef _DVBFRONTEND_H_
#define _DVBFRONTEND_H_

#include <asm/types.h>

#include <linux/types.h>

typedef enum fe_type {
FE_QPSK,
Expand Down
3 changes: 1 addition & 2 deletions include/linux/dvb/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
#ifndef _DVBNET_H_
#define _DVBNET_H_

#include <asm/types.h>

#include <linux/types.h>

struct dvb_net_if {
__u16 pid;
Expand Down
7 changes: 2 additions & 5 deletions include/linux/dvb/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@
#ifndef _DVBVIDEO_H_
#define _DVBVIDEO_H_

#include <linux/compiler.h>

#ifdef __KERNEL__
#include <linux/types.h>
#ifdef __KERNEL__
#include <linux/compiler.h>
#else
#include <asm/types.h>
#include <stdint.h>
#include <time.h>
#endif


typedef enum {
VIDEO_FORMAT_4_3, /* Select 4:3 format */
VIDEO_FORMAT_16_9, /* Select 16:9 format. */
Expand Down
2 changes: 2 additions & 0 deletions include/linux/edd.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#ifndef _LINUX_EDD_H
#define _LINUX_EDD_H

#include <linux/types.h>

#define EDDNR 0x1e9 /* addr of number of edd_info structs at EDDBUF
in boot_params - treat this as 1 byte */
#define EDDBUF 0xd00 /* addr of edd_info structs in boot_params */
Expand Down
1 change: 1 addition & 0 deletions include/linux/efs_fs_sb.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef __EFS_FS_SB_H__
#define __EFS_FS_SB_H__

#include <linux/types.h>
#include <linux/magic.h>

/* EFS superblock magic numbers */
Expand Down
2 changes: 2 additions & 0 deletions include/linux/elf-fdpic.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ struct elf_fdpic_params {
#define ELF_FDPIC_FLAG_PRESENT 0x80000000 /* T if this object is present */
};

#ifdef __KERNEL__
#ifdef CONFIG_MMU
extern void elf_fdpic_arch_lay_out_mm(struct elf_fdpic_params *exec_params,
struct elf_fdpic_params *interp_params,
unsigned long *start_stack,
unsigned long *start_brk);
#endif
#endif /* __KERNEL__ */

#endif /* _LINUX_ELF_FDPIC_H */
3 changes: 2 additions & 1 deletion include/linux/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ typedef struct elf64_note {
Elf64_Word n_type; /* Content type */
} Elf64_Nhdr;

#ifdef __KERNEL__
#if ELF_CLASS == ELFCLASS32

extern Elf32_Dyn _DYNAMIC [];
Expand Down Expand Up @@ -404,5 +405,5 @@ static inline int elf_coredump_extra_notes_write(struct file *file,
extern int elf_coredump_extra_notes_size(void);
extern int elf_coredump_extra_notes_write(struct file *file, loff_t *foffset);
#endif

#endif /* __KERNEL__ */
#endif /* _LINUX_ELF_H */
2 changes: 2 additions & 0 deletions include/linux/errqueue.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _LINUX_ERRQUEUE_H
#define _LINUX_ERRQUEUE_H 1

#include <linux/types.h>

struct sock_extended_err
{
__u32 ee_errno;
Expand Down
1 change: 1 addition & 0 deletions include/linux/genetlink.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef __LINUX_GENERIC_NETLINK_H
#define __LINUX_GENERIC_NETLINK_H

#include <linux/types.h>
#include <linux/netlink.h>

#define GENL_NAMSIZ 16 /* length of family name */
Expand Down
2 changes: 2 additions & 0 deletions include/linux/gfs2_ondisk.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __GFS2_ONDISK_DOT_H__
#define __GFS2_ONDISK_DOT_H__

#include <linux/types.h>

#define GFS2_MAGIC 0x01161970
#define GFS2_BASIC_BLOCK 512
#define GFS2_BASIC_BLOCK_SHIFT 9
Expand Down
2 changes: 2 additions & 0 deletions include/linux/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ dbg_hid(const char *fmt, ...)
__FILE__ , ## arg)
#endif /* HID_FF */

#ifdef __KERNEL__
#ifdef CONFIG_HID_COMPAT
#define HID_COMPAT_LOAD_DRIVER(name) \
/* prototype to avoid sparse warning */ \
Expand All @@ -804,6 +805,7 @@ EXPORT_SYMBOL(hid_compat_##name)
extern void hid_compat_##name(void); \
hid_compat_##name(); \
} while (0)
#endif /* __KERNEL__ */

#endif

2 changes: 2 additions & 0 deletions include/linux/hiddev.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
* Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
*/

#include <linux/types.h>

/*
* The event structure itself
*/
Expand Down
1 change: 1 addition & 0 deletions include/linux/icmpv6.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef _LINUX_ICMPV6_H
#define _LINUX_ICMPV6_H

#include <linux/types.h>
#include <asm/byteorder.h>

struct icmp6hdr {
Expand Down
1 change: 1 addition & 0 deletions include/linux/if_addr.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef __LINUX_IF_ADDR_H
#define __LINUX_IF_ADDR_H

#include <linux/types.h>
#include <linux/netlink.h>

struct ifaddrmsg
Expand Down
2 changes: 2 additions & 0 deletions include/linux/if_addrlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __LINUX_IF_ADDRLABEL_H
#define __LINUX_IF_ADDRLABEL_H

#include <linux/types.h>

struct ifaddrlblmsg
{
__u8 ifal_family; /* Address family */
Expand Down
1 change: 1 addition & 0 deletions include/linux/if_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#ifndef _LINUX_IF_FC_H
#define _LINUX_IF_FC_H

#include <linux/types.h>

#define FC_ALEN 6 /* Octets in one ethernet addr */
#define FC_HLEN (sizeof(struct fch_hdr)+sizeof(struct fcllc))
Expand Down
Loading

0 comments on commit 45c82b5

Please sign in to comment.