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
686bb5a7
Commit
686bb5a7
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 2.1.99
parent
6b6e62fd
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
142 additions
and
115 deletions
+142
-115
arch/i386/kernel/entry.S
arch/i386/kernel/entry.S
+2
-2
arch/i386/kernel/irq.c
arch/i386/kernel/irq.c
+104
-83
arch/i386/kernel/irq.h
arch/i386/kernel/irq.h
+1
-4
arch/i386/kernel/smp.c
arch/i386/kernel/smp.c
+1
-0
drivers/block/rd.c
drivers/block/rd.c
+9
-3
drivers/net/smc-ultra32.c
drivers/net/smc-ultra32.c
+2
-1
drivers/pci/quirks.c
drivers/pci/quirks.c
+1
-0
drivers/scsi/53c7,8xx.c
drivers/scsi/53c7,8xx.c
+2
-3
drivers/scsi/fdomain.c
drivers/scsi/fdomain.c
+4
-4
include/asm-i386/mtrr.h
include/asm-i386/mtrr.h
+1
-0
include/net/dst.h
include/net/dst.h
+1
-0
kernel/kmod.c
kernel/kmod.c
+1
-1
net/ipv4/icmp.c
net/ipv4/icmp.c
+5
-2
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+2
-4
net/netsyms.c
net/netsyms.c
+1
-0
net/sched/cls_fw.c
net/sched/cls_fw.c
+0
-1
net/sched/cls_route.c
net/sched/cls_route.c
+0
-1
net/sched/cls_rsvp.c
net/sched/cls_rsvp.c
+0
-1
net/sched/cls_rsvp.h
net/sched/cls_rsvp.h
+2
-0
net/sched/cls_rsvp6.c
net/sched/cls_rsvp6.c
+0
-1
net/sched/estimator.c
net/sched/estimator.c
+0
-1
net/sched/sch_teql.c
net/sched/sch_teql.c
+0
-1
net/x25/af_x25.c
net/x25/af_x25.c
+3
-2
No files found.
arch/i386/kernel/entry.S
View file @
686bb5a7
...
...
@@ -155,7 +155,7 @@ ENTRY(system_call)
jae
badsys
testb
$
0x20
,
flags
(%
ebx
)
#
PF_TRACESYS
jne
tracesys
call
SYMBOL_NAME
(
sys_call_table
)(,%
eax
,
4
)
call
*
SYMBOL_NAME
(
sys_call_table
)(,%
eax
,
4
)
movl
%
eax
,
EAX
(%
esp
)
#
save
the
return
value
ALIGN
.
globl
ret_from_sys_call
...
...
@@ -193,7 +193,7 @@ tracesys:
movl
$
-
ENOSYS
,
EAX
(%
esp
)
call
SYMBOL_NAME
(
syscall_trace
)
movl
ORIG_EAX
(%
esp
),%
eax
call
SYMBOL_NAME
(
sys_call_table
)(,%
eax
,
4
)
call
*
SYMBOL_NAME
(
sys_call_table
)(,%
eax
,
4
)
movl
%
eax
,
EAX
(%
esp
)
#
save
the
return
value
call
SYMBOL_NAME
(
syscall_trace
)
jmp
ret_from_sys_call
...
...
arch/i386/kernel/irq.c
View file @
686bb5a7
This diff is collapsed.
Click to expand it.
arch/i386/kernel/irq.h
View file @
686bb5a7
...
...
@@ -23,10 +23,7 @@ void init_pic_mode (void);
extern
unsigned
int
io_apic_irqs
;
extern
inline
int
IO_APIC_VECTOR
(
int
irq
)
{
return
(
0x51
+
(
irq
<<
3
));
}
#define IO_APIC_VECTOR(irq) (0x51+((irq)<<3))
#define MAX_IRQ_SOURCES 128
#define MAX_MP_BUSSES 32
...
...
arch/i386/kernel/smp.c
View file @
686bb5a7
...
...
@@ -28,6 +28,7 @@
* Alan Cox : Added EBDA scanning
*/
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
...
...
drivers/block/rd.c
View file @
686bb5a7
...
...
@@ -328,7 +328,7 @@ void cleanup_module(void)
#ifdef RD_LOADER
/*
* This routine tries to a ramdisk image to load, and returns the
* This routine tries to
find
a ramdisk image to load, and returns the
* number of blocks to read for a non-compressed image, 0 if the image
* is a compressed image, and -1 if an image with the right magic
* numbers could not be found.
...
...
@@ -503,15 +503,21 @@ __initfunc(static void rd_load_image(kdev_t device,int offset))
if
(
blk_size
[
MAJOR
(
device
)])
devblocks
=
blk_size
[
MAJOR
(
device
)][
MINOR
(
device
)];
#ifdef CONFIG_BLK_DEV_INITRD
if
(
MAJOR
(
device
)
==
MAJOR_NR
&&
MINOR
(
device
)
==
INITRD_MINOR
)
devblocks
=
nblocks
;
#endif
if
(
devblocks
==
0
)
{
printk
(
KERN_ERR
"RAMDISK: could not determine device size
\n
"
);
goto
done
;
}
printk
(
KERN_NOTICE
"RAMDISK: Loading %d blocks [%d disk(s)] into ram disk... "
,
nblocks
,
nblocks
/
devblocks
+
1
);
printk
(
KERN_NOTICE
"RAMDISK: Loading %d blocks [%d disk%s] into ram disk... "
,
nblocks
,
((
nblocks
-
1
)
/
devblocks
)
+
1
,
nblocks
>
devblocks
?
"s"
:
""
);
for
(
i
=
0
;
i
<
nblocks
;
i
++
)
{
if
(
i
&&
(
i
%
devblocks
==
0
))
{
printk
(
"done
.
\n
"
);
printk
(
"done
disk #%d.
\n
"
,
i
/
devblocks
);
rotate
=
0
;
invalidate_buffers
(
device
);
if
(
infile
.
f_op
->
release
)
...
...
drivers/net/smc-ultra32.c
View file @
686bb5a7
...
...
@@ -239,8 +239,9 @@ __initfunc(int ultra32_probe1(struct device *dev, int ioaddr))
static
int
ultra32_open
(
struct
device
*
dev
)
{
int
ioaddr
=
dev
->
base_addr
-
ULTRA32_NIC_OFFSET
;
/* ASIC addr */
int
irq_flags
=
(
inb
(
ioaddr
+
ULTRA32_CFG5
)
&
0x08
)
?
0
:
SA_SHIRQ
;
if
(
request_irq
(
dev
->
irq
,
ei_interrupt
,
0
,
ei_status
.
name
,
dev
))
if
(
request_irq
(
dev
->
irq
,
ei_interrupt
,
irq_flags
,
ei_status
.
name
,
dev
))
return
-
EAGAIN
;
outb
(
ULTRA32_MEMENB
,
ioaddr
);
/* Enable Shared Memory. */
...
...
drivers/pci/quirks.c
View file @
686bb5a7
...
...
@@ -11,6 +11,7 @@
* the bridge optimization, but others might appear later.
*/
#include <linux/config.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/pci.h>
...
...
drivers/scsi/53c7,8xx.c
View file @
686bb5a7
...
...
@@ -1441,9 +1441,8 @@ ncr_pci_init (Scsi_Host_Template *tpnt, int board, int chip,
&
command
))
||
(
error
=
pcibios_read_config_byte
(
bus
,
device_fn
,
PCI_CLASS_REVISION
,
&
revision
)))
{
printk
(
"scsi-ncr53c7,8xx : error %s not initializing due to error reading configuration space
\n
"
" perhaps you specified an incorrect PCI bus, device, or function.
\n
"
,
pcibios_strerror
(
error
));
printk
(
"scsi-ncr53c7,8xx : error %d not initializing due to error reading configuration space
\n
"
" perhaps you specified an incorrect PCI bus, device, or function.
\n
"
,
error
);
return
-
1
;
}
io_port
=
pdev
->
base_address
[
0
];
...
...
drivers/scsi/fdomain.c
View file @
686bb5a7
...
...
@@ -4,7 +4,7 @@
* Author: Rickard E. Faith, faith@cs.unc.edu
* Copyright 1992, 1993, 1994, 1995, 1996 Rickard E. Faith
*
*
$Id: fdomain.c,v 5.45 1996/10/02 15:13:06 root Exp $
*
Version 5.46 (23-04-1998)
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -20,8 +20,6 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 675 Mass Ave, Cambridge, MA 02139, USA.
* PCI detection rewritten by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
**************************************************************************
SUMMARY:
...
...
@@ -108,6 +106,7 @@
1.3.85 5.41 4 Apr 1996
2.0.12 5.44 8 Aug 1996 Use ID 7 for all PCI cards
2.1.1 5.45 2 Oct 1996 Update ROM accesses for 2.1.x
2.1.97 5.46 23 Apr 1998 Rewritten PCI detection routines [mj]
...
...
@@ -205,6 +204,8 @@
Thanks to Tom Cavin (tec@usa1.com) for preliminary command-line option
patches.
New PCI detection code written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
All of the alpha testers deserve much thanks.
...
...
@@ -886,7 +887,6 @@ int fdomain_16x0_detect( Scsi_Host_Template *tpnt )
#endif
#ifdef CONFIG_PCI
printk
(
"
\n
TMC-3260 36C70 PCI scsi chip detection failed.
\n
"
);
printk
(
"Send mail to mckinley@msupa.pa.msu.edu.
\n
"
);
#endif
return
0
;
/* Cannot find valid set of ports */
}
...
...
include/asm-i386/mtrr.h
View file @
686bb5a7
...
...
@@ -23,6 +23,7 @@
#ifndef _LINUX_MTRR_H
#define _LINUX_MTRR_H
#include <linux/config.h>
#include <linux/ioctl.h>
#define MTRR_IOCTL_BASE 'M'
...
...
include/net/dst.h
View file @
686bb5a7
...
...
@@ -8,6 +8,7 @@
#ifndef _NET_DST_H
#define _NET_DST_H
#include <linux/config.h>
#include <net/neighbour.h>
/*
...
...
kernel/kmod.c
View file @
686bb5a7
...
...
@@ -67,7 +67,7 @@ static int exec_modprobe(void * module_name)
}
set_fs
(
KERNEL_DS
);
/* Allow execve args to be in kernel space. */
current
->
uid
=
current
->
euid
=
0
;
current
->
uid
=
current
->
euid
=
current
->
fsuid
=
0
;
if
(
execve
(
modprobe_path
,
argv
,
envp
)
<
0
)
{
printk
(
KERN_ERR
"kmod: failed to exec %s -s -k %s, errno = %d
\n
"
,
...
...
net/ipv4/icmp.c
View file @
686bb5a7
...
...
@@ -3,7 +3,7 @@
*
* Alan Cox, <alan@cymru.net>
*
* Version: $Id: icmp.c,v 1.4
0 1998/04/11 09:38:24 freitag
Exp $
* Version: $Id: icmp.c,v 1.4
1 1998/04/29 22:12:10 alan
Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
@@ -680,7 +680,7 @@ static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, int len)
if
(
inet_addr_type
(
iph
->
daddr
)
==
RTN_BROADCAST
)
{
if
(
net_ratelimit
())
printk
(
"%s sent an invalid ICMP error to a broadcast.
\n
"
,
printk
(
KERN_WARNING
"%s sent an invalid ICMP error to a broadcast.
\n
"
,
in_ntoa
(
skb
->
nh
.
iph
->
saddr
));
return
;
}
...
...
@@ -856,6 +856,9 @@ static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, int len)
* All these rules are so bizarre, that I removed kernel addrmask
* support at all. It is wrong, it is obsolete, nobody uses it in
* any case. --ANK
*
* Furthermore you can do it with a usermode address agent program
* anyway...
*/
static
void
icmp_address
(
struct
icmphdr
*
icmph
,
struct
sk_buff
*
skb
,
int
len
)
...
...
net/ipv4/tcp_ipv4.c
View file @
686bb5a7
...
...
@@ -5,7 +5,7 @@
*
* Implementation of the Transmission Control Protocol(TCP).
*
* Version: $Id: tcp_ipv4.c,v 1.14
1 1998/04/24 19:38:19 freitag
Exp $
* Version: $Id: tcp_ipv4.c,v 1.14
2 1998/04/30 12:00:45 davem
Exp $
*
* IPv4 specific functions
*
...
...
@@ -48,6 +48,7 @@
#include <linux/config.h>
#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/fcntl.h>
#include <linux/random.h>
#include <linux/init.h>
...
...
@@ -61,9 +62,6 @@
#include <linux/inet.h>
/* That should be really in a standard kernel include file. */
#define offsetof(t,m) ((unsigned int) (&((t *)0)->m))
extern
int
sysctl_tcp_timestamps
;
extern
int
sysctl_tcp_window_scaling
;
extern
int
sysctl_tcp_sack
;
...
...
net/netsyms.c
View file @
686bb5a7
...
...
@@ -449,6 +449,7 @@ EXPORT_SYMBOL(qdisc_head);
EXPORT_SYMBOL
(
qdisc_create_dflt
);
EXPORT_SYMBOL
(
noop_qdisc
);
#ifdef CONFIG_NET_SCHED
EXPORT_SYMBOL
(
pfifo_qdisc_ops
);
EXPORT_SYMBOL
(
register_qdisc
);
EXPORT_SYMBOL
(
unregister_qdisc
);
EXPORT_SYMBOL
(
qdisc_get_rtab
);
...
...
net/sched/cls_fw.c
View file @
686bb5a7
...
...
@@ -9,7 +9,6 @@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include <linux/config.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
...
...
net/sched/cls_route.c
View file @
686bb5a7
...
...
@@ -9,7 +9,6 @@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include <linux/config.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
...
...
net/sched/cls_rsvp.c
View file @
686bb5a7
...
...
@@ -9,7 +9,6 @@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include <linux/config.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
...
...
net/sched/cls_rsvp.h
View file @
686bb5a7
...
...
@@ -66,6 +66,8 @@
powerful clsssification engine.
*/
#include <linux/config.h>
struct
rsvp_head
{
u32
tmap
[
256
/
32
];
...
...
net/sched/cls_rsvp6.c
View file @
686bb5a7
...
...
@@ -9,7 +9,6 @@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include <linux/config.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
...
...
net/sched/estimator.c
View file @
686bb5a7
...
...
@@ -12,7 +12,6 @@
#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/bitops.h>
#include <linux/config.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
...
...
net/sched/sch_teql.c
View file @
686bb5a7
...
...
@@ -8,7 +8,6 @@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include <linux/config.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
...
...
net/x25/af_x25.c
View file @
686bb5a7
...
...
@@ -1118,13 +1118,14 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
struct
x25_facilities
facilities
;
if
(
copy_from_user
(
&
facilities
,
(
void
*
)
arg
,
sizeof
(
facilities
)))
return
-
EFAULT
;
if
(
sk
->
state
!=
TCP_LISTEN
)
if
(
sk
->
state
!=
TCP_LISTEN
&&
sk
->
state
!=
TCP_CLOSE
)
return
-
EINVAL
;
if
(
facilities
.
pacsize_in
<
X25_PS16
||
facilities
.
pacsize_in
>
X25_PS4096
)
return
-
EINVAL
;
if
(
facilities
.
pacsize_out
<
X25_PS16
||
facilities
.
pacsize_out
>
X25_PS4096
)
return
-
EINVAL
;
if
(
sk
->
protinfo
.
x25
->
neighbour
->
extended
)
{
if
(
sk
->
state
==
TCP_CLOSE
||
sk
->
protinfo
.
x25
->
neighbour
->
extended
)
{
if
(
facilities
.
winsize_in
<
1
||
facilities
.
winsize_in
>
127
)
return
-
EINVAL
;
if
(
facilities
.
winsize_out
<
1
||
facilities
.
winsize_out
>
127
)
...
...
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