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: (50 commits)
  x86: headers cleanup - setup.h
  emu101k1.h: fix duplicate include of <linux/types.h>
  compiler-gcc4: conditionalize #error on __KERNEL__
  remove __KERNEL_STRICT_NAMES
  make netfilter use strict integer types
  make drm headers use strict integer types
  make MTD headers use strict integer types
  make most exported headers use strict integer types
  make exported headers use strict posix types
  unconditionally include asm/types.h from linux/types.h
  make linux/types.h as assembly safe
  Neither asm/types.h nor linux/types.h is required for arch/ia64/include/asm/fpu.h
  headers_check fix cleanup: linux/reiserfs_fs.h
  headers_check fix cleanup: linux/nubus.h
  headers_check fix cleanup: linux/coda_psdev.h
  headers_check fix: x86, setup.h
  headers_check fix: x86, prctl.h
  headers_check fix: linux/reinserfs_fs.h
  headers_check fix: linux/socket.h
  headers_check fix: linux/nubus.h
  ...

Manually fix trivial conflicts in:
	include/linux/netfilter/xt_limit.h
	include/linux/netfilter/xt_statistic.h
  • Loading branch information
torvalds committed Mar 26, 2009
2 parents a841696 + 17d1404 commit ba1eb95
Show file tree
Hide file tree
Showing 120 changed files with 990 additions and 894 deletions.
2 changes: 2 additions & 0 deletions arch/alpha/include/asm/statfs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _ALPHA_STATFS_H
#define _ALPHA_STATFS_H

#include <linux/types.h>

/* Alpha is the only 64-bit platform with 32-bit statfs. And doesn't
even seem to implement statfs64 */
#define __statfs_word __u32
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/include/asm/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ALPHA_SWAB_H
#define _ALPHA_SWAB_H

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

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/a.out.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define __ARM_A_OUT_H__

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

struct exec
{
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __ASMARM_SETUP_H
#define __ASMARM_SETUP_H

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

#define COMMAND_LINE_SIZE 1024

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define __ASM_ARM_SWAB_H

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

#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
# define __SWAB_64_THRU_32__
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef __ASM_AVR32_SWAB_H
#define __ASM_AVR32_SWAB_H

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

#define __SWAB_64_THRU_32__
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _BLACKFIN_SWAB_H
#define _BLACKFIN_SWAB_H

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

#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
Expand Down
2 changes: 1 addition & 1 deletion arch/h8300/include/asm/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _H8300_SWAB_H
#define _H8300_SWAB_H

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

#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
# define __SWAB_64_THRU_32__
Expand Down
2 changes: 0 additions & 2 deletions arch/ia64/include/asm/fpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* David Mosberger-Tang <[email protected]>
*/

#include <asm/types.h>

/* floating point status register: */
#define FPSR_TRAP_VD (1 << 0) /* invalid op trap disabled */
#define FPSR_TRAP_DD (1 << 1) /* denormal trap disabled */
Expand Down
1 change: 1 addition & 0 deletions arch/ia64/include/asm/gcc_intrin.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Copyright (C) 2002,2003 Suresh Siddha <[email protected]>
*/

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

/* define this macro to get some asm stmts included in 'c' files */
Expand Down
1 change: 1 addition & 0 deletions arch/ia64/include/asm/intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#ifndef __ASSEMBLY__

#include <linux/types.h>
/* include compiler specific intrinsics */
#include <asm/ia64regs.h>
#ifdef __INTEL_COMPILER
Expand Down
3 changes: 1 addition & 2 deletions arch/ia64/include/asm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
*
*/

#include <asm/types.h>

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

/* Select x86 specific features in <linux/kvm.h> */
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* David Mosberger-Tang <[email protected]>, Hewlett-Packard Co.
*/

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

Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _ASM_SIGCONTEXT_H
#define _ASM_SIGCONTEXT_H

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

#if _MIPS_SIM == _MIPS_SIM_ABI32
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define _ASM_SWAB_H

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

#define __SWAB_64_THRU_32__

Expand Down
3 changes: 2 additions & 1 deletion arch/parisc/include/asm/pdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,11 @@
#define NUM_PDC_RESULT 32

#if !defined(__ASSEMBLY__)
#ifdef __KERNEL__

#include <linux/types.h>

#ifdef __KERNEL__

extern int pdc_type;

/* Values for pdc_type */
Expand Down
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _PARISC_SWAB_H
#define _PARISC_SWAB_H

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

#define __SWAB_64_THRU_32__
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/bootx.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef __ASM_BOOTX_H__
#define __ASM_BOOTX_H__

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

#ifdef macintosh
#include <Types.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <asm/string.h>
#endif

#include <asm/types.h>
#include <linux/types.h>
#include <asm/ptrace.h>
#include <asm/cputable.h>
#include <asm/auxvec.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef __LINUX_KVM_POWERPC_H
#define __LINUX_KVM_POWERPC_H

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

struct kvm_regs {
__u64 pc;
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/ps3fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef _ASM_POWERPC_PS3FB_H_
#define _ASM_POWERPC_PS3FB_H_

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

/* ioctl */
Expand Down
3 changes: 2 additions & 1 deletion arch/powerpc/include/asm/spu_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
#ifndef _SPU_INFO_H
#define _SPU_INFO_H

#include <linux/types.h>

#ifdef __KERNEL__
#include <asm/spu.h>
#include <linux/types.h>
#else
struct mfc_cq_sr {
__u64 mfc_cq_data0_RW;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* 2 of the License, or (at your option) any later version.
*/

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

#ifdef __GNUC__
Expand Down
4 changes: 0 additions & 4 deletions arch/x86/include/asm/prctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@
#define ARCH_GET_FS 0x1003
#define ARCH_GET_GS 0x1004

#ifdef CONFIG_X86_64
extern long sys_arch_prctl(int, unsigned long);
#endif /* CONFIG_X86_64 */

#endif /* _ASM_X86_PRCTL_H */
49 changes: 24 additions & 25 deletions arch/x86/include/asm/setup.h
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
#ifndef _ASM_X86_SETUP_H
#define _ASM_X86_SETUP_H

#ifdef __KERNEL__

#define COMMAND_LINE_SIZE 2048

#ifndef __ASSEMBLY__

/* Interrupt control for vSMPowered x86_64 systems */
void vsmp_init(void);


void setup_bios_corruption_check(void);


#ifdef CONFIG_X86_VISWS
extern void visws_early_detect(void);
extern int is_visws_box(void);
#else
static inline void visws_early_detect(void) { }
static inline int is_visws_box(void) { return 0; }
#endif

extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip);
extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip);
/*
* Any setup quirks to be performed?
*/
Expand All @@ -48,16 +33,8 @@ struct x86_quirks {
int (*update_genapic)(void);
};

extern struct x86_quirks *x86_quirks;
extern unsigned long saved_video_mode;

#ifndef CONFIG_PARAVIRT
#define paravirt_post_allocator_init() do {} while (0)
#endif
#endif /* __ASSEMBLY__ */

#ifdef __KERNEL__

#ifdef __i386__

#include <linux/pfn.h>
Expand All @@ -78,6 +55,28 @@ extern unsigned long saved_video_mode;
#ifndef __ASSEMBLY__
#include <asm/bootparam.h>

/* Interrupt control for vSMPowered x86_64 systems */
void vsmp_init(void);

void setup_bios_corruption_check(void);

#ifdef CONFIG_X86_VISWS
extern void visws_early_detect(void);
extern int is_visws_box(void);
#else
static inline void visws_early_detect(void) { }
static inline int is_visws_box(void) { return 0; }
#endif

extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip);
extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip);
extern struct x86_quirks *x86_quirks;
extern unsigned long saved_video_mode;

