diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-01-06 23:30:45 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-01-06 23:30:45 -0600 |
| commit | a34aca8a2ee295cc711418518f1d8c9fe099833d (patch) | |
| tree | 78cc306e851e1c6f340cc6c235c97c23bbad928e /include | |
| parent | 199578c4252ac04f55cc4463a0eefe0c9c1a1ff3 (diff) | |
| parent | ae4d98378f651581ece95d133fd65a811e5bb8d5 (diff) | |
Merge bk://linux.bkbits.net/linux-2.5
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-alpha/uaccess.h | 17 | ||||
| -rw-r--r-- | include/asm-sparc64/compat.h | 67 | ||||
| -rw-r--r-- | include/asm-sparc64/posix_types.h | 17 | ||||
| -rw-r--r-- | include/asm-sparc64/siginfo.h | 8 | ||||
| -rw-r--r-- | include/asm-sparc64/statfs.h | 3 | ||||
| -rw-r--r-- | include/linux/agp_backend.h | 2 | ||||
| -rw-r--r-- | include/linux/kernel.h | 1 | ||||
| -rw-r--r-- | include/linux/module.h | 17 | ||||
| -rw-r--r-- | include/linux/moduleloader.h | 6 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 2 | ||||
| -rw-r--r-- | include/linux/sunrpc/svcauth.h | 1 |
11 files changed, 68 insertions, 73 deletions
diff --git a/include/asm-alpha/uaccess.h b/include/asm-alpha/uaccess.h index 5a3b8681f6af..a5985281aa7f 100644 --- a/include/asm-alpha/uaccess.h +++ b/include/asm-alpha/uaccess.h @@ -501,19 +501,14 @@ struct exception_table_entry } fixup; }; -/* Returns 0 if exception not found and fixup.unit otherwise. */ -extern unsigned search_exception_table(unsigned long); - /* Returns the new pc */ -#define fixup_exception(map_reg, fixup_unit, pc) \ +#define fixup_exception(map_reg, fixup, pc) \ ({ \ - union exception_fixup __fie_fixup; \ - __fie_fixup.unit = fixup_unit; \ - if (__fie_fixup.bits.valreg != 31) \ - map_reg(__fie_fixup.bits.valreg) = 0; \ - if (__fie_fixup.bits.errreg != 31) \ - map_reg(__fie_fixup.bits.errreg) = -EFAULT; \ - (pc) + __fie_fixup.bits.nextinsn; \ + if ((fixup)->fixup.bits.valreg != 31) \ + map_reg((fixup)->fixup.bits.valreg) = 0; \ + if ((fixup)->fixup.bits.errreg != 31) \ + map_reg((fixup)->fixup.bits.errreg) = -EFAULT; \ + (pc) + (fixup)->fixup.bits.nextinsn; \ }) diff --git a/include/asm-sparc64/compat.h b/include/asm-sparc64/compat.h index f384c300e5e3..bf8792ec92bb 100644 --- a/include/asm-sparc64/compat.h +++ b/include/asm-sparc64/compat.h @@ -5,32 +5,25 @@ */ #include <linux/types.h> -#define COMPAT_USER_HZ 100 +#define COMPAT_USER_HZ 100 typedef u32 compat_size_t; typedef s32 compat_ssize_t; typedef s32 compat_time_t; typedef s32 compat_clock_t; - -struct compat_stat { - __kernel_dev_t32 st_dev; - __kernel_ino_t32 st_ino; - __kernel_mode_t32 st_mode; - s16 st_nlink; - __kernel_uid_t32 st_uid; - __kernel_gid_t32 st_gid; - __kernel_dev_t32 st_rdev; - __kernel_off_t32 st_size; - compat_time_t st_atime; - u32 __unused1; - compat_time_t st_mtime; - u32 __unused2; - compat_time_t st_ctime; - u32 __unused3; - __kernel_off_t32 st_blksize; - __kernel_off_t32 st_blocks; - u32 __unused4[2]; -}; +typedef s32 compat_pid_t; +typedef u16 compat_uid_t; +typedef u16 compat_gid_t; +typedef u16 compat_mode_t; +typedef u32 compat_ino_t; +typedef u16 compat_dev_t; +typedef s32 compat_off_t; +typedef s64 compat_loff_t; +typedef s16 compat_nlink_t; +typedef u16 compat_ipc_pid_t; +typedef s32 compat_daddr_t; +typedef u32 compat_caddr_t; +typedef __kernel_fsid_t compat_fsid_t; struct compat_timespec { compat_time_t tv_sec; @@ -42,13 +35,33 @@ struct compat_timeval { s32 tv_usec; }; +struct compat_stat { + compat_dev_t st_dev; + compat_ino_t st_ino; + compat_mode_t st_mode; + compat_nlink_t st_nlink; + compat_uid_t st_uid; + compat_gid_t st_gid; + compat_dev_t st_rdev; + compat_off_t st_size; + compat_time_t st_atime; + u32 __unused1; + compat_time_t st_mtime; + u32 __unused2; + compat_time_t st_ctime; + u32 __unused3; + compat_off_t st_blksize; + compat_off_t st_blocks; + u32 __unused4[2]; +}; + struct compat_flock { - short l_type; - short l_whence; - __kernel_off_t32 l_start; - __kernel_off_t32 l_len; - __kernel_pid_t32 l_pid; - short __unused; + short l_type; + short l_whence; + compat_off_t l_start; + compat_off_t l_len; + compat_pid_t l_pid; + short __unused; }; #endif /* _ASM_SPARC64_COMPAT_H */ diff --git a/include/asm-sparc64/posix_types.h b/include/asm-sparc64/posix_types.h index dee9441f02d7..b39c8781fb7e 100644 --- a/include/asm-sparc64/posix_types.h +++ b/include/asm-sparc64/posix_types.h @@ -47,23 +47,6 @@ typedef struct { #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */ } __kernel_fsid_t; -/* Now 32bit compatibility types */ -typedef int __kernel_ptrdiff_t32; -typedef int __kernel_pid_t32; -typedef unsigned short __kernel_ipc_pid_t32; -typedef unsigned short __kernel_uid_t32; -typedef unsigned short __kernel_gid_t32; -typedef unsigned short __kernel_dev_t32; -typedef unsigned int __kernel_ino_t32; -typedef unsigned short __kernel_mode_t32; -typedef unsigned short __kernel_umode_t32; -typedef short __kernel_nlink_t32; -typedef int __kernel_daddr_t32; -typedef int __kernel_off_t32; -typedef unsigned int __kernel_caddr_t32; -typedef long __kernel_loff_t32; -typedef __kernel_fsid_t __kernel_fsid_t32; - #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) #undef __FD_SET diff --git a/include/asm-sparc64/siginfo.h b/include/asm-sparc64/siginfo.h index 5104c270ca25..72289f69991b 100644 --- a/include/asm-sparc64/siginfo.h +++ b/include/asm-sparc64/siginfo.h @@ -13,7 +13,7 @@ #ifdef __KERNEL__ -#include <asm/compat.h> +#include <linux/compat.h> typedef union sigval32 { int sival_int; @@ -30,7 +30,7 @@ typedef struct siginfo32 { /* kill() */ struct { - __kernel_pid_t32 _pid; /* sender's pid */ + compat_pid_t _pid; /* sender's pid */ unsigned int _uid; /* sender's uid */ } _kill; @@ -42,14 +42,14 @@ typedef struct siginfo32 { /* POSIX.1b signals */ struct { - __kernel_pid_t32 _pid; /* sender's pid */ + compat_pid_t _pid; /* sender's pid */ unsigned int _uid; /* sender's uid */ sigval_t32 _sigval; } _rt; /* SIGCHLD */ struct { - __kernel_pid_t32 _pid; /* which child */ + compat_pid_t _pid; /* which child */ unsigned int _uid; /* sender's uid */ int _status; /* exit code */ compat_clock_t _utime; diff --git a/include/asm-sparc64/statfs.h b/include/asm-sparc64/statfs.h index 5aee11569fbd..116ae1814702 100644 --- a/include/asm-sparc64/statfs.h +++ b/include/asm-sparc64/statfs.h @@ -5,6 +5,7 @@ #ifndef __KERNEL_STRICT_NAMES #include <linux/types.h> +#include <linux/compat.h> /* for compat_fsid_t */ typedef __kernel_fsid_t fsid_t; @@ -18,7 +19,7 @@ struct statfs32 { int f_bavail; int f_files; int f_ffree; - __kernel_fsid_t32 f_fsid; + compat_fsid_t f_fsid; int f_namelen; /* SunOS ignores this field. */ int f_spare[6]; }; diff --git a/include/linux/agp_backend.h b/include/linux/agp_backend.h index 90890f4e9e6d..e8fec2776624 100644 --- a/include/linux/agp_backend.h +++ b/include/linux/agp_backend.h @@ -63,7 +63,7 @@ enum chipset_type { VIA_APOLLO_KT400_3, VIA_APOLLO_PRO_266, VIA_VT8605, - VIA_P4X400, + VIA_P4X, SIS_GENERIC, AMD_GENERIC, AMD_IRONGATE, diff --git a/include/linux/kernel.h b/include/linux/kernel.h index e6b95f3bb173..7eedbb751856 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -84,6 +84,7 @@ extern unsigned long long memparse(char *ptr, char **retptr); extern void dev_probe_lock(void); extern void dev_probe_unlock(void); +extern int kernel_text_address(unsigned long addr); extern int session_of_pgrp(int pgrp); asmlinkage int printk(const char * fmt, ...) diff --git a/include/linux/module.h b/include/linux/module.h index 24fa571c4cc9..54214da9a651 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -234,6 +234,9 @@ static inline int module_is_live(struct module *mod) return mod->state != MODULE_STATE_GOING; } +/* Is this address in a module? */ +int module_text_address(unsigned long addr); + #ifdef CONFIG_MODULE_UNLOAD void __symbol_put(const char *symbol); @@ -324,6 +327,12 @@ search_module_extables(unsigned long addr) return NULL; } +/* Is this address in a module? */ +static int module_text_address(unsigned long addr) +{ + return 0; +} + /* Get/put a kernel symbol (calls should be symmetric) */ #define symbol_get(x) (&(x)) #define symbol_put(x) do { } while(0) @@ -426,14 +435,6 @@ extern int module_dummy_usage; #define GET_USE_COUNT(module) (module_dummy_usage) #define MOD_IN_USE 0 #define __MODULE_STRING(x) __stringify(x) -#define __mod_between(a_start, a_len, b_start, b_len) \ -(((a_start) >= (b_start) && (a_start) <= (b_start)+(b_len)) \ - || ((a_start)+(a_len) >= (b_start) \ - && (a_start)+(a_len) <= (b_start)+(b_len))) -#define mod_bound(p, n, m) \ -(((m)->module_init \ - && __mod_between((p),(n),(m)->module_init,(m)->init_size)) \ - || __mod_between((p),(n),(m)->module_core,(m)->core_size)) /* * The exception and symbol tables, and the lock diff --git a/include/linux/moduleloader.h b/include/linux/moduleloader.h index 5001ff39204d..991e9cdf3213 100644 --- a/include/linux/moduleloader.h +++ b/include/linux/moduleloader.h @@ -16,9 +16,9 @@ unsigned long find_symbol_internal(Elf_Shdr *sechdrs, /* These must be implemented by the specific architecture */ /* Adjust arch-specific sections. Return 0 on success. */ -int module_frob_arch_sections(const Elf_Ehdr *hdr, - const Elf_Shdr *sechdrs, - const char *secstrings, +int module_frob_arch_sections(Elf_Ehdr *hdr, + Elf_Shdr *sechdrs, + char *secstrings, struct module *mod); /* Allocator used for allocating struct module, core sections and init diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 89874d8eeee7..0cab668cbfc6 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1092,7 +1092,7 @@ #define PCI_DEVICE_ID_VIA_8233C_0 0x3109 #define PCI_DEVICE_ID_VIA_8361 0x3112 #define PCI_DEVICE_ID_VIA_8233A 0x3147 -#define PCI_DEVICE_ID_VIA_8235_0 0x3168 +#define PCI_DEVICE_ID_VIA_8754 0x3168 #define PCI_DEVICE_ID_VIA_8235 0x3177 #define PCI_DEVICE_ID_VIA_8377_0 0x3189 #define PCI_DEVICE_ID_VIA_86C100A 0x6100 diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h index 7b8d7d4d9078..95a45edc2f99 100644 --- a/include/linux/sunrpc/svcauth.h +++ b/include/linux/sunrpc/svcauth.h @@ -11,6 +11,7 @@ #ifdef __KERNEL__ +#include <linux/string.h> #include <linux/sunrpc/msg_prot.h> #include <linux/sunrpc/cache.h> #include <linux/string.h> |
