Skip to content

Commit

Permalink
Import 2.3.52pre3
Browse files Browse the repository at this point in the history
  • Loading branch information
linus1 committed Nov 23, 2007
1 parent 5095e7e commit a1bcda3
Show file tree
Hide file tree
Showing 88 changed files with 920 additions and 1,172 deletions.
1 change: 1 addition & 0 deletions arch/arm/kernel/arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*
* Architecture specifics
*/
#include <linux/config.h>
#include <linux/tty.h>
#include <linux/init.h>

Expand Down
3 changes: 2 additions & 1 deletion arch/i386/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ ENTRY(sys_call_table)
.long SYMBOL_NAME(sys_setfsuid) /* 215 */
.long SYMBOL_NAME(sys_setfsgid)
.long SYMBOL_NAME(sys_pivot_root)
.long SYMBOL_NAME(sys_mincore)


/*
Expand All @@ -646,6 +647,6 @@ ENTRY(sys_call_table)
* entries. Don't panic if you notice that this hasn't
* been shrunk every time we add a new system call.
*/
.rept NR_syscalls-217
.rept NR_syscalls-218
.long SYMBOL_NAME(sys_ni_syscall)
.endr
27 changes: 2 additions & 25 deletions arch/mips/kernel/irixelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,7 @@ void irix_map_prda_page (void)
/* These are the functions used to load ELF style executables and shared
* libraries. There is no binary dependent code anywhere else.
*/
static inline int do_load_irix_binary(struct linux_binprm * bprm,
struct pt_regs * regs)
static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs)
{
struct elfhdr elf_ex, interp_elf_ex;
struct dentry *interpreter_dentry;
Expand Down Expand Up @@ -748,14 +747,11 @@ static inline int do_load_irix_binary(struct linux_binprm * bprm,
sys_close(elf_exec_fileno);
current->personality = PER_IRIX32;

if (current->exec_domain && current->exec_domain->module)
__MOD_DEC_USE_COUNT(current->exec_domain->module);
put_exec_domain(current->exec_domain);
if (current->binfmt && current->binfmt->module)
__MOD_DEC_USE_COUNT(current->binfmt->module);
current->exec_domain = lookup_exec_domain(current->personality);
current->binfmt = &irix_format;
if (current->exec_domain && current->exec_domain->module)
__MOD_INC_USE_COUNT(current->exec_domain->module);
if (current->binfmt && current->binfmt->module)
__MOD_INC_USE_COUNT(current->binfmt->module);

Expand Down Expand Up @@ -823,16 +819,6 @@ static inline int do_load_irix_binary(struct linux_binprm * bprm,
goto out;
}

static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs)
{
int retval;

MOD_INC_USE_COUNT;
retval = do_load_irix_binary(bprm, regs);
MOD_DEC_USE_COUNT;
return retval;
}

/* This is really simpleminded and specialized - we are loading an
* a.out library that is given an ELF header.
*/
Expand Down Expand Up @@ -934,13 +920,11 @@ static int load_irix_library(int fd)
int retval = -EACCES;
struct file *file;

MOD_INC_USE_COUNT;
file = fget(fd);
if (file) {
retval = do_load_irix_library(file);
fput(file);
}
MOD_DEC_USE_COUNT;
return retval;
}

Expand Down Expand Up @@ -1143,10 +1127,6 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)
elf_fpregset_t fpu; /* NT_PRFPREG */
struct elf_prpsinfo psinfo; /* NT_PRPSINFO */

#ifndef CONFIG_BINFMT_IRIX
MOD_INC_USE_COUNT;
#endif

/* Count what's needed to dump, up to the limit of coredump size. */
segs = 0;
size = 0;
Expand Down Expand Up @@ -1356,9 +1336,6 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)

end_coredump:
set_fs(fs);
#ifndef CONFIG_BINFMT_IRIX
MOD_DEC_USE_COUNT;
#endif
return has_dumped;
}

Expand Down
2 changes: 2 additions & 0 deletions arch/sparc/kernel/sys_solaris.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
#include <linux/smp.h>
#include <linux/smp_lock.h>

/* CHECKME: this stuff looks rather bogus */
asmlinkage int
do_solaris_syscall (struct pt_regs *regs)
{
int ret;

lock_kernel();
put_exec_domain(current->exec_domain);
current->personality = PER_SVR4;
current->exec_domain = lookup_exec_domain(PER_SVR4);

Expand Down
48 changes: 4 additions & 44 deletions arch/sparc64/kernel/binfmt_aout32.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ if (file->f_op->llseek) { \
* dumping of the process results in another error..
*/

static inline int
do_aout32_core_dump(long signr, struct pt_regs * regs, struct file *file)
static int aout32_core_dump(long signr, struct pt_regs *regs, struct file *file)
{
mm_segment_t fs;
int has_dumped = 0;
Expand Down Expand Up @@ -143,17 +142,6 @@ do_aout32_core_dump(long signr, struct pt_regs * regs, struct file *file)
return has_dumped;
}

static int
aout32_core_dump(long signr, struct pt_regs * regs, struct file * file)
{
int retval;

MOD_INC_USE_COUNT;
retval = do_aout32_core_dump(signr, regs, file);
MOD_DEC_USE_COUNT;
return retval;
}

/*
* create_aout32_tables() parses the env- and arg-strings in new user
* memory and creates the pointer tables from them, and puts their
Expand Down Expand Up @@ -207,8 +195,7 @@ static u32 *create_aout32_tables(char * p, struct linux_binprm * bprm)
* libraries. There is no binary dependent code anywhere else.
*/

static inline int do_load_aout32_binary(struct linux_binprm * bprm,
struct pt_regs * regs)
static int load_aout32_binary(struct linux_binprm * bprm, struct pt_regs * regs)
{
struct exec ex;
struct file * file;
Expand Down Expand Up @@ -320,14 +307,11 @@ static inline int do_load_aout32_binary(struct linux_binprm * bprm,
}
}
beyond_if:
if (current->exec_domain && current->exec_domain->module)
__MOD_DEC_USE_COUNT(current->exec_domain->module);
put_exec_domain(current->exec_domain);
if (current->binfmt && current->binfmt->module)
__MOD_DEC_USE_COUNT(current->binfmt->module);
current->exec_domain = lookup_exec_domain(current->personality);
current->binfmt = &aout32_format;
if (current->exec_domain && current->exec_domain->module)
__MOD_INC_USE_COUNT(current->exec_domain->module);
if (current->binfmt && current->binfmt->module)
__MOD_INC_USE_COUNT(current->binfmt->module);

Expand Down Expand Up @@ -358,21 +342,8 @@ static inline int do_load_aout32_binary(struct linux_binprm * bprm,
return 0;
}


static int
load_aout32_binary(struct linux_binprm * bprm, struct pt_regs * regs)
{
int retval;

MOD_INC_USE_COUNT;
retval = do_load_aout32_binary(bprm, regs);
MOD_DEC_USE_COUNT;
return retval;
}

/* N.B. Move to .h file and use code in fs/binfmt_aout.c? */
static inline int
do_load_aout32_library(int fd)
static int load_aout32_library(int fd)
{
struct file * file;
struct inode * inode;
Expand Down Expand Up @@ -444,17 +415,6 @@ do_load_aout32_library(int fd)
return retval;
}

static int
load_aout32_library(int fd)
{
int retval;

MOD_INC_USE_COUNT;
retval = do_load_aout32_library(fd);
MOD_DEC_USE_COUNT;
return retval;
}

static int __init init_aout32_binfmt(void)
{
return register_binfmt(&aout32_format);
Expand Down
5 changes: 1 addition & 4 deletions arch/sparc64/solaris/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,8 @@ asmlinkage void solaris_register(void)
{
lock_kernel();
current->personality = PER_SVR4;
if (current->exec_domain && current->exec_domain->module)
__MOD_DEC_USE_COUNT(current->exec_domain->module);
put_exec_domain(current->exec_domain);
current->exec_domain = lookup_exec_domain(current->personality);
if (current->exec_domain && current->exec_domain->module)
__MOD_INC_USE_COUNT(current->exec_domain->module);
unlock_kernel();
}

Expand Down
12 changes: 4 additions & 8 deletions drivers/net/pcmcia/3c574_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,22 +920,20 @@ static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev)
"status %4.4x.\n", dev->name, (long)skb->len,
inw(ioaddr + EL3_STATUS));

netif_stop_queue (dev);

outw(skb->len, ioaddr + TX_FIFO);
outw(0, ioaddr + TX_FIFO);
outsl(ioaddr + TX_FIFO, skb->data, (skb->len+3)>>2);

dev->trans_start = jiffies;

/* TxFree appears only in Window 1, not offset 0x1c. */
if (inw(ioaddr + TxFree) > 1536) {
netif_start_queue (dev);
} else
if (inw(ioaddr + TxFree) <= 1536) {
netif_stop_queue (dev);
/* Interrupt us when the FIFO has room for max-sized packet.
The threshold is in units of dwords. */
outw(SetTxThreshold + (1536>>2), ioaddr + EL3_CMD);

}

dev_kfree_skb (skb);
pop_tx_status(dev);

Expand Down Expand Up @@ -976,8 +974,6 @@ static void el3_interrupt(int irq, void *dev_id, struct pt_regs *regs)
/* There's room in the FIFO for a full-sized packet. */
outw(AckIntr | TxAvailable, ioaddr + EL3_CMD);
netif_wake_queue (dev);
} else {
netif_stop_queue (dev);
}