#ifndef CONFIG_PARAVIRT
#define paravirt_post_allocator_init() do {} while (0)
#endif

#ifndef _SETUP

/*
Expand Down
1 change: 1 addition & 0 deletions arch/x86/include/asm/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ asmlinkage long sys_vfork(struct pt_regs *);
asmlinkage long sys_execve(char __user *, char __user * __user *,
char __user * __user *,
struct pt_regs *);
long sys_arch_prctl(int, unsigned long);

/* kernel/ioport.c */
asmlinkage long sys_iopl(unsigned int, struct pt_regs *);
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef _XTENSA_SWAB_H
#define _XTENSA_SWAB_H

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

#define __SWAB_64_THRU_32__
Expand Down
2 changes: 1 addition & 1 deletion include/asm-frv/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ASM_SWAB_H
#define _ASM_SWAB_H

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

#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
# define __SWAB_64_THRU_32__
Expand Down
12 changes: 6 additions & 6 deletions include/asm-generic/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
struct flock {
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
__kernel_off_t l_start;
__kernel_off_t l_len;
__kernel_pid_t l_pid;
__ARCH_FLOCK_PAD
};
#endif
Expand All @@ -140,9 +140,9 @@ struct flock {
struct flock64 {
short l_type;
short l_whence;
loff_t l_start;
loff_t l_len;
pid_t l_pid;
__kernel_loff_t l_start;
__kernel_loff_t l_len;
__kernel_pid_t l_pid;
__ARCH_FLOCK64_PAD
};
#endif
Expand Down
14 changes: 7 additions & 7 deletions include/asm-generic/siginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ typedef union sigval {
#endif

#ifndef __ARCH_SI_UID_T
#define __ARCH_SI_UID_T uid_t
#define __ARCH_SI_UID_T __kernel_uid32_t
#endif

/*
Expand All @@ -47,13 +47,13 @@ typedef struct siginfo {

/* kill() */
struct {
pid_t _pid; /* sender's pid */
__kernel_pid_t _pid; /* sender's pid */
__ARCH_SI_UID_T _uid; /* sender's uid */
} _kill;

/* POSIX.1b timers */
struct {
timer_t _tid; /* timer id */
__kernel_timer_t _tid; /* timer id */
int _overrun; /* overrun count */
char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
sigval_t _sigval; /* same as below */
Expand All @@ -62,18 +62,18 @@ typedef struct siginfo {

/* POSIX.1b signals */
struct {
pid_t _pid; /* sender's pid */
__kernel_pid_t _pid; /* sender's pid */
__ARCH_SI_UID_T _uid; /* sender's uid */
sigval_t _sigval;
} _rt;

/* SIGCHLD */
struct {
pid_t _pid; /* which child */
__kernel_pid_t _pid; /* which child */
__ARCH_SI_UID_T _uid; /* sender's uid */
int _status; /* exit code */
clock_t _utime;
clock_t _stime;
__kernel_clock_t _utime;
__kernel_clock_t _stime;
} _sigchld;

/* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
Expand Down
Loading

0 comments on commit ba1eb95

Please sign in to comment.