Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
cf6aeaef
Commit
cf6aeaef
authored
Jan 02, 2003
by
Andy Grover
Browse files
Options
Browse Files
Download
Plain Diff
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi
parents
6efc0cac
2622cf1d
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
109 additions
and
185 deletions
+109
-185
arch/i386/kernel/smpboot.c
arch/i386/kernel/smpboot.c
+4
-3
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+2
-34
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+2
-26
arch/s390x/kernel/linux32.c
arch/s390x/kernel/linux32.c
+3
-27
arch/s390x/kernel/linux32.h
arch/s390x/kernel/linux32.h
+0
-9
arch/x86_64/ia32/sys_ia32.c
arch/x86_64/ia32/sys_ia32.c
+2
-26
drivers/scsi/pcmcia/Makefile
drivers/scsi/pcmcia/Makefile
+4
-16
drivers/scsi/pcmcia/aha152x_core.c
drivers/scsi/pcmcia/aha152x_core.c
+3
-0
drivers/scsi/pcmcia/aha152x_stub.c
drivers/scsi/pcmcia/aha152x_stub.c
+5
-5
drivers/scsi/pcmcia/fdomain_core.c
drivers/scsi/pcmcia/fdomain_core.c
+2
-0
drivers/scsi/pcmcia/fdomain_stub.c
drivers/scsi/pcmcia/fdomain_stub.c
+3
-4
drivers/scsi/pcmcia/nsp_cs.c
drivers/scsi/pcmcia/nsp_cs.c
+2
-2
drivers/scsi/pcmcia/nsp_cs.h
drivers/scsi/pcmcia/nsp_cs.h
+2
-0
drivers/scsi/pcmcia/qlogic_core.c
drivers/scsi/pcmcia/qlogic_core.c
+2
-0
drivers/scsi/pcmcia/qlogic_stub.c
drivers/scsi/pcmcia/qlogic_stub.c
+2
-4
fs/compat.c
fs/compat.c
+31
-0
fs/hugetlbfs/inode.c
fs/hugetlbfs/inode.c
+1
-0
include/asm-i386/io_apic.h
include/asm-i386/io_apic.h
+2
-1
include/asm-ia64/compat.h
include/asm-ia64/compat.h
+8
-0
include/asm-ia64/ia32.h
include/asm-ia64/ia32.h
+0
-9
include/asm-ppc64/compat.h
include/asm-ppc64/compat.h
+9
-0
include/asm-ppc64/ppc32.h
include/asm-ppc64/ppc32.h
+0
-9
include/asm-s390x/compat.h
include/asm-s390x/compat.h
+9
-0
include/asm-x86_64/compat.h
include/asm-x86_64/compat.h
+8
-0
include/asm-x86_64/ia32.h
include/asm-x86_64/ia32.h
+0
-10
include/linux/compat.h
include/linux/compat.h
+3
-0
No files found.
arch/i386/kernel/smpboot.c
View file @
cf6aeaef
...
@@ -813,7 +813,8 @@ static void __init do_boot_cpu (int apicid)
...
@@ -813,7 +813,8 @@ static void __init do_boot_cpu (int apicid)
/* So we see what's up */
/* So we see what's up */
printk
(
"Booting processor %d/%d eip %lx
\n
"
,
cpu
,
apicid
,
start_eip
);
printk
(
"Booting processor %d/%d eip %lx
\n
"
,
cpu
,
apicid
,
start_eip
);
stack_start
.
esp
=
(
void
*
)
(
1024
+
PAGE_SIZE
+
(
char
*
)
idle
->
thread_info
);
/* Stack for startup_32 can be just as for start_secondary onwards */
stack_start
.
esp
=
(
void
*
)
idle
->
thread
.
esp
;
/*
/*
* This grunge runs the startup process for
* This grunge runs the startup process for
...
@@ -882,7 +883,7 @@ static void __init do_boot_cpu (int apicid)
...
@@ -882,7 +883,7 @@ static void __init do_boot_cpu (int apicid)
Dprintk
(
"CPU has booted.
\n
"
);
Dprintk
(
"CPU has booted.
\n
"
);
}
else
{
}
else
{
boot_error
=
1
;
boot_error
=
1
;
if
(
*
((
volatile
unsigned
char
*
)
phys_to_virt
(
8192
)
)
if
(
*
((
volatile
unsigned
char
*
)
trampoline_base
)
==
0xA5
)
==
0xA5
)
/* trampoline started but...? */
/* trampoline started but...? */
printk
(
"Stuck ??
\n
"
);
printk
(
"Stuck ??
\n
"
);
...
@@ -904,7 +905,7 @@ static void __init do_boot_cpu (int apicid)
...
@@ -904,7 +905,7 @@ static void __init do_boot_cpu (int apicid)
}
}
/* mark "stuck" area as not stuck */
/* mark "stuck" area as not stuck */
*
((
volatile
unsigned
long
*
)
phys_to_virt
(
8192
)
)
=
0
;
*
((
volatile
unsigned
long
*
)
trampoline_base
)
=
0
;
if
(
clustered_apic_mode
)
{
if
(
clustered_apic_mode
)
{
printk
(
"Restoring NMI vector
\n
"
);
printk
(
"Restoring NMI vector
\n
"
);
...
...
arch/ia64/ia32/sys_ia32.c
View file @
cf6aeaef
...
@@ -3017,38 +3017,6 @@ sys32_ptrace (int request, pid_t pid, unsigned int addr, unsigned int data,
...
@@ -3017,38 +3017,6 @@ sys32_ptrace (int request, pid_t pid, unsigned int addr, unsigned int data,
return
ret
;
return
ret
;
}
}
static
inline
int
get_flock32
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
if
(
!
access_ok
(
VERIFY_READ
,
ufl
,
sizeof
(
*
ufl
)))
return
-
EFAULT
;
err
=
__get_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__get_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__get_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__get_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__get_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
static
inline
int
put_flock32
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
if
(
!
access_ok
(
VERIFY_WRITE
,
ufl
,
sizeof
(
*
ufl
)))
return
-
EFAULT
;
err
=
__put_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__put_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__put_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__put_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__put_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
asmlinkage
long
asmlinkage
long
...
@@ -3062,13 +3030,13 @@ sys32_fcntl (unsigned int fd, unsigned int cmd, unsigned int arg)
...
@@ -3062,13 +3030,13 @@ sys32_fcntl (unsigned int fd, unsigned int cmd, unsigned int arg)
case
F_GETLK
:
case
F_GETLK
:
case
F_SETLK
:
case
F_SETLK
:
case
F_SETLKW
:
case
F_SETLKW
:
if
(
get_
flock32
(
&
f
,
(
struct
flock32
*
)
A
(
arg
)))
if
(
get_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
A
(
arg
)))
return
-
EFAULT
;
return
-
EFAULT
;
old_fs
=
get_fs
();
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
set_fs
(
KERNEL_DS
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
set_fs
(
old_fs
);
set_fs
(
old_fs
);
if
(
cmd
==
F_GETLK
&&
put_
flock32
(
&
f
,
(
struct
flock32
*
)
A
(
arg
)))
if
(
cmd
==
F_GETLK
&&
put_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
A
(
arg
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
ret
;
return
ret
;
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
cf6aeaef
...
@@ -247,30 +247,6 @@ asmlinkage long sys32_writev(int fd, struct iovec32 *vector, u32 count)
...
@@ -247,30 +247,6 @@ asmlinkage long sys32_writev(int fd, struct iovec32 *vector, u32 count)
return
ret
;
return
ret
;
}
}
static
inline
int
get_flock
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
err
=
get_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__get_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__get_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__get_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__get_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
static
inline
int
put_flock
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
err
=
__put_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__put_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__put_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__put_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__put_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
asmlinkage
long
sys32_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
asmlinkage
long
sys32_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
...
@@ -283,12 +259,12 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
...
@@ -283,12 +259,12 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
mm_segment_t
old_fs
;
mm_segment_t
old_fs
;
long
ret
;
long
ret
;
if
(
get_
flock
(
&
f
,
(
struct
flock32
*
)
arg
))
if
(
get_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
set_fs
(
old_fs
);
set_fs
(
old_fs
);
if
(
put_
flock
(
&
f
,
(
struct
flock32
*
)
arg
))
if
(
put_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
return
ret
;
return
ret
;
}
}
...
...
arch/s390x/kernel/linux32.c
View file @
cf6aeaef
...
@@ -833,30 +833,6 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
...
@@ -833,30 +833,6 @@ asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u
return
err
;
return
err
;
}
}
static
inline
int
get_flock
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
err
=
get_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__get_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__get_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__get_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__get_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
static
inline
int
put_flock
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
err
=
__put_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__put_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__put_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__put_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__put_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
asmlinkage
long
sys32_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
asmlinkage
long
sys32_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
...
@@ -868,7 +844,7 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
...
@@ -868,7 +844,7 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
mm_segment_t
old_fs
;
mm_segment_t
old_fs
;
long
ret
;
long
ret
;
if
(
get_
flock
(
&
f
,
(
struct
flock32
*
)
A
(
arg
)))
if
(
get_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
A
(
arg
)))
return
-
EFAULT
;
return
-
EFAULT
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
...
@@ -877,7 +853,7 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
...
@@ -877,7 +853,7 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
if
(
f
.
l_start
>=
0x7fffffffUL
||
if
(
f
.
l_start
>=
0x7fffffffUL
||
f
.
l_start
+
f
.
l_len
>=
0x7fffffffUL
)
f
.
l_start
+
f
.
l_len
>=
0x7fffffffUL
)
return
-
EOVERFLOW
;
return
-
EOVERFLOW
;
if
(
put_
flock
(
&
f
,
(
struct
flock32
*
)
A
(
arg
)))
if
(
put_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
A
(
arg
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
}
}
...
@@ -888,7 +864,7 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
...
@@ -888,7 +864,7 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
mm_segment_t
old_fs
;
mm_segment_t
old_fs
;
long
ret
;
long
ret
;
if
(
get_
flock
(
&
f
,
(
struct
flock32
*
)
A
(
arg
)))
if
(
get_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
A
(
arg
)))
return
-
EFAULT
;
return
-
EFAULT
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
...
...
arch/s390x/kernel/linux32.h
View file @
cf6aeaef
...
@@ -25,15 +25,6 @@ struct ipc_kludge_32 {
...
@@ -25,15 +25,6 @@ struct ipc_kludge_32 {
#define F_SETLK64 13
#define F_SETLK64 13
#define F_SETLKW64 14
#define F_SETLKW64 14
struct
flock32
{
short
l_type
;
short
l_whence
;
compat_off_t
l_start
;
compat_off_t
l_len
;
compat_pid_t
l_pid
;
short
__unused
;
};
struct
statfs32
{
struct
statfs32
{
__s32
f_type
;
__s32
f_type
;
__s32
f_bsize
;
__s32
f_bsize
;
...
...
arch/x86_64/ia32/sys_ia32.c
View file @
cf6aeaef
...
@@ -1066,30 +1066,6 @@ sys32_getrusage(int who, struct rusage32 *ru)
...
@@ -1066,30 +1066,6 @@ sys32_getrusage(int who, struct rusage32 *ru)
return
ret
;
return
ret
;
}
}
static
inline
int
get_flock
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
err
=
get_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__get_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__get_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__get_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__get_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
static
inline
int
put_flock
(
struct
flock
*
kfl
,
struct
flock32
*
ufl
)
{
int
err
;
err
=
__put_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__put_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__put_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__put_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__put_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
extern
asmlinkage
long
sys_fcntl
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
asmlinkage
long
sys32_fcntl64
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
asmlinkage
long
sys32_fcntl64
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
);
...
@@ -1105,13 +1081,13 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
...
@@ -1105,13 +1081,13 @@ asmlinkage long sys32_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg
mm_segment_t
old_fs
;
mm_segment_t
old_fs
;
long
ret
;
long
ret
;
if
(
get_
flock
(
&
f
,
(
struct
flock32
*
)
arg
))
if
(
get_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
ret
=
sys_fcntl
(
fd
,
cmd
,
(
unsigned
long
)
&
f
);
set_fs
(
old_fs
);
set_fs
(
old_fs
);
if
(
ret
)
return
ret
;
if
(
ret
)
return
ret
;
if
(
put_
flock
(
&
f
,
(
struct
flock32
*
)
arg
))
if
(
put_
compat_flock
(
&
f
,
(
struct
compat_flock
*
)
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
}
}
...
...
drivers/scsi/pcmcia/Makefile
View file @
cf6aeaef
#
# Makefile for the Linux PCMCIA SCSI drivers.
#
obj-y
:=
EXTRA_CFLAGS
+=
-Idrivers
/scsi
obj-m
:=
obj-n
:=
obj-
:=
vpath
%c
..
CFLAGS_aha152x.o
=
-DPCMCIA
-D__NO_VERSION__
-DAHA152X_STAT
CFLAGS_fdomain.o
=
-DPCMCIA
-D__NO_VERSION__
CFLAGS_qlogicfas.o
=
-DPCMCIA
-D__NO_VERSION__
# 16-bit client drivers
# 16-bit client drivers
obj-$(CONFIG_PCMCIA_QLOGIC)
+=
qlogic_cs.o
obj-$(CONFIG_PCMCIA_QLOGIC)
+=
qlogic_cs.o
...
@@ -19,6 +7,6 @@ obj-$(CONFIG_PCMCIA_FDOMAIN) += fdomain_cs.o
...
@@ -19,6 +7,6 @@ obj-$(CONFIG_PCMCIA_FDOMAIN) += fdomain_cs.o
obj-$(CONFIG_PCMCIA_AHA152X)
+=
aha152x_cs.o
obj-$(CONFIG_PCMCIA_AHA152X)
+=
aha152x_cs.o
obj-$(CONFIG_PCMCIA_NINJA_SCSI)
+=
nsp_cs.o
obj-$(CONFIG_PCMCIA_NINJA_SCSI)
+=
nsp_cs.o
aha152x_cs-objs
:=
aha152x_stub.o aha152x.o
aha152x_cs-objs
:=
aha152x_stub.o aha152x
_core
.o
fdomain_cs-objs
:=
fdomain_stub.o fdomain.o
fdomain_cs-objs
:=
fdomain_stub.o fdomain
_core
.o
qlogic_cs-objs
:=
qlogic_stub.o qlogic
fas
.o
qlogic_cs-objs
:=
qlogic_stub.o qlogic
_core
.o
drivers/scsi/pcmcia/aha152x_core.c
0 → 100644
View file @
cf6aeaef
#define PCMCIA 1
#define AHA152X_STAT 1
#include "aha152x.c"
drivers/scsi/pcmcia/aha152x_stub.c
View file @
cf6aeaef
...
@@ -45,11 +45,10 @@
...
@@ -45,11 +45,10 @@
#include <scsi/scsi.h>
#include <scsi/scsi.h>
#include <linux/major.h>
#include <linux/major.h>
#include <linux/blk.h>
#include <linux/blk.h>
#include <../drivers/scsi/scsi.h>
#include <../drivers/scsi/hosts.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_ioctl.h>
#include <../drivers/scsi/aha152x.h>
#include "scsi.h"
#include "hosts.h"
#include <pcmcia/version.h>
#include <pcmcia/version.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/cs_types.h>
...
@@ -112,7 +111,8 @@ static int aha152x_event(event_t event, int priority,
...
@@ -112,7 +111,8 @@ static int aha152x_event(event_t event, int priority,
static
dev_link_t
*
aha152x_attach
(
void
);
static
dev_link_t
*
aha152x_attach
(
void
);
static
void
aha152x_detach
(
dev_link_t
*
);
static
void
aha152x_detach
(
dev_link_t
*
);
static
Scsi_Host_Template
driver_template
=
AHA152X
;
#define driver_template aha152x_driver_template
extern
Scsi_Host_Template
aha152x_driver_template
;
static
dev_link_t
*
dev_list
=
NULL
;
static
dev_link_t
*
dev_list
=
NULL
;
...
...
drivers/scsi/pcmcia/fdomain_core.c
0 → 100644
View file @
cf6aeaef
#define PCMCIA 1
#include "fdomain.c"
drivers/scsi/pcmcia/fdomain_stub.c
View file @
cf6aeaef
...
@@ -42,11 +42,10 @@
...
@@ -42,11 +42,10 @@
#include <scsi/scsi.h>
#include <scsi/scsi.h>
#include <linux/major.h>
#include <linux/major.h>
#include <linux/blk.h>
#include <linux/blk.h>
#include <../drivers/scsi/scsi.h>
#include <../drivers/scsi/hosts.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_ioctl.h>
#include <../drivers/scsi/fdomain.h>
#include "scsi.h"
#include "hosts.h"
#include <pcmcia/version.h>
#include <pcmcia/version.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/cs_types.h>
...
...
drivers/scsi/pcmcia/nsp_cs.c
View file @
cf6aeaef
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
#include <asm/io.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/irq.h>
#include
<../drivers/scsi/scsi.h>
#include
"scsi.h"
#include
<../drivers/scsi/hosts.h>
#include
"hosts.h"
#include <scsi/scsi.h>
#include <scsi/scsi.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_ioctl.h>
...
...
drivers/scsi/pcmcia/nsp_cs.h
View file @
cf6aeaef
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
#ifndef __nsp_cs__
#ifndef __nsp_cs__
#define __nsp_cs__
#define __nsp_cs__
#include <linux/version.h>
/* for debugging */
/* for debugging */
//#define PCMCIA_DEBUG 9
//#define PCMCIA_DEBUG 9
...
...
drivers/scsi/pcmcia/qlogic_core.c
0 → 100644
View file @
cf6aeaef
#define PCMCIA 1
#include "qlogicfas.c"
drivers/scsi/pcmcia/qlogic_stub.c
View file @
cf6aeaef
...
@@ -43,12 +43,10 @@
...
@@ -43,12 +43,10 @@
#include <scsi/scsi.h>
#include <scsi/scsi.h>
#include <linux/major.h>
#include <linux/major.h>
#include <linux/blk.h>
#include <linux/blk.h>
#include <../drivers/scsi/scsi.h>
#include <../drivers/scsi/hosts.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_ioctl.h>
#include <../drivers/scsi/qlogicfas.h>
#include "scsi.h"
#include "hosts.h"
#include <pcmcia/version.h>
#include <pcmcia/version.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/cs_types.h>
...
...
fs/compat.c
View file @
cf6aeaef
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/time.h>
#include <linux/fs.h>
#include <linux/fs.h>
#include <linux/fcntl.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
...
@@ -70,3 +71,33 @@ asmlinkage long compat_sys_newfstat(unsigned int fd,
...
@@ -70,3 +71,33 @@ asmlinkage long compat_sys_newfstat(unsigned int fd,
error
=
cp_compat_stat
(
&
stat
,
statbuf
);
error
=
cp_compat_stat
(
&
stat
,
statbuf
);
return
error
;
return
error
;
}
}
int
get_compat_flock
(
struct
flock
*
kfl
,
struct
compat_flock
*
ufl
)
{
int
err
;
if
(
!
access_ok
(
VERIFY_READ
,
ufl
,
sizeof
(
*
ufl
)))
return
-
EFAULT
;
err
=
__get_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__get_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__get_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__get_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__get_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
int
put_compat_flock
(
struct
flock
*
kfl
,
struct
compat_flock
*
ufl
)
{
int
err
;
if
(
!
access_ok
(
VERIFY_WRITE
,
ufl
,
sizeof
(
*
ufl
)))
return
-
EFAULT
;
err
=
__put_user
(
kfl
->
l_type
,
&
ufl
->
l_type
);
err
|=
__put_user
(
kfl
->
l_whence
,
&
ufl
->
l_whence
);
err
|=
__put_user
(
kfl
->
l_start
,
&
ufl
->
l_start
);
err
|=
__put_user
(
kfl
->
l_len
,
&
ufl
->
l_len
);
err
|=
__put_user
(
kfl
->
l_pid
,
&
ufl
->
l_pid
);
return
err
;
}
fs/hugetlbfs/inode.c
View file @
cf6aeaef
...
@@ -79,6 +79,7 @@ static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
...
@@ -79,6 +79,7 @@ static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
*/
*/
static
int
hugetlbfs_readpage
(
struct
file
*
file
,
struct
page
*
page
)
static
int
hugetlbfs_readpage
(
struct
file
*
file
,
struct
page
*
page
)
{
{
unlock_page
(
page
);
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
...
include/asm-i386/io_apic.h
View file @
cf6aeaef
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
#define APIC_MISMATCH_DEBUG
#define APIC_MISMATCH_DEBUG
#define IO_APIC_BASE(idx) \
#define IO_APIC_BASE(idx) \
((volatile int *)__fix_to_virt(FIX_IO_APIC_BASE_0 + idx))
((volatile int *)(__fix_to_virt(FIX_IO_APIC_BASE_0 + idx) \
+ (mp_ioapics[idx].mpc_apicaddr & ~PAGE_MASK)))
/*
/*
* The structure of the IO-APIC:
* The structure of the IO-APIC:
...
...
include/asm-ia64/compat.h
View file @
cf6aeaef
...
@@ -53,4 +53,12 @@ struct compat_stat {
...
@@ -53,4 +53,12 @@ struct compat_stat {
u32
__unused5
;
u32
__unused5
;
};
};
struct
compat_flock
{
short
l_type
;
short
l_whence
;
compat_off_t
l_start
;
compat_off_t
l_len
;
compat_pid_t
l_pid
;
};
#endif
/* _ASM_IA64_COMPAT_H */
#endif
/* _ASM_IA64_COMPAT_H */
include/asm-ia64/ia32.h
View file @
cf6aeaef
...
@@ -29,15 +29,6 @@ typedef __kernel_fsid_t __kernel_fsid_t32;
...
@@ -29,15 +29,6 @@ typedef __kernel_fsid_t __kernel_fsid_t32;
#define IA32_PAGE_ALIGN(addr) (((addr) + IA32_PAGE_SIZE - 1) & IA32_PAGE_MASK)
#define IA32_PAGE_ALIGN(addr) (((addr) + IA32_PAGE_SIZE - 1) & IA32_PAGE_MASK)
#define IA32_CLOCKS_PER_SEC 100
/* Cast in stone for IA32 Linux */
#define IA32_CLOCKS_PER_SEC 100
/* Cast in stone for IA32 Linux */
/* fcntl.h */
struct
flock32
{
short
l_type
;
short
l_whence
;
compat_off_t
l_start
;
compat_off_t
l_len
;
compat_pid_t
l_pid
;
};
#define F_GETLK64 12
#define F_GETLK64 12
#define F_SETLK64 13
#define F_SETLK64 13
#define F_SETLKW64 14
#define F_SETLKW64 14
...
...
include/asm-ppc64/compat.h
View file @
cf6aeaef
...
@@ -55,4 +55,13 @@ struct compat_stat {
...
@@ -55,4 +55,13 @@ struct compat_stat {
u32
__unused4
[
2
];
u32
__unused4
[
2
];
};
};
struct
compat_flock
{
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_PPC64_COMPAT_H */
#endif
/* _ASM_PPC64_COMPAT_H */
include/asm-ppc64/ppc32.h
View file @
cf6aeaef
...
@@ -141,15 +141,6 @@ typedef struct sigaltstack_32 {
...
@@ -141,15 +141,6 @@ typedef struct sigaltstack_32 {
compat_size_t
ss_size
;
compat_size_t
ss_size
;
}
stack_32_t
;
}
stack_32_t
;
struct
flock32
{
short
l_type
;
short
l_whence
;
compat_off_t
l_start
;
compat_off_t
l_len
;
compat_pid_t
l_pid
;
short
__unused
;
};
struct
sigcontext32
{
struct
sigcontext32
{
unsigned
int
_unused
[
4
];
unsigned
int
_unused
[
4
];
int
signal
;
int
signal
;
...
...
include/asm-s390x/compat.h
View file @
cf6aeaef
...
@@ -58,4 +58,13 @@ struct compat_stat {
...
@@ -58,4 +58,13 @@ struct compat_stat {
u32
__unused5
;
u32
__unused5
;
};
};
struct
compat_flock
{
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_S390X_COMPAT_H */
#endif
/* _ASM_S390X_COMPAT_H */
include/asm-x86_64/compat.h
View file @
cf6aeaef
...
@@ -54,4 +54,12 @@ struct compat_stat {
...
@@ -54,4 +54,12 @@ struct compat_stat {
u32
__unused5
;
u32
__unused5
;
};
};
struct
compat_flock
{
short
l_type
;
short
l_whence
;
compat_off_t
l_start
;
compat_off_t
l_len
;
compat_pid_t
l_pid
;
};
#endif
/* _ASM_X86_64_COMPAT_H */
#endif
/* _ASM_X86_64_COMPAT_H */
include/asm-x86_64/ia32.h
View file @
cf6aeaef
...
@@ -22,16 +22,6 @@ typedef long __kernel_loff_t32;
...
@@ -22,16 +22,6 @@ typedef long __kernel_loff_t32;
typedef
__kernel_fsid_t
__kernel_fsid_t32
;
typedef
__kernel_fsid_t
__kernel_fsid_t32
;
/* fcntl.h */
struct
flock32
{
short
l_type
;
short
l_whence
;
compat_off_t
l_start
;
compat_off_t
l_len
;
compat_pid_t
l_pid
;
};
struct
ia32_flock64
{
struct
ia32_flock64
{
short
l_type
;
short
l_type
;
short
l_whence
;
short
l_whence
;
...
...
include/linux/compat.h
View file @
cf6aeaef
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <linux/stat.h>
#include <linux/stat.h>
#include <linux/param.h>
/* for HZ */
#include <linux/param.h>
/* for HZ */
#include <linux/fcntl.h>
/* for struct flock */
#include <asm/compat.h>
#include <asm/compat.h>
#define compat_jiffies_to_clock_t(x) \
#define compat_jiffies_to_clock_t(x) \
...
@@ -33,6 +34,8 @@ struct compat_tms {
...
@@ -33,6 +34,8 @@ struct compat_tms {
};
};
extern
int
cp_compat_stat
(
struct
kstat
*
,
struct
compat_stat
*
);
extern
int
cp_compat_stat
(
struct
kstat
*
,
struct
compat_stat
*
);
extern
int
get_compat_flock
(
struct
flock
*
,
struct
compat_flock
*
);
extern
int
put_compat_flock
(
struct
flock
*
,
struct
compat_flock
*
);
#endif
/* CONFIG_COMPAT */
#endif
/* CONFIG_COMPAT */
#endif
/* _LINUX_COMPAT_H */
#endif
/* _LINUX_COMPAT_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment