Skip to content

Commit

Permalink
Merge commit 'tip/x86/headers' into x86/untangle2
Browse files Browse the repository at this point in the history
* commit 'tip/x86/headers': (42 commits)
  x86: fix "__udivdi3" [drivers/scsi/aha1542.ko] undefined
  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
  headers_check fix: linux/in6.h
  headers_check fix: linux/coda_psdev.h
  headers_check fix: xtensa, swab.h
  headers_check fix: powerpc, swab.h
  headers_check fix: powerpc, spu_info.h
  headers_check fix: powerpc, ps3fb.h
  headers_check fix: powerpc, kvm.h
  headers_check fix: powerpc, elf.h
  ...
  • Loading branch information
Jeremy Fitzhardinge committed Feb 13, 2009
2 parents 9b3651c + 22796b1 commit 8960f8c
Show file tree
Hide file tree
Showing 37 changed files with 101 additions and 87 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 <davidm@hpl.hp.com>
*/

#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 <suresh.b.siddha@intel.com>
*/

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

/* Architectural interrupt line count. */
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 <davidm@hpl.hp.com>, 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
2 changes: 1 addition & 1 deletion arch/x86/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static inline void *phys_to_virt(phys_addr_t address)
/*
* ISA I/O bus memory addresses are 1:1 with the physical address.
*/
#define isa_virt_to_bus virt_to_phys
#define isa_virt_to_bus (unsigned long)virt_to_phys
#define isa_page_to_bus page_to_phys
#define isa_bus_to_virt phys_to_virt

Expand Down
43 changes: 22 additions & 21 deletions arch/x86/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@

#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,12 +33,6 @@ 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 __i386__
Expand All @@ -76,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
2 changes: 1 addition & 1 deletion include/asm-m32r/swab.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ASM_M32R_SWAB_H
#define _ASM_M32R_SWAB_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 include/asm-mn10300/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef _ASM_SWAB_H
#define _ASM_SWAB_H

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

#ifdef __GNUC__

Expand Down
15 changes: 7 additions & 8 deletions include/linux/coda_psdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define CODA_PSDEV_MAJOR 67
#define MAX_CODADEVS 5 /* how many do we allow */

#ifdef __KERNEL__
struct kstatfs;

/* communication pending/processing queues */
Expand All @@ -24,7 +25,6 @@ static inline struct venus_comm *coda_vcp(struct super_block *sb)
return (struct venus_comm *)((sb)->s_fs_info);
}


/* upcalls */
int venus_rootfid(struct super_block *sb, struct CodaFid *fidp);
int venus_getattr(struct super_block *sb, struct CodaFid *fid,
Expand Down Expand Up @@ -64,6 +64,12 @@ int coda_downcall(int opcode, union outputArgs *out, struct super_block *sb);
int venus_fsync(struct super_block *sb, struct CodaFid *fid);
int venus_statfs(struct dentry *dentry, struct kstatfs *sfs);

/*
* Statistics
*/

extern struct venus_comm coda_comms[];
#endif /* __KERNEL__ */

/* messages between coda filesystem in kernel and Venus */
struct upc_req {
Expand All @@ -82,11 +88,4 @@ struct upc_req {
#define REQ_WRITE 0x4
#define REQ_ABORT 0x8


/*
* Statistics
*/

extern struct venus_comm coda_comms[];

#endif
2 changes: 1 addition & 1 deletion include/linux/in6.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ struct in6_addr
* NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined
* in network byte order, not in host byte order as are the IPv4 equivalents
*/
#ifdef __KERNEL__
extern const struct in6_addr in6addr_any;
#define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
extern const struct in6_addr in6addr_loopback;
#define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
#ifdef __KERNEL__
extern const struct in6_addr in6addr_linklocal_allnodes;
#define IN6ADDR_LINKLOCAL_ALLNODES_INIT \
{ { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
Expand Down
2 changes: 2 additions & 0 deletions include/linux/nubus.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ struct nubus_dirent
int mask;
};

#ifdef __KERNEL__
struct nubus_board {
struct nubus_board* next;
struct nubus_dev* first_dev;
Expand Down Expand Up @@ -351,6 +352,7 @@ void nubus_get_rsrc_mem(void* dest,
void nubus_get_rsrc_str(void* dest,
const struct nubus_dirent *dirent,
int maxlen);
#endif /* __KERNEL__ */

/* We'd like to get rid of this eventually. Only daynaport.c uses it now. */
static inline void *nubus_slot_addr(int slot)
Expand Down
Loading

0 comments on commit 8960f8c

Please sign in to comment.