if (status & TxComplete)
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ppp_synctty.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ ppp_sync_ioctl(struct tty_struct *tty, struct file *file,
break;
ap->chan.private = ap;
ap->chan.ops = &sync_ops;
err = ppp_register_channel(&ap->chan, val);
err = ppp_register_channel(&ap->chan);
if (err != 0)
break;
ap->connected = 1;
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wan/comx-hw-comx.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/delay.h>
#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/wan/comx-hw-locomx.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#define VERSION "0.13"

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
Expand All @@ -44,7 +43,6 @@
#include <asm/dma.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/netdevice.h>

#include "comx.h"
#include "z85230.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wan/comx-hw-mixcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#define VERSION "0.64"

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wan/comx-proto-fr.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#define VERSION "0.72"

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wan/comx-proto-lapb.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#define VERSION "0.80"

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wan/comx-proto-ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#define VERSION "0.23"

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wan/comx.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* tx_carrier_errors modem line status changes
* tx_fifo_errors tx underrun (locomx)
*/
#include <linux/config.h>

struct comx_protocol {
char *name;
Expand Down
4 changes: 0 additions & 4 deletions drivers/scsi/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ fi

dep_tristate ' SCSI tape support' CONFIG_CHR_DEV_ST $CONFIG_SCSI

if [ "$CONFIG_CHR_DEV_ST" != "n" ]; then
int 'Maximum number of SCSI tapes that can be loaded as modules' CONFIG_ST_EXTRA_DEVS 2
fi

dep_tristate ' SCSI CD-ROM support' CONFIG_BLK_DEV_SR $CONFIG_SCSI

if [ "$CONFIG_BLK_DEV_SR" != "n" ]; then
Expand Down
8 changes: 2 additions & 6 deletions drivers/scsi/README.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ This file contains brief information about the SCSI tape driver.
The driver is currently maintained by Kai M{kisara (email
Kai.Makisara@metla.fi)

Last modified: Sat Aug 7 13:52:16 1999 by makisara@kai.makisara.local
Last modified: Sat Mar 11 10:34:44 2000 by makisara@kai.makisara.local


BASICS
Expand Down Expand Up @@ -134,11 +134,7 @@ A small number of buffers are allocated at driver initialisation. The
maximum number of these buffers is defined by ST_MAX_BUFFERS. The
maximum can be changed with kernel or module startup options. One
buffer is allocated for each drive detected when the driver is
initialized up to the maximum. The minimum number of allocated buffers
is ST_EXTRA_DEVS (in hosts.h) (unless this number exceeds the defined
maximum). This ensures some functionality also for the drives found
after tape driver initialization (a SCSI adapter driver is loaded as a
module). The default for ST_EXTRA_DEVS is two.
initialized up to the maximum.
The driver tries to allocate new buffers at run-time if
necessary. These buffers are freed after use. If the maximum number of
Expand Down
Loading

0 comments on commit a1bcda3

Please sign in to comment.