diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/DAC960.c | 38 | ||||
-rw-r--r-- | drivers/block/DAC960.h | 14 | ||||
-rw-r--r-- | drivers/block/acsi.c | 4 | ||||
-rw-r--r-- | drivers/block/acsi_slm.c | 4 | ||||
-rw-r--r-- | drivers/block/amiflop.c | 4 | ||||
-rw-r--r-- | drivers/block/ataflop.c | 4 | ||||
-rw-r--r-- | drivers/block/cciss.c | 6 | ||||
-rw-r--r-- | drivers/block/cpqarray.c | 4 | ||||
-rw-r--r-- | drivers/block/floppy.c | 4 | ||||
-rw-r--r-- | drivers/block/loop.c | 8 | ||||
-rw-r--r-- | drivers/block/ps2esdi.c | 6 | ||||
-rw-r--r-- | drivers/block/swim3.c | 8 | ||||
-rw-r--r-- | drivers/block/swim_iop.c | 4 | ||||
-rw-r--r-- | drivers/block/sx8.c | 2 | ||||
-rw-r--r-- | drivers/block/ub.c | 6 | ||||
-rw-r--r-- | drivers/block/umem.c | 2 | ||||
-rw-r--r-- | drivers/block/xd.c | 3 | ||||
-rw-r--r-- | drivers/block/xd.h | 3 |
18 files changed, 56 insertions, 68 deletions
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index b3f639fbf220..742d07403101 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -2698,8 +2698,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device, | |||
2698 | { | 2698 | { |
2699 | struct DAC960_privdata *privdata = | 2699 | struct DAC960_privdata *privdata = |
2700 | (struct DAC960_privdata *)entry->driver_data; | 2700 | (struct DAC960_privdata *)entry->driver_data; |
2701 | irqreturn_t (*InterruptHandler)(int, void *, struct pt_regs *) = | 2701 | irq_handler_t InterruptHandler = privdata->InterruptHandler; |
2702 | privdata->InterruptHandler; | ||
2703 | unsigned int MemoryWindowSize = privdata->MemoryWindowSize; | 2702 | unsigned int MemoryWindowSize = privdata->MemoryWindowSize; |
2704 | DAC960_Controller_T *Controller = NULL; | 2703 | DAC960_Controller_T *Controller = NULL; |
2705 | unsigned char DeviceFunction = PCI_Device->devfn; | 2704 | unsigned char DeviceFunction = PCI_Device->devfn; |
@@ -5253,10 +5252,9 @@ static void DAC960_V2_ProcessCompletedCommand(DAC960_Command_T *Command) | |||
5253 | */ | 5252 | */ |
5254 | 5253 | ||
5255 | static irqreturn_t DAC960_GEM_InterruptHandler(int IRQ_Channel, | 5254 | static irqreturn_t DAC960_GEM_InterruptHandler(int IRQ_Channel, |
5256 | void *DeviceIdentifier, | 5255 | void *DeviceIdentifier) |
5257 | struct pt_regs *InterruptRegisters) | ||
5258 | { | 5256 | { |
5259 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5257 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5260 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5258 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5261 | DAC960_V2_StatusMailbox_T *NextStatusMailbox; | 5259 | DAC960_V2_StatusMailbox_T *NextStatusMailbox; |
5262 | unsigned long flags; | 5260 | unsigned long flags; |
@@ -5295,10 +5293,9 @@ static irqreturn_t DAC960_GEM_InterruptHandler(int IRQ_Channel, | |||
5295 | */ | 5293 | */ |
5296 | 5294 | ||
5297 | static irqreturn_t DAC960_BA_InterruptHandler(int IRQ_Channel, | 5295 | static irqreturn_t DAC960_BA_InterruptHandler(int IRQ_Channel, |
5298 | void *DeviceIdentifier, | 5296 | void *DeviceIdentifier) |
5299 | struct pt_regs *InterruptRegisters) | ||
5300 | { | 5297 | { |
5301 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5298 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5302 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5299 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5303 | DAC960_V2_StatusMailbox_T *NextStatusMailbox; | 5300 | DAC960_V2_StatusMailbox_T *NextStatusMailbox; |
5304 | unsigned long flags; | 5301 | unsigned long flags; |
@@ -5338,10 +5335,9 @@ static irqreturn_t DAC960_BA_InterruptHandler(int IRQ_Channel, | |||
5338 | */ | 5335 | */ |
5339 | 5336 | ||
5340 | static irqreturn_t DAC960_LP_InterruptHandler(int IRQ_Channel, | 5337 | static irqreturn_t DAC960_LP_InterruptHandler(int IRQ_Channel, |
5341 | void *DeviceIdentifier, | 5338 | void *DeviceIdentifier) |
5342 | struct pt_regs *InterruptRegisters) | ||
5343 | { | 5339 | { |
5344 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5340 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5345 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5341 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5346 | DAC960_V2_StatusMailbox_T *NextStatusMailbox; | 5342 | DAC960_V2_StatusMailbox_T *NextStatusMailbox; |
5347 | unsigned long flags; | 5343 | unsigned long flags; |
@@ -5381,10 +5377,9 @@ static irqreturn_t DAC960_LP_InterruptHandler(int IRQ_Channel, | |||
5381 | */ | 5377 | */ |
5382 | 5378 | ||
5383 | static irqreturn_t DAC960_LA_InterruptHandler(int IRQ_Channel, | 5379 | static irqreturn_t DAC960_LA_InterruptHandler(int IRQ_Channel, |
5384 | void *DeviceIdentifier, | 5380 | void *DeviceIdentifier) |
5385 | struct pt_regs *InterruptRegisters) | ||
5386 | { | 5381 | { |
5387 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5382 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5388 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5383 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5389 | DAC960_V1_StatusMailbox_T *NextStatusMailbox; | 5384 | DAC960_V1_StatusMailbox_T *NextStatusMailbox; |
5390 | unsigned long flags; | 5385 | unsigned long flags; |
@@ -5420,10 +5415,9 @@ static irqreturn_t DAC960_LA_InterruptHandler(int IRQ_Channel, | |||
5420 | */ | 5415 | */ |
5421 | 5416 | ||
5422 | static irqreturn_t DAC960_PG_InterruptHandler(int IRQ_Channel, | 5417 | static irqreturn_t DAC960_PG_InterruptHandler(int IRQ_Channel, |
5423 | void *DeviceIdentifier, | 5418 | void *DeviceIdentifier) |
5424 | struct pt_regs *InterruptRegisters) | ||
5425 | { | 5419 | { |
5426 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5420 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5427 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5421 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5428 | DAC960_V1_StatusMailbox_T *NextStatusMailbox; | 5422 | DAC960_V1_StatusMailbox_T *NextStatusMailbox; |
5429 | unsigned long flags; | 5423 | unsigned long flags; |
@@ -5459,10 +5453,9 @@ static irqreturn_t DAC960_PG_InterruptHandler(int IRQ_Channel, | |||
5459 | */ | 5453 | */ |
5460 | 5454 | ||
5461 | static irqreturn_t DAC960_PD_InterruptHandler(int IRQ_Channel, | 5455 | static irqreturn_t DAC960_PD_InterruptHandler(int IRQ_Channel, |
5462 | void *DeviceIdentifier, | 5456 | void *DeviceIdentifier) |
5463 | struct pt_regs *InterruptRegisters) | ||
5464 | { | 5457 | { |
5465 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5458 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5466 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5459 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5467 | unsigned long flags; | 5460 | unsigned long flags; |
5468 | 5461 | ||
@@ -5498,10 +5491,9 @@ static irqreturn_t DAC960_PD_InterruptHandler(int IRQ_Channel, | |||
5498 | */ | 5491 | */ |
5499 | 5492 | ||
5500 | static irqreturn_t DAC960_P_InterruptHandler(int IRQ_Channel, | 5493 | static irqreturn_t DAC960_P_InterruptHandler(int IRQ_Channel, |
5501 | void *DeviceIdentifier, | 5494 | void *DeviceIdentifier) |
5502 | struct pt_regs *InterruptRegisters) | ||
5503 | { | 5495 | { |
5504 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) DeviceIdentifier; | 5496 | DAC960_Controller_T *Controller = DeviceIdentifier; |
5505 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; | 5497 | void __iomem *ControllerBaseAddress = Controller->BaseAddress; |
5506 | unsigned long flags; | 5498 | unsigned long flags; |
5507 | 5499 | ||
diff --git a/drivers/block/DAC960.h b/drivers/block/DAC960.h index f9217c34bc2b..cec539e601fe 100644 --- a/drivers/block/DAC960.h +++ b/drivers/block/DAC960.h | |||
@@ -2175,7 +2175,7 @@ static char | |||
2175 | struct DAC960_privdata { | 2175 | struct DAC960_privdata { |
2176 | DAC960_HardwareType_T HardwareType; | 2176 | DAC960_HardwareType_T HardwareType; |
2177 | DAC960_FirmwareType_T FirmwareType; | 2177 | DAC960_FirmwareType_T FirmwareType; |
2178 | irqreturn_t (*InterruptHandler)(int, void *, struct pt_regs *); | 2178 | irq_handler_t InterruptHandler; |
2179 | unsigned int MemoryWindowSize; | 2179 | unsigned int MemoryWindowSize; |
2180 | }; | 2180 | }; |
2181 | 2181 | ||
@@ -4412,12 +4412,12 @@ static void DAC960_FinalizeController(DAC960_Controller_T *); | |||
4412 | static void DAC960_V1_QueueReadWriteCommand(DAC960_Command_T *); | 4412 | static void DAC960_V1_QueueReadWriteCommand(DAC960_Command_T *); |
4413 | static void DAC960_V2_QueueReadWriteCommand(DAC960_Command_T *); | 4413 | static void DAC960_V2_QueueReadWriteCommand(DAC960_Command_T *); |
4414 | static void DAC960_RequestFunction(struct request_queue *); | 4414 | static void DAC960_RequestFunction(struct request_queue *); |
4415 | static irqreturn_t DAC960_BA_InterruptHandler(int, void *, struct pt_regs *); | 4415 | static irqreturn_t DAC960_BA_InterruptHandler(int, void *); |
4416 | static irqreturn_t DAC960_LP_InterruptHandler(int, void *, struct pt_regs *); | 4416 | static irqreturn_t DAC960_LP_InterruptHandler(int, void *); |
4417 | static irqreturn_t DAC960_LA_InterruptHandler(int, void *, struct pt_regs *); | 4417 | static irqreturn_t DAC960_LA_InterruptHandler(int, void *); |
4418 | static irqreturn_t DAC960_PG_InterruptHandler(int, void *, struct pt_regs *); | 4418 | static irqreturn_t DAC960_PG_InterruptHandler(int, void *); |
4419 | static irqreturn_t DAC960_PD_InterruptHandler(int, void *, struct pt_regs *); | 4419 | static irqreturn_t DAC960_PD_InterruptHandler(int, void *); |
4420 | static irqreturn_t DAC960_P_InterruptHandler(int, void *, struct pt_regs *); | 4420 | static irqreturn_t DAC960_P_InterruptHandler(int, void *); |
4421 | static void DAC960_V1_QueueMonitoringCommand(DAC960_Command_T *); | 4421 | static void DAC960_V1_QueueMonitoringCommand(DAC960_Command_T *); |
4422 | static void DAC960_V2_QueueMonitoringCommand(DAC960_Command_T *); | 4422 | static void DAC960_V2_QueueMonitoringCommand(DAC960_Command_T *); |
4423 | static void DAC960_MonitoringTimerFunction(unsigned long); | 4423 | static void DAC960_MonitoringTimerFunction(unsigned long); |
diff --git a/drivers/block/acsi.c b/drivers/block/acsi.c index 0b80fbb8dbfd..706cdc6a69ec 100644 --- a/drivers/block/acsi.c +++ b/drivers/block/acsi.c | |||
@@ -346,7 +346,7 @@ static int acsicmd_dma( const char *cmd, char *buffer, int blocks, int | |||
346 | rwflag, int enable); | 346 | rwflag, int enable); |
347 | static int acsi_reqsense( char *buffer, int targ, int lun); | 347 | static int acsi_reqsense( char *buffer, int targ, int lun); |
348 | static void acsi_print_error(const unsigned char *errblk, struct acsi_info_struct *aip); | 348 | static void acsi_print_error(const unsigned char *errblk, struct acsi_info_struct *aip); |
349 | static irqreturn_t acsi_interrupt (int irq, void *data, struct pt_regs *fp); | 349 | static irqreturn_t acsi_interrupt (int irq, void *data); |
350 | static void unexpected_acsi_interrupt( void ); | 350 | static void unexpected_acsi_interrupt( void ); |
351 | static void bad_rw_intr( void ); | 351 | static void bad_rw_intr( void ); |
352 | static void read_intr( void ); | 352 | static void read_intr( void ); |
@@ -726,7 +726,7 @@ static void acsi_print_error(const unsigned char *errblk, struct acsi_info_struc | |||
726 | * | 726 | * |
727 | *******************************************************************/ | 727 | *******************************************************************/ |
728 | 728 | ||
729 | static irqreturn_t acsi_interrupt(int irq, void *data, struct pt_regs *fp ) | 729 | static irqreturn_t acsi_interrupt(int irq, void *data ) |
730 | 730 | ||
731 | { void (*acsi_irq_handler)(void) = do_acsi; | 731 | { void (*acsi_irq_handler)(void) = do_acsi; |
732 | 732 | ||
diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c index 4030a8fd1187..8e41c87b026e 100644 --- a/drivers/block/acsi_slm.c +++ b/drivers/block/acsi_slm.c | |||
@@ -246,7 +246,7 @@ static int slm_getstats( char *buffer, int device ); | |||
246 | static ssize_t slm_read( struct file* file, char *buf, size_t count, loff_t | 246 | static ssize_t slm_read( struct file* file, char *buf, size_t count, loff_t |
247 | *ppos ); | 247 | *ppos ); |
248 | static void start_print( int device ); | 248 | static void start_print( int device ); |
249 | static irqreturn_t slm_interrupt(int irc, void *data, struct pt_regs *fp); | 249 | static irqreturn_t slm_interrupt(int irc, void *data); |
250 | static void slm_test_ready( unsigned long dummy ); | 250 | static void slm_test_ready( unsigned long dummy ); |
251 | static void set_dma_addr( unsigned long paddr ); | 251 | static void set_dma_addr( unsigned long paddr ); |
252 | static unsigned long get_dma_addr( void ); | 252 | static unsigned long get_dma_addr( void ); |
@@ -452,7 +452,7 @@ static void start_print( int device ) | |||
452 | 452 | ||
453 | /* Only called when an error happened or at the end of a page */ | 453 | /* Only called when an error happened or at the end of a page */ |
454 | 454 | ||
455 | static irqreturn_t slm_interrupt(int irc, void *data, struct pt_regs *fp) | 455 | static irqreturn_t slm_interrupt(int irc, void *data) |
456 | 456 | ||
457 | { unsigned long addr; | 457 | { unsigned long addr; |
458 | int stat; | 458 | int stat; |
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 2641597c6549..5d254b714509 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c | |||
@@ -209,7 +209,7 @@ static int fd_device[4] = { 0, 0, 0, 0 }; | |||
209 | 209 | ||
210 | /* Milliseconds timer */ | 210 | /* Milliseconds timer */ |
211 | 211 | ||
212 | static irqreturn_t ms_isr(int irq, void *dummy, struct pt_regs *fp) | 212 | static irqreturn_t ms_isr(int irq, void *dummy) |
213 | { | 213 | { |
214 | ms_busy = -1; | 214 | ms_busy = -1; |
215 | wake_up(&ms_wait); | 215 | wake_up(&ms_wait); |
@@ -560,7 +560,7 @@ static unsigned long fd_get_drive_id(int drive) | |||
560 | return (id); | 560 | return (id); |
561 | } | 561 | } |
562 | 562 | ||
563 | static irqreturn_t fd_block_done(int irq, void *dummy, struct pt_regs *fp) | 563 | static irqreturn_t fd_block_done(int irq, void *dummy) |
564 | { | 564 | { |
565 | if (block_flag) | 565 | if (block_flag) |
566 | custom.dsklen = 0x4000; | 566 | custom.dsklen = 0x4000; |
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c index c39650920bdf..14d6b9492750 100644 --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c | |||
@@ -342,7 +342,7 @@ static void fd_select_drive( int drive ); | |||
342 | static void fd_deselect( void ); | 342 | static void fd_deselect( void ); |
343 | static void fd_motor_off_timer( unsigned long dummy ); | 343 | static void fd_motor_off_timer( unsigned long dummy ); |
344 | static void check_change( unsigned long dummy ); | 344 | static void check_change( unsigned long dummy ); |
345 | static irqreturn_t floppy_irq (int irq, void *dummy, struct pt_regs *fp); | 345 | static irqreturn_t floppy_irq (int irq, void *dummy); |
346 | static void fd_error( void ); | 346 | static void fd_error( void ); |
347 | static int do_format(int drive, int type, struct atari_format_descr *desc); | 347 | static int do_format(int drive, int type, struct atari_format_descr *desc); |
348 | static void do_fd_action( int drive ); | 348 | static void do_fd_action( int drive ); |
@@ -573,7 +573,7 @@ static inline void copy_buffer(void *from, void *to) | |||
573 | 573 | ||
574 | static void (*FloppyIRQHandler)( int status ) = NULL; | 574 | static void (*FloppyIRQHandler)( int status ) = NULL; |
575 | 575 | ||
576 | static irqreturn_t floppy_irq (int irq, void *dummy, struct pt_regs *fp) | 576 | static irqreturn_t floppy_irq (int irq, void *dummy) |
577 | { | 577 | { |
578 | unsigned char status; | 578 | unsigned char status; |
579 | void (*handler)( int ); | 579 | void (*handler)( int ); |
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 36b88f6c5f82..dcccaf2782f3 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -130,7 +130,7 @@ static struct board_type products[] = { | |||
130 | static ctlr_info_t *hba[MAX_CTLR]; | 130 | static ctlr_info_t *hba[MAX_CTLR]; |
131 | 131 | ||
132 | static void do_cciss_request(request_queue_t *q); | 132 | static void do_cciss_request(request_queue_t *q); |
133 | static irqreturn_t do_cciss_intr(int irq, void *dev_id, struct pt_regs *regs); | 133 | static irqreturn_t do_cciss_intr(int irq, void *dev_id); |
134 | static int cciss_open(struct inode *inode, struct file *filep); | 134 | static int cciss_open(struct inode *inode, struct file *filep); |
135 | static int cciss_release(struct inode *inode, struct file *filep); | 135 | static int cciss_release(struct inode *inode, struct file *filep); |
136 | static int cciss_ioctl(struct inode *inode, struct file *filep, | 136 | static int cciss_ioctl(struct inode *inode, struct file *filep, |
@@ -2300,7 +2300,7 @@ static int sendcmd(__u8 cmd, int ctlr, void *buff, size_t size, unsigned int use | |||
2300 | #ifdef CONFIG_CISS_SCSI_TAPE | 2300 | #ifdef CONFIG_CISS_SCSI_TAPE |
2301 | /* if we saved some commands for later, process them now. */ | 2301 | /* if we saved some commands for later, process them now. */ |
2302 | if (info_p->scsi_rejects.ncompletions > 0) | 2302 | if (info_p->scsi_rejects.ncompletions > 0) |
2303 | do_cciss_intr(0, info_p, NULL); | 2303 | do_cciss_intr(0, info_p); |
2304 | #endif | 2304 | #endif |
2305 | cmd_free(info_p, c, 1); | 2305 | cmd_free(info_p, c, 1); |
2306 | return status; | 2306 | return status; |
@@ -2652,7 +2652,7 @@ static inline long interrupt_not_for_us(ctlr_info_t *h) | |||
2652 | #endif | 2652 | #endif |
2653 | } | 2653 | } |
2654 | 2654 | ||
2655 | static irqreturn_t do_cciss_intr(int irq, void *dev_id, struct pt_regs *regs) | 2655 | static irqreturn_t do_cciss_intr(int irq, void *dev_id) |
2656 | { | 2656 | { |
2657 | ctlr_info_t *h = dev_id; | 2657 | ctlr_info_t *h = dev_id; |
2658 | CommandList_struct *c; | 2658 | CommandList_struct *c; |
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index ada68e65b5ff..570d2f049323 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -169,7 +169,7 @@ static inline cmdlist_t *removeQ(cmdlist_t **Qptr, cmdlist_t *c); | |||
169 | static inline void complete_buffers(struct bio *bio, int ok); | 169 | static inline void complete_buffers(struct bio *bio, int ok); |
170 | static inline void complete_command(cmdlist_t *cmd, int timeout); | 170 | static inline void complete_command(cmdlist_t *cmd, int timeout); |
171 | 171 | ||
172 | static irqreturn_t do_ida_intr(int irq, void *dev_id, struct pt_regs * regs); | 172 | static irqreturn_t do_ida_intr(int irq, void *dev_id); |
173 | static void ida_timer(unsigned long tdata); | 173 | static void ida_timer(unsigned long tdata); |
174 | static int ida_revalidate(struct gendisk *disk); | 174 | static int ida_revalidate(struct gendisk *disk); |
175 | static int revalidate_allvol(ctlr_info_t *host); | 175 | static int revalidate_allvol(ctlr_info_t *host); |
@@ -1042,7 +1042,7 @@ static inline void complete_command(cmdlist_t *cmd, int timeout) | |||
1042 | * Find the command on the completion queue, remove it, tell the OS and | 1042 | * Find the command on the completion queue, remove it, tell the OS and |
1043 | * try to queue up more IO | 1043 | * try to queue up more IO |
1044 | */ | 1044 | */ |
1045 | static irqreturn_t do_ida_intr(int irq, void *dev_id, struct pt_regs *regs) | 1045 | static irqreturn_t do_ida_intr(int irq, void *dev_id) |
1046 | { | 1046 | { |
1047 | ctlr_info_t *h = dev_id; | 1047 | ctlr_info_t *h = dev_id; |
1048 | cmdlist_t *c; | 1048 | cmdlist_t *c; |
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 629c5769d994..9e6d3a87cbe3 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -221,7 +221,7 @@ static DEFINE_SPINLOCK(floppy_lock); | |||
221 | static struct completion device_release; | 221 | static struct completion device_release; |
222 | 222 | ||
223 | static unsigned short virtual_dma_port = 0x3f0; | 223 | static unsigned short virtual_dma_port = 0x3f0; |
224 | irqreturn_t floppy_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 224 | irqreturn_t floppy_interrupt(int irq, void *dev_id); |
225 | static int set_dor(int fdc, char mask, char data); | 225 | static int set_dor(int fdc, char mask, char data); |
226 | 226 | ||
227 | #define K_64 0x10000 /* 64KB */ | 227 | #define K_64 0x10000 /* 64KB */ |
@@ -1726,7 +1726,7 @@ static void print_result(char *message, int inr) | |||
1726 | } | 1726 | } |
1727 | 1727 | ||
1728 | /* interrupt handler. Note that this can be called externally on the Sparc */ | 1728 | /* interrupt handler. Note that this can be called externally on the Sparc */ |
1729 | irqreturn_t floppy_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 1729 | irqreturn_t floppy_interrupt(int irq, void *dev_id) |
1730 | { | 1730 | { |
1731 | void (*handler) (void) = do_floppy; | 1731 | void (*handler) (void) = do_floppy; |
1732 | int do_print; | 1732 | int do_print; |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index d6bb8da955a2..beab6d2643cb 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -295,7 +295,7 @@ fail: | |||
295 | * and do_lo_send_write(). | 295 | * and do_lo_send_write(). |
296 | */ | 296 | */ |
297 | static int __do_lo_send_write(struct file *file, | 297 | static int __do_lo_send_write(struct file *file, |
298 | u8 __user *buf, const int len, loff_t pos) | 298 | u8 *buf, const int len, loff_t pos) |
299 | { | 299 | { |
300 | ssize_t bw; | 300 | ssize_t bw; |
301 | mm_segment_t old_fs = get_fs(); | 301 | mm_segment_t old_fs = get_fs(); |
@@ -324,7 +324,7 @@ static int do_lo_send_direct_write(struct loop_device *lo, | |||
324 | struct bio_vec *bvec, int bsize, loff_t pos, struct page *page) | 324 | struct bio_vec *bvec, int bsize, loff_t pos, struct page *page) |
325 | { | 325 | { |
326 | ssize_t bw = __do_lo_send_write(lo->lo_backing_file, | 326 | ssize_t bw = __do_lo_send_write(lo->lo_backing_file, |
327 | (u8 __user *)kmap(bvec->bv_page) + bvec->bv_offset, | 327 | kmap(bvec->bv_page) + bvec->bv_offset, |
328 | bvec->bv_len, pos); | 328 | bvec->bv_len, pos); |
329 | kunmap(bvec->bv_page); | 329 | kunmap(bvec->bv_page); |
330 | cond_resched(); | 330 | cond_resched(); |
@@ -351,7 +351,7 @@ static int do_lo_send_write(struct loop_device *lo, struct bio_vec *bvec, | |||
351 | bvec->bv_offset, bvec->bv_len, pos >> 9); | 351 | bvec->bv_offset, bvec->bv_len, pos >> 9); |
352 | if (likely(!ret)) | 352 | if (likely(!ret)) |
353 | return __do_lo_send_write(lo->lo_backing_file, | 353 | return __do_lo_send_write(lo->lo_backing_file, |
354 | (u8 __user *)page_address(page), bvec->bv_len, | 354 | page_address(page), bvec->bv_len, |
355 | pos); | 355 | pos); |
356 | printk(KERN_ERR "loop: Transfer error at byte offset %llu, " | 356 | printk(KERN_ERR "loop: Transfer error at byte offset %llu, " |
357 | "length %i.\n", (unsigned long long)pos, bvec->bv_len); | 357 | "length %i.\n", (unsigned long long)pos, bvec->bv_len); |
@@ -1187,7 +1187,7 @@ struct compat_loop_info { | |||
1187 | * - noinlined to reduce stack space usage in main part of driver | 1187 | * - noinlined to reduce stack space usage in main part of driver |
1188 | */ | 1188 | */ |
1189 | static noinline int | 1189 | static noinline int |
1190 | loop_info64_from_compat(const struct compat_loop_info *arg, | 1190 | loop_info64_from_compat(const struct compat_loop_info __user *arg, |
1191 | struct loop_info64 *info64) | 1191 | struct loop_info64 *info64) |
1192 | { | 1192 | { |
1193 | struct compat_loop_info info; | 1193 | struct compat_loop_info info; |
diff --git a/drivers/block/ps2esdi.c b/drivers/block/ps2esdi.c index 5537974fb242..688a4fb0dc99 100644 --- a/drivers/block/ps2esdi.c +++ b/drivers/block/ps2esdi.c | |||
@@ -75,8 +75,7 @@ static int ps2esdi_out_cmd_blk(u_short * cmd_blk); | |||
75 | 75 | ||
76 | static void ps2esdi_prep_dma(char *buffer, u_short length, u_char dma_xmode); | 76 | static void ps2esdi_prep_dma(char *buffer, u_short length, u_char dma_xmode); |
77 | 77 | ||
78 | static irqreturn_t ps2esdi_interrupt_handler(int irq, void *dev_id, | 78 | static irqreturn_t ps2esdi_interrupt_handler(int irq, void *dev_id); |
79 | struct pt_regs *regs); | ||
80 | static void (*current_int_handler) (u_int) = NULL; | 79 | static void (*current_int_handler) (u_int) = NULL; |
81 | static void ps2esdi_normal_interrupt_handler(u_int); | 80 | static void ps2esdi_normal_interrupt_handler(u_int); |
82 | static void ps2esdi_initial_reset_int_handler(u_int); | 81 | static void ps2esdi_initial_reset_int_handler(u_int); |
@@ -687,8 +686,7 @@ static void ps2esdi_prep_dma(char *buffer, u_short length, u_char dma_xmode) | |||
687 | 686 | ||
688 | 687 | ||
689 | 688 | ||
690 | static irqreturn_t ps2esdi_interrupt_handler(int irq, void *dev_id, | 689 | static irqreturn_t ps2esdi_interrupt_handler(int irq, void *dev_id) |
691 | struct pt_regs *regs) | ||
692 | { | 690 | { |
693 | u_int int_ret_code; | 691 | u_int int_ret_code; |
694 | 692 | ||
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index fdc8f892eb86..1a65979f1f0f 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c | |||
@@ -238,8 +238,8 @@ static void scan_timeout(unsigned long data); | |||
238 | static void seek_timeout(unsigned long data); | 238 | static void seek_timeout(unsigned long data); |
239 | static void settle_timeout(unsigned long data); | 239 | static void settle_timeout(unsigned long data); |
240 | static void xfer_timeout(unsigned long data); | 240 | static void xfer_timeout(unsigned long data); |
241 | static irqreturn_t swim3_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 241 | static irqreturn_t swim3_interrupt(int irq, void *dev_id); |
242 | /*static void fd_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs);*/ | 242 | /*static void fd_dma_interrupt(int irq, void *dev_id);*/ |
243 | static int grab_drive(struct floppy_state *fs, enum swim_state state, | 243 | static int grab_drive(struct floppy_state *fs, enum swim_state state, |
244 | int interruptible); | 244 | int interruptible); |
245 | static void release_drive(struct floppy_state *fs); | 245 | static void release_drive(struct floppy_state *fs); |
@@ -624,7 +624,7 @@ static void xfer_timeout(unsigned long data) | |||
624 | start_request(fs); | 624 | start_request(fs); |
625 | } | 625 | } |
626 | 626 | ||
627 | static irqreturn_t swim3_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 627 | static irqreturn_t swim3_interrupt(int irq, void *dev_id) |
628 | { | 628 | { |
629 | struct floppy_state *fs = (struct floppy_state *) dev_id; | 629 | struct floppy_state *fs = (struct floppy_state *) dev_id; |
630 | struct swim3 __iomem *sw = fs->swim3; | 630 | struct swim3 __iomem *sw = fs->swim3; |
@@ -777,7 +777,7 @@ static irqreturn_t swim3_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
777 | } | 777 | } |
778 | 778 | ||
779 | /* | 779 | /* |
780 | static void fd_dma_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 780 | static void fd_dma_interrupt(int irq, void *dev_id) |
781 | { | 781 | { |
782 | } | 782 | } |
783 | */ | 783 | */ |
diff --git a/drivers/block/swim_iop.c b/drivers/block/swim_iop.c index dfda796eba56..ed7b06cf3e68 100644 --- a/drivers/block/swim_iop.c +++ b/drivers/block/swim_iop.c | |||
@@ -94,7 +94,7 @@ static char *drive_names[7] = { | |||
94 | int swimiop_init(void); | 94 | int swimiop_init(void); |
95 | static void swimiop_init_request(struct swim_iop_req *); | 95 | static void swimiop_init_request(struct swim_iop_req *); |
96 | static int swimiop_send_request(struct swim_iop_req *); | 96 | static int swimiop_send_request(struct swim_iop_req *); |
97 | static void swimiop_receive(struct iop_msg *, struct pt_regs *); | 97 | static void swimiop_receive(struct iop_msg *); |
98 | static void swimiop_status_update(int, struct swim_drvstatus *); | 98 | static void swimiop_status_update(int, struct swim_drvstatus *); |
99 | static int swimiop_eject(struct floppy_state *fs); | 99 | static int swimiop_eject(struct floppy_state *fs); |
100 | 100 | ||
@@ -257,7 +257,7 @@ static int swimiop_send_request(struct swim_iop_req *req) | |||
257 | * 2. An unsolicited message was received from the IOP. | 257 | * 2. An unsolicited message was received from the IOP. |
258 | */ | 258 | */ |
259 | 259 | ||
260 | void swimiop_receive(struct iop_msg *msg, struct pt_regs *regs) | 260 | void swimiop_receive(struct iop_msg *msg) |
261 | { | 261 | { |
262 | struct swim_iop_req *req; | 262 | struct swim_iop_req *req; |
263 | struct swimmsg_status *sm; | 263 | struct swimmsg_status *sm; |
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index c6beee18a07c..47d6975268ff 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -1200,7 +1200,7 @@ static inline void carm_handle_responses(struct carm_host *host) | |||
1200 | host->resp_idx += work; | 1200 | host->resp_idx += work; |
1201 | } | 1201 | } |
1202 | 1202 | ||
1203 | static irqreturn_t carm_interrupt(int irq, void *__host, struct pt_regs *regs) | 1203 | static irqreturn_t carm_interrupt(int irq, void *__host) |
1204 | { | 1204 | { |
1205 | struct carm_host *host = __host; | 1205 | struct carm_host *host = __host; |
1206 | void __iomem *mmio; | 1206 | void __iomem *mmio; |
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 45a8f402b07b..0d5c73f07265 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -362,7 +362,7 @@ static void ub_end_rq(struct request *rq, unsigned int status); | |||
362 | static int ub_rw_cmd_retry(struct ub_dev *sc, struct ub_lun *lun, | 362 | static int ub_rw_cmd_retry(struct ub_dev *sc, struct ub_lun *lun, |
363 | struct ub_request *urq, struct ub_scsi_cmd *cmd); | 363 | struct ub_request *urq, struct ub_scsi_cmd *cmd); |
364 | static int ub_submit_scsi(struct ub_dev *sc, struct ub_scsi_cmd *cmd); | 364 | static int ub_submit_scsi(struct ub_dev *sc, struct ub_scsi_cmd *cmd); |
365 | static void ub_urb_complete(struct urb *urb, struct pt_regs *pt); | 365 | static void ub_urb_complete(struct urb *urb); |
366 | static void ub_scsi_action(unsigned long _dev); | 366 | static void ub_scsi_action(unsigned long _dev); |
367 | static void ub_scsi_dispatch(struct ub_dev *sc); | 367 | static void ub_scsi_dispatch(struct ub_dev *sc); |
368 | static void ub_scsi_urb_compl(struct ub_dev *sc, struct ub_scsi_cmd *cmd); | 368 | static void ub_scsi_urb_compl(struct ub_dev *sc, struct ub_scsi_cmd *cmd); |
@@ -959,7 +959,7 @@ static void ub_urb_timeout(unsigned long arg) | |||
959 | * the sc->lock taken) and from an interrupt (while we do NOT have | 959 | * the sc->lock taken) and from an interrupt (while we do NOT have |
960 | * the sc->lock taken). Therefore, bounce this off to a tasklet. | 960 | * the sc->lock taken). Therefore, bounce this off to a tasklet. |
961 | */ | 961 | */ |
962 | static void ub_urb_complete(struct urb *urb, struct pt_regs *pt) | 962 | static void ub_urb_complete(struct urb *urb) |
963 | { | 963 | { |
964 | struct ub_dev *sc = urb->context; | 964 | struct ub_dev *sc = urb->context; |
965 | 965 | ||
@@ -1923,7 +1923,7 @@ err_alloc: | |||
1923 | 1923 | ||
1924 | /* | 1924 | /* |
1925 | */ | 1925 | */ |
1926 | static void ub_probe_urb_complete(struct urb *urb, struct pt_regs *pt) | 1926 | static void ub_probe_urb_complete(struct urb *urb) |
1927 | { | 1927 | { |
1928 | struct completion *cop = urb->context; | 1928 | struct completion *cop = urb->context; |
1929 | complete(cop); | 1929 | complete(cop); |
diff --git a/drivers/block/umem.c b/drivers/block/umem.c index cbb9d0f21acc..30f16bd83650 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c | |||
@@ -571,7 +571,7 @@ static int mm_make_request(request_queue_t *q, struct bio *bio) | |||
571 | -- mm_interrupt | 571 | -- mm_interrupt |
572 | ----------------------------------------------------------------------------------- | 572 | ----------------------------------------------------------------------------------- |
573 | */ | 573 | */ |
574 | static irqreturn_t mm_interrupt(int irq, void *__card, struct pt_regs *regs) | 574 | static irqreturn_t mm_interrupt(int irq, void *__card) |
575 | { | 575 | { |
576 | struct cardinfo *card = (struct cardinfo *) __card; | 576 | struct cardinfo *card = (struct cardinfo *) __card; |
577 | unsigned int dma_status; | 577 | unsigned int dma_status; |
diff --git a/drivers/block/xd.c b/drivers/block/xd.c index ebf3025721d1..10cc38783bdf 100644 --- a/drivers/block/xd.c +++ b/drivers/block/xd.c | |||
@@ -462,8 +462,7 @@ static void xd_recalibrate (u_char drive) | |||
462 | } | 462 | } |
463 | 463 | ||
464 | /* xd_interrupt_handler: interrupt service routine */ | 464 | /* xd_interrupt_handler: interrupt service routine */ |
465 | static irqreturn_t xd_interrupt_handler(int irq, void *dev_id, | 465 | static irqreturn_t xd_interrupt_handler(int irq, void *dev_id) |
466 | struct pt_regs *regs) | ||
467 | { | 466 | { |
468 | if (inb(XD_STATUS) & STAT_INTERRUPT) { /* check if it was our device */ | 467 | if (inb(XD_STATUS) & STAT_INTERRUPT) { /* check if it was our device */ |
469 | #ifdef DEBUG_OTHER | 468 | #ifdef DEBUG_OTHER |
diff --git a/drivers/block/xd.h b/drivers/block/xd.h index 71ac2e3dffc8..82e090fea957 100644 --- a/drivers/block/xd.h +++ b/drivers/block/xd.h | |||
@@ -109,8 +109,7 @@ static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsi | |||
109 | static int xd_readwrite (u_char operation,XD_INFO *disk,char *buffer,u_int block,u_int count); | 109 | static int xd_readwrite (u_char operation,XD_INFO *disk,char *buffer,u_int block,u_int count); |
110 | static void xd_recalibrate (u_char drive); | 110 | static void xd_recalibrate (u_char drive); |
111 | 111 | ||
112 | static irqreturn_t xd_interrupt_handler(int irq, void *dev_id, | 112 | static irqreturn_t xd_interrupt_handler(int irq, void *dev_id); |
113 | struct pt_regs *regs); | ||
114 | static u_char xd_setup_dma (u_char opcode,u_char *buffer,u_int count); | 113 | static u_char xd_setup_dma (u_char opcode,u_char *buffer,u_int count); |
115 | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); | 114 | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |
116 | static void xd_watchdog (unsigned long unused); | 115 | static void xd_watchdog (unsigned long unused); |