Commit 9c83775c authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://kernel.bkbits.net/acme/misc-2.5

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 260aae1b 81c3f87d
......@@ -315,15 +315,9 @@ static struct atmdev_ops atmtcp_c_dev_ops = {
static struct atm_dev atmtcp_control_dev = {
&atmtcp_c_dev_ops,
NULL, /* no PHY */
"atmtcp", /* type */
999, /* dummy device number */
NULL,NULL, /* pretend not to have any VCCs */
NULL,NULL, /* no data */
{ 0 }, /* no flags */
NULL, /* no local address */
{ 0 } /* no ESI, no statistics */
.ops = &atmtcp_c_dev_ops,
.type = "atmtcp",
.number = 999,
};
......
......@@ -37,6 +37,8 @@
#define PARANOIA
#include <linux/major.h>
#include <linux/blk.h>
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
......
......@@ -268,7 +268,7 @@ static void __do_gscd_request(unsigned long dummy)
goto out;
if (req->cmd != READ) {
printk("GSCD: bad cmd %d\n", rq_data_dir(req));
printk("GSCD: bad cmd %lu\n", rq_data_dir(req));
end_request(req, 0);
goto repeat;
}
......
......@@ -141,12 +141,6 @@ static struct timer_list epca_timer;
configured.
----------------------------------------------------------------------- */
#ifdef MODULE
int init_module(void);
void cleanup_module(void);
#endif /* MODULE */
static inline void memwinon(struct board_info *b, unsigned int win);
static inline void memwinoff(struct board_info *b, unsigned int win);
static inline void globalwinon(struct channel *ch);
......@@ -1534,8 +1528,7 @@ static int pc_open(struct tty_struct *tty, struct file * filp)
} /* End pc_open */
#ifdef MODULE
/* -------------------- Begin init_module ---------------------- */
int __init init_module()
static int __init epca_module_init(void)
{ /* Begin init_module */
unsigned long flags;
......@@ -1548,8 +1541,9 @@ int __init init_module()
restore_flags(flags);
return(0);
} /* End init_module */
}
module_init(epca_module_init);
#endif
#ifdef ENABLE_PCI
......@@ -1559,8 +1553,8 @@ static struct pci_driver epca_driver;
#ifdef MODULE
/* -------------------- Begin cleanup_module ---------------------- */
void cleanup_module()
{ /* Begin cleanup_module */
static void __exit epca_module_exit(void)
{
int count, crd;
struct board_info *bd;
......@@ -1613,7 +1607,8 @@ void cleanup_module()
restore_flags(flags);
} /* End cleanup_module */
}
module_exit(epca_module_exit);
#endif /* MODULE */
/* ------------------ Begin pc_init ---------------------- */
......
......@@ -314,7 +314,7 @@ extern int zft_compressor_init(void);
/* Called by modules package when installing the driver or by kernel
* during the initialization phase
*/
static int __init zft_init(void)
int __init zft_init(void)
{
int i;
TRACE_FUN(ft_t_flow);
......
......@@ -967,7 +967,7 @@ EXPORT_SYMBOL(ip2_loadmain);
static void __init
ip2_init_board( int boardnum )
{
int i,rc;
int i;
int nports = 0, nboxes = 0;
i2ChanStrPtr pCh;
i2eBordStrPtr pB = i2BoardPtrTable[boardnum];
......
......@@ -796,7 +796,6 @@ static struct file_operations stli_fsiomem = {
* not increase character latency by much either...
*/
static struct timer_list stli_timerlist = TIMER_INITIALIZER(stli_poll, 0, 0);
};
static int stli_timeron;
......@@ -813,7 +812,7 @@ static int stli_timeron;
* Loadable module initialization stuff.
*/
int init_module()
static int __init istallion_module_init(void)
{
unsigned long flags;
......@@ -831,7 +830,7 @@ int init_module()
/*****************************************************************************/
void cleanup_module()
static void __exit istallion_module_exit(void)
{
stlibrd_t *brdp;
stliport_t *portp;
......@@ -898,6 +897,9 @@ void cleanup_module()
restore_flags(flags);
}
module_init(istallion_module_init);
module_exit(istallion_module_exit);
/*****************************************************************************/
/*
......
......@@ -6,6 +6,7 @@
Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com> */
#include <linux/config.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/kernel.h>
......
......@@ -757,7 +757,7 @@ static struct file_operations stl_fsiomem = {
* Loadable module initialization stuff.
*/
int init_module()
static int __init stallion_module_init(void)
{
unsigned long flags;
......@@ -775,7 +775,7 @@ int init_module()
/*****************************************************************************/
void cleanup_module()
static void __exit stallion_module_exit(void)
{
stlbrd_t *brdp;
stlpanel_t *panelp;
......@@ -851,6 +851,9 @@ void cleanup_module()
restore_flags(flags);
}
module_init(stallion_module_init);
module_exit(stallion_module_exit);
/*****************************************************************************/
/*
......
......@@ -345,7 +345,7 @@ static int __init sbc60xxwdt_init(void)
release_region(WDT_START,1);
err_out_region1:
release_region(WDT_STOP,1);
err_out:
/* err_out: */
return rc;
}
......
......@@ -45,14 +45,14 @@ static int buffers = 2;
/* insmod parameter: some programs (e.g. vic) do not allow to
specify the used video-mode, so you have to tell this to the
modules by hand, 0 = PAL, 1 = NTSC */
static int mode = 0;
modules by hand, 0 = PAL (default), 1 = NTSC */
static int mode;
/* debug levels: 0 -- no debugging outputs
/* debug levels: 0 -- no debugging outputs: default
1 -- prints out entering (and exiting if useful) of functions
2 -- prints out very, very detailed informations of what is going on
3 -- both of the above */
int saa7146_debug = 0; /* insmod parameter */
int saa7146_debug; /* insmod parameter */
#define dprintk if (saa7146_debug & 1) printk
#define hprintk if (saa7146_debug & 2) printk
......@@ -796,7 +796,7 @@ void remove_saa7146(struct saa7146 *saa)
static int saa7146_suspend(struct pci_dev *pdev, u32 state)
{
printk("saa7146_suspend()\n");
saa7146_core_command(((struct saa7146 *) pdev->driver_data)->i2c_bus,
saa7146_core_command(((struct saa7146 *)pci_get_drvdata(pdev))->i2c_bus,
SAA7146_SUSPEND, 0);
return 0;
}
......@@ -805,7 +805,7 @@ static int
saa7146_resume(struct pci_dev *pdev)
{
printk("saa7146_resume()\n");
saa7146_core_command(((struct saa7146 *) pdev->driver_data)->i2c_bus,
saa7146_core_command(((struct saa7146 *)pci_get_drvdata(pdev))->i2c_bus,
SAA7146_RESUME, 0);
return 0;
}
......@@ -839,7 +839,7 @@ int __devinit saa7146_init_one (struct pci_dev *pdev,
memset (saa, 0, sizeof (struct saa7146));
saa->device = pdev;
saa->device->driver_data = saa;
pci_set_drvdata(pdev, saa);
saa->card_type = card_type;
saa->dvb_adapter = adap;
......@@ -855,7 +855,7 @@ int __devinit saa7146_init_one (struct pci_dev *pdev,
static
void __devexit saa7146_remove_one (struct pci_dev *pdev)
{
struct saa7146 *saa = pdev->driver_data;
struct saa7146 *saa = pci_get_drvdata(pdev);
dprintk("saa7146_remove_one()\n");
......
......@@ -68,6 +68,7 @@ static const char *version =
#include <linux/if_ltalk.h> /* For ltalk_setup() */
#include <linux/delay.h> /* For udelay() */
#include <linux/atalk.h>
#include <linux/spinlock.h>
#include <asm/system.h>
#include <asm/bitops.h>
......@@ -320,7 +321,7 @@ static int __init cops_probe1(struct net_device *dev, int ioaddr)
lp = (struct cops_local *)dev->priv;
memset(lp, 0, sizeof(struct cops_local));
spinlock_init(&lp->lock);
spin_lock_init(&lp->lock);
/* Copy local board variable to lp struct. */
lp->board = board;
......
......@@ -1142,7 +1142,7 @@ set_multicast (struct net_device *dev)
u16 rx_mode = 0;
int i;
int bit;
int index, crc;
long index, crc;
struct dev_mc_list *mclist;
struct netdev_private *np = dev->priv;
......
......@@ -211,7 +211,6 @@ static struct sv11_device *sv11_init(int iobase, int irq)
{
struct z8530_dev *dev;
struct sv11_device *sv;
unsigned long flags;
/*
* Get the needed I/O space
......
......@@ -225,10 +225,10 @@ typedef struct fr_channel
sdla_t *card; /* -> owner */
unsigned route_flag; /* Add/Rem dest addr in route tables */
unsigned inarp; /* Inverse Arp Request status */
unsigned char inarp_ready; /* Ready to send requests */
long inarp_ready; /* Ready to send requests */
int inarp_interval; /* Time between InArp Requests */
unsigned long inarp_tick; /* InArp jiffies tick counter */
unsigned char interface_down; /* Bring interface down on disconnect */
long interface_down; /* Bring interface down on disconnect */
#if defined(LINUX_2_1) || defined(LINUX_2_4)
struct net_device_stats ifstats; /* interface statistics */
#else
......@@ -259,8 +259,8 @@ typedef struct fr_channel
u32 ip_local;
u32 ip_remote;
u8 config_dlci;
u32 unconfig_dlci;
long config_dlci;
long unconfig_dlci;
/* Whether this interface should be setup as a gateway.
* Used by dynamic route setup code */
......@@ -1459,7 +1459,8 @@ static int if_send (struct sk_buff* skb, netdevice_t* dev)
int err;
unsigned char *sendpacket;
fr508_flags_t* adptr_flags = card->flags;
int udp_type, delay_tx_queued=0;
int udp_type;
long delay_tx_queued = 0;
unsigned long smp_flags=0;
unsigned char attr = 0;
......@@ -2811,7 +2812,7 @@ static void process_route (netdevice_t *dev)
chan->name, NIPQUAD(chan->ip_remote));
}else {
printk(KERN_INFO "%s: Route Added Successfully: %u.%u.%u.%U\n",
printk(KERN_INFO "%s: Route Added Successfully: %u.%u.%u.%u\n",
card->devname,NIPQUAD(chan->ip_remote));
chan->route_flag = ROUTE_ADDED;
}
......
......@@ -503,7 +503,7 @@ static int setup (wan_device_t* wandev, wandev_conf_t* conf)
}
}else{
printk(KERN_INFO "%s: Card Configured %i or Piggybacking %i!\n",
printk(KERN_INFO "%s: Card Configured %lu or Piggybacking %i!\n",
wandev->name,card->configured,card->wandev.piggyback);
}
......
......@@ -211,8 +211,6 @@ static struct slvl_board *slvl_init(int iobase, int irq, int txdma, int rxdma, i
struct z8530_dev *dev;
struct slvl_device *sv;
struct slvl_board *b;
unsigned long flags;
int u;
/*
......
......@@ -21,6 +21,9 @@
#include <linux/parport.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <asm/current.h>
#include <asm/uaccess.h>
#define DEBUG /* undef me for production */
......
......@@ -17,6 +17,7 @@
#include <linux/config.h>
#include <linux/parport.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <asm/uaccess.h>
#undef DEBUG /* undef me for production */
......
......@@ -7,6 +7,7 @@
#include <linux/parport.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <asm/uaccess.h>
static struct {
......
......@@ -115,9 +115,6 @@
#endif
#include <linux/module.h>
#include <stdarg.h>
#include <asm/irq.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/pci.h>
......@@ -126,16 +123,18 @@
#include <linux/spinlock.h>
#include <linux/stat.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/string.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <asm/io.h>
#include "scsi.h"
#include "hosts.h"
#include <linux/slab.h>
#include "ini9100u.h"
#ifdef DEBUG_i91u
......
......@@ -35,8 +35,9 @@
****************************************************************************/
#define PCI2000_VERSION "1.20"
#include <linux/blk.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
......@@ -45,15 +46,15 @@
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/spinlock.h>
#include <asm/dma.h>
#include <asm/system.h>
#include <asm/io.h>
#include <linux/blk.h>
#include "scsi.h"
#include "hosts.h"
#include <linux/stat.h>
#include <linux/spinlock.h>
#include "pci2000.h"
#include "psi_roy.h"
......
......@@ -38,6 +38,7 @@
//#define DEBUG 1
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
......@@ -52,9 +53,11 @@
#include <linux/blk.h>
#include <linux/timer.h>
#include <linux/spinlock.h>
#include <asm/dma.h>
#include <asm/system.h>
#include <asm/io.h>
#include "scsi.h"
#include "hosts.h"
#include "pci2220i.h"
......
......@@ -26,6 +26,9 @@
#include <linux/dcache.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/sched.h>
#include <asm/current.h>
#include <asm/uaccess.h>
#ifdef DEBUG
......
......@@ -24,6 +24,8 @@
#include <linux/time.h>
#include <linux/string.h>
#include <linux/wait.h>
#include <linux/sched.h>
#include <asm/current.h>
#include <asm/uaccess.h>
/* #define DEBUG */
......
......@@ -9,6 +9,8 @@
#include "ext2.h"
#include <linux/time.h>
#include <linux/sched.h>
#include <asm/current.h>
#include <asm/uaccess.h>
......
......@@ -6,6 +6,9 @@
#ifndef __ASSEMBLY__
#include <linux/preempt.h>
#include <linux/smp.h>
#include <asm/mmu.h>
extern struct desc_struct cpu_gdt_table[NR_CPUS][GDT_ENTRIES];
......
#ifndef __i386_MMU_H
#define __i386_MMU_H
#include <asm/semaphore.h>
/*
* The i386 doesn't have a mmu context, but
* we put the segment information here.
......
......@@ -6,7 +6,7 @@
*/
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/thread_info.h>
#include <linux/prefetch.h>
#include <asm/page.h>
......
......@@ -33,7 +33,7 @@ typedef struct {
atomic_t command;
atomic_t disconnect;
atomic_t driver_busy;
unsigned char common_critical;
long common_critical;
struct timer_list *tx_timer;
struct sock *sk; /* Wanpipe Sock bind's here */
int (*func) (struct sk_buff *, netdevice_t *,
......
......@@ -358,7 +358,7 @@ typedef struct sdla
char in_isr; /* interrupt-in-service flag */
char buff_int_mode_unbusy; /* flag for carrying out dev_tint */
char dlci_int_mode_unbusy; /* flag for carrying out dev_tint */
char configured; /* flag for previous configurations */
long configured; /* flag for previous configurations */
unsigned short irq_dis_if_send_count; /* Disabling irqs in if_send*/
unsigned short irq_dis_poll_count; /* Disabling irqs in poll routine*/
......
......@@ -23,6 +23,8 @@
#include <linux/proc_fs.h>
#include <linux/list.h>
#include <linux/security.h>
#include <linux/sched.h>
#include <asm/current.h>
#include <asm/uaccess.h>
#include "util.h"
......
......@@ -736,23 +736,15 @@ static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb)
}
static struct atmdev_ops mpc_ops = { /* only send is required */
.close =mpoad_close,
.send = msg_from_mpoad
.close = mpoad_close,
.send = msg_from_mpoad
};
static struct atm_dev mpc_dev = {
&mpc_ops, /* device operations */
NULL, /* PHY operations */
"mpc", /* device type name */
42, /* device index (dummy) */
NULL, /* VCC table */
NULL, /* last VCC */
NULL, /* per-device data */
NULL, /* private PHY data */
{ 0 }, /* device flags */
NULL, /* local ATM address */
{ 0 } /* no ESI */
/* rest of the members will be 0 */
.ops = &mpc_ops,
.type = "mpc",
.number = 42,
/* members not explicitely initialised will be 0 */
};
int atm_mpoa_mpoad_attach (struct atm_vcc *vcc, int arg)
......
......@@ -19,9 +19,6 @@
extern struct socket *sockfd_lookup(int fd, int *err); /* @@@ fix this */
#define sockfd_put(sock) fput((sock)->file) /* @@@ copied because it's
__inline__ in socket.c */
#if 0 /* control */
#define DPRINTK(format,args...) printk(KERN_DEBUG format,##args)
......
......@@ -634,7 +634,7 @@ static int __init snd_opl3sa2_isapnp(int dev, opl3sa2_t *chip)
chip->dev = pnp_request_card_device(card, id->devs[0].id, NULL);
pdev = chip->dev;
if (!pdev){
snd_printdd("isapnp OPL3-SA: a card was found but it did not contain the needed devices\n",);
snd_printdd("isapnp OPL3-SA: a card was found but it did not contain the needed devices\n");
return -ENODEV;
}
sb_port[dev] = pdev->resource[0].start;
......
......@@ -226,8 +226,6 @@ void gus_delay(void)
static void gus_poke(long addr, unsigned char data)
{ /* Writes a byte to the DRAM */
unsigned long flags;
outb((0x43), u_Command);
outb((addr & 0xff), u_DataLo);
outb(((addr >> 8) & 0xff), u_DataHi);
......
......@@ -24,6 +24,7 @@
* * Older versions will cause problems.
*/
#include <linux/interrupt.h>
#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
......
......@@ -7,7 +7,7 @@ void uart401intr (int irq, void *dev_id, struct pt_regs * dummy);
/* From mpu401.c */
int probe_mpu401(struct address_info *hw_config);
void attach_mpu401(struct address_info * hw_config, struct module *owner);
int attach_mpu401(struct address_info * hw_config, struct module *owner);
void unload_mpu401(struct address_info *hw_info);
int intchk_mpu401(void *dev_id);
......
......@@ -186,6 +186,7 @@
*/
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include "sound_config.h"
......
......@@ -50,6 +50,7 @@
*/
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include "sound_config.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment