summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-08-28 14:28:21 -0400
committerKees Cook <keescook@chromium.org>2017-11-21 18:57:05 -0500
commit24ed960abf1d50cb7834e99a0cfc081bc0656712 (patch)
tree9eff9c73720604a2be0358083fb8c3c20a08a499
parent6cc73a06da439e80c6686883d45ca32b614a4b97 (diff)
treewide: Switch DEFINE_TIMER callbacks to struct timer_list *
This changes all DEFINE_TIMER() callbacks to use a struct timer_list pointer instead of unsigned long. Since the data argument has already been removed, none of these callbacks are using their argument currently, so this renames the argument to "unused". Done using the following semantic patch: @match_define_timer@ declarer name DEFINE_TIMER; identifier _timer, _callback; @@ DEFINE_TIMER(_timer, _callback); @change_callback depends on match_define_timer@ identifier match_define_timer._callback; type _origtype; identifier _origarg; @@ void -_callback(_origtype _origarg) +_callback(struct timer_list *unused) { ... } Signed-off-by: Kees Cook <keescook@chromium.org>
-rw-r--r--arch/arm/mach-ixp4xx/dsmg600-setup.c4
-rw-r--r--arch/arm/mach-ixp4xx/nas100d-setup.c4
-rw-r--r--arch/m68k/amiga/amisound.c4
-rw-r--r--arch/m68k/mac/macboing.c4
-rw-r--r--arch/mips/mti-malta/malta-display.c4
-rw-r--r--arch/parisc/kernel/pdc_cons.c4
-rw-r--r--drivers/atm/idt77105.c8
-rw-r--r--drivers/atm/iphase.c4
-rw-r--r--drivers/block/ataflop.c16
-rw-r--r--drivers/char/dtlk.c4
-rw-r--r--drivers/char/hangcheck-timer.c4
-rw-r--r--drivers/char/nwbutton.c4
-rw-r--r--drivers/char/nwbutton.h2
-rw-r--r--drivers/char/rtc.c4
-rw-r--r--drivers/input/touchscreen/s3c2410_ts.c2
-rw-r--r--drivers/net/wireless/atmel/at76c50x-usb.c4
-rw-r--r--drivers/staging/speakup/main.c4
-rw-r--r--drivers/staging/speakup/synth.c2
-rw-r--r--drivers/tty/cyclades.c4
-rw-r--r--drivers/tty/isicom.c4
-rw-r--r--drivers/tty/moxa.c4
-rw-r--r--drivers/tty/rocket.c4
-rw-r--r--drivers/tty/vt/keyboard.c2
-rw-r--r--drivers/tty/vt/vt.c4
-rw-r--r--drivers/watchdog/alim7101_wdt.c4
-rw-r--r--drivers/watchdog/machzwd.c4
-rw-r--r--drivers/watchdog/mixcomwd.c4
-rw-r--r--drivers/watchdog/sbc60xxwdt.c4
-rw-r--r--drivers/watchdog/sc520_wdt.c4
-rw-r--r--drivers/watchdog/via_wdt.c4
-rw-r--r--drivers/watchdog/w83877f_wdt.c4
-rw-r--r--drivers/xen/grant-table.c4
-rw-r--r--fs/pstore/platform.c4
-rw-r--r--kernel/irq/spurious.c4
-rw-r--r--lib/random32.c4
-rw-r--r--net/decnet/dn_route.c4
-rw-r--r--net/ipv6/ip6_flowlabel.c4
-rw-r--r--net/netrom/nr_loopback.c4
-rw-r--r--security/keys/gc.c4
39 files changed, 82 insertions, 82 deletions
diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c b/arch/arm/mach-ixp4xx/dsmg600-setup.c
index ac97a4599034..0f5c99941a7d 100644
--- a/arch/arm/mach-ixp4xx/dsmg600-setup.c
+++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c
@@ -179,10 +179,10 @@ static int power_button_countdown;
179/* Must hold the button down for at least this many counts to be processed */ 179/* Must hold the button down for at least this many counts to be processed */
180#define PBUTTON_HOLDDOWN_COUNT 4 /* 2 secs */ 180#define PBUTTON_HOLDDOWN_COUNT 4 /* 2 secs */
181 181
182static void dsmg600_power_handler(unsigned long data); 182static void dsmg600_power_handler(struct timer_list *unused);
183static DEFINE_TIMER(dsmg600_power_timer, dsmg600_power_handler); 183static DEFINE_TIMER(dsmg600_power_timer, dsmg600_power_handler);
184 184
185static void dsmg600_power_handler(unsigned long data) 185static void dsmg600_power_handler(struct timer_list *unused)
186{ 186{
187 /* This routine is called twice per second to check the 187 /* This routine is called twice per second to check the
188 * state of the power button. 188 * state of the power button.
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c
index 435602085408..76dfff03cb71 100644
--- a/arch/arm/mach-ixp4xx/nas100d-setup.c
+++ b/arch/arm/mach-ixp4xx/nas100d-setup.c
@@ -202,10 +202,10 @@ static int power_button_countdown;
202/* Must hold the button down for at least this many counts to be processed */ 202/* Must hold the button down for at least this many counts to be processed */
203#define PBUTTON_HOLDDOWN_COUNT 4 /* 2 secs */ 203#define PBUTTON_HOLDDOWN_COUNT 4 /* 2 secs */
204 204
205static void nas100d_power_handler(unsigned long data); 205static void nas100d_power_handler(struct timer_list *unused);
206static DEFINE_TIMER(nas100d_power_timer, nas100d_power_handler); 206static DEFINE_TIMER(nas100d_power_timer, nas100d_power_handler);
207 207
208static void nas100d_power_handler(unsigned long data) 208static void nas100d_power_handler(struct timer_list *unused)
209{ 209{
210 /* This routine is called twice per second to check the 210 /* This routine is called twice per second to check the
211 * state of the power button. 211 * state of the power button.
diff --git a/arch/m68k/amiga/amisound.c b/arch/m68k/amiga/amisound.c
index a23f48181fd6..442bdeee6bd7 100644
--- a/arch/m68k/amiga/amisound.c
+++ b/arch/m68k/amiga/amisound.c
@@ -65,7 +65,7 @@ void __init amiga_init_sound(void)
65#endif 65#endif
66} 66}
67 67
68static void nosound( unsigned long ignored ); 68static void nosound(struct timer_list *unused);
69static DEFINE_TIMER(sound_timer, nosound); 69static DEFINE_TIMER(sound_timer, nosound);
70 70
71void amiga_mksound( unsigned int hz, unsigned int ticks ) 71void amiga_mksound( unsigned int hz, unsigned int ticks )
@@ -107,7 +107,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
107} 107}
108 108
109 109
110static void nosound( unsigned long ignored ) 110static void nosound(struct timer_list *unused)
111{ 111{
112 /* turn off DMA for audio channel 2 */ 112 /* turn off DMA for audio channel 2 */
113 custom.dmacon = DMAF_AUD2; 113 custom.dmacon = DMAF_AUD2;
diff --git a/arch/m68k/mac/macboing.c b/arch/m68k/mac/macboing.c
index d17668649641..135a87bbd1a2 100644
--- a/arch/m68k/mac/macboing.c
+++ b/arch/m68k/mac/macboing.c
@@ -48,7 +48,7 @@ static unsigned long mac_bell_phasepersample;
48 * some function protos 48 * some function protos
49 */ 49 */
50static void mac_init_asc( void ); 50static void mac_init_asc( void );
51static void mac_nosound( unsigned long ); 51static void mac_nosound(struct timer_list *);
52static void mac_quadra_start_bell( unsigned int, unsigned int, unsigned int ); 52static void mac_quadra_start_bell( unsigned int, unsigned int, unsigned int );
53static void mac_quadra_ring_bell( unsigned long ); 53static void mac_quadra_ring_bell( unsigned long );
54static void mac_av_start_bell( unsigned int, unsigned int, unsigned int ); 54static void mac_av_start_bell( unsigned int, unsigned int, unsigned int );
@@ -216,7 +216,7 @@ void mac_mksound( unsigned int freq, unsigned int length )
216/* 216/*
217 * regular ASC: stop whining .. 217 * regular ASC: stop whining ..
218 */ 218 */
219static void mac_nosound( unsigned long ignored ) 219static void mac_nosound(struct timer_list *unused)
220{ 220{
221 mac_asc_regs[ ASC_ENABLE ] = 0; 221 mac_asc_regs[ ASC_ENABLE ] = 0;
222} 222}
diff --git a/arch/mips/mti-malta/malta-display.c b/arch/mips/mti-malta/malta-display.c
index 063de44675ce..ee0bd50f754b 100644
--- a/arch/mips/mti-malta/malta-display.c
+++ b/arch/mips/mti-malta/malta-display.c
@@ -36,10 +36,10 @@ void mips_display_message(const char *str)
36 } 36 }
37} 37}
38 38
39static void scroll_display_message(unsigned long unused); 39static void scroll_display_message(struct timer_list *unused);
40static DEFINE_TIMER(mips_scroll_timer, scroll_display_message); 40static DEFINE_TIMER(mips_scroll_timer, scroll_display_message);
41 41
42static void scroll_display_message(unsigned long unused) 42static void scroll_display_message(struct timer_list *unused)
43{ 43{
44 mips_display_message(&display_string[display_count++]); 44 mips_display_message(&display_string[display_count++]);
45 if (display_count == max_display_count) 45 if (display_count == max_display_count)
diff --git a/arch/parisc/kernel/pdc_cons.c b/arch/parisc/kernel/pdc_cons.c
index 27a2dd616a7d..c46bf29ae412 100644
--- a/arch/parisc/kernel/pdc_cons.c
+++ b/arch/parisc/kernel/pdc_cons.c
@@ -91,7 +91,7 @@ static int pdc_console_setup(struct console *co, char *options)
91 91
92#define PDC_CONS_POLL_DELAY (30 * HZ / 1000) 92#define PDC_CONS_POLL_DELAY (30 * HZ / 1000)
93 93
94static void pdc_console_poll(unsigned long unused); 94static void pdc_console_poll(struct timer_list *unused);
95static DEFINE_TIMER(pdc_console_timer, pdc_console_poll); 95static DEFINE_TIMER(pdc_console_timer, pdc_console_poll);
96static struct tty_port tty_port; 96static struct tty_port tty_port;
97 97
@@ -135,7 +135,7 @@ static const struct tty_operations pdc_console_tty_ops = {
135 .chars_in_buffer = pdc_console_tty_chars_in_buffer, 135 .chars_in_buffer = pdc_console_tty_chars_in_buffer,
136}; 136};
137 137
138static void pdc_console_poll(unsigned long unused) 138static void pdc_console_poll(struct timer_list *unused)
139{ 139{
140 int data, count = 0; 140 int data, count = 0;
141 141
diff --git a/drivers/atm/idt77105.c b/drivers/atm/idt77105.c
index 909744eb7bab..0a67487c0b1d 100644
--- a/drivers/atm/idt77105.c
+++ b/drivers/atm/idt77105.c
@@ -45,8 +45,8 @@ static DEFINE_SPINLOCK(idt77105_priv_lock);
45#define PUT(val,reg) dev->ops->phy_put(dev,val,IDT77105_##reg) 45#define PUT(val,reg) dev->ops->phy_put(dev,val,IDT77105_##reg)
46#define GET(reg) dev->ops->phy_get(dev,IDT77105_##reg) 46#define GET(reg) dev->ops->phy_get(dev,IDT77105_##reg)
47 47
48static void idt77105_stats_timer_func(unsigned long); 48static void idt77105_stats_timer_func(struct timer_list *);
49static void idt77105_restart_timer_func(unsigned long); 49static void idt77105_restart_timer_func(struct timer_list *);
50 50
51 51
52static DEFINE_TIMER(stats_timer, idt77105_stats_timer_func); 52static DEFINE_TIMER(stats_timer, idt77105_stats_timer_func);
@@ -80,7 +80,7 @@ static u16 get_counter(struct atm_dev *dev, int counter)
80 * a separate copy of the stats allows implementation of 80 * a separate copy of the stats allows implementation of
81 * an ioctl which gathers the stats *without* zero'ing them. 81 * an ioctl which gathers the stats *without* zero'ing them.
82 */ 82 */
83static void idt77105_stats_timer_func(unsigned long dummy) 83static void idt77105_stats_timer_func(struct timer_list *unused)
84{ 84{
85 struct idt77105_priv *walk; 85 struct idt77105_priv *walk;
86 struct atm_dev *dev; 86 struct atm_dev *dev;
@@ -109,7 +109,7 @@ static void idt77105_stats_timer_func(unsigned long dummy)
109 * interrupts need to be disabled when the cable is pulled out 109 * interrupts need to be disabled when the cable is pulled out
110 * to avoid lots of spurious cell error interrupts. 110 * to avoid lots of spurious cell error interrupts.
111 */ 111 */
112static void idt77105_restart_timer_func(unsigned long dummy) 112static void idt77105_restart_timer_func(struct timer_list *unused)
113{ 113{
114 struct idt77105_priv *walk; 114 struct idt77105_priv *walk;
115 struct atm_dev *dev; 115 struct atm_dev *dev;
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
index 12f646760b68..98a3a43484c8 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -75,7 +75,7 @@ static void desc_dbg(IADEV *iadev);
75static IADEV *ia_dev[8]; 75static IADEV *ia_dev[8];
76static struct atm_dev *_ia_dev[8]; 76static struct atm_dev *_ia_dev[8];
77static int iadev_count; 77static int iadev_count;
78static void ia_led_timer(unsigned long arg); 78static void ia_led_timer(struct timer_list *unused);
79static DEFINE_TIMER(ia_timer, ia_led_timer); 79static DEFINE_TIMER(ia_timer, ia_led_timer);
80static int IA_TX_BUF = DFL_TX_BUFFERS, IA_TX_BUF_SZ = DFL_TX_BUF_SZ; 80static int IA_TX_BUF = DFL_TX_BUFFERS, IA_TX_BUF_SZ = DFL_TX_BUF_SZ;
81static int IA_RX_BUF = DFL_RX_BUFFERS, IA_RX_BUF_SZ = DFL_RX_BUF_SZ; 81static int IA_RX_BUF = DFL_RX_BUFFERS, IA_RX_BUF_SZ = DFL_RX_BUF_SZ;
@@ -2432,7 +2432,7 @@ static void ia_update_stats(IADEV *iadev) {
2432 return; 2432 return;
2433} 2433}
2434 2434
2435static void ia_led_timer(unsigned long arg) { 2435static void ia_led_timer(struct timer_list *unused) {
2436 unsigned long flags; 2436 unsigned long flags;
2437 static u_char blinking[8] = {0, 0, 0, 0, 0, 0, 0, 0}; 2437 static u_char blinking[8] = {0, 0, 0, 0, 0, 0, 0, 0};
2438 u_char i; 2438 u_char i;
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c
index ae596e55bcb6..8bc3b9fd8dd2 100644
--- a/drivers/block/ataflop.c
+++ b/drivers/block/ataflop.c
@@ -342,8 +342,8 @@ static int NeedSeek = 0;
342static void fd_select_side( int side ); 342static void fd_select_side( int side );
343static void fd_select_drive( int drive ); 343static void fd_select_drive( int drive );
344static void fd_deselect( void ); 344static void fd_deselect( void );
345static void fd_motor_off_timer( unsigned long dummy ); 345static void fd_motor_off_timer(struct timer_list *unused);
346static void check_change( unsigned long dummy ); 346static void check_change(struct timer_list *unused);
347static irqreturn_t floppy_irq (int irq, void *dummy); 347static irqreturn_t floppy_irq (int irq, void *dummy);
348static void fd_error( void ); 348static void fd_error( void );
349static int do_format(int drive, int type, struct atari_format_descr *desc); 349static int do_format(int drive, int type, struct atari_format_descr *desc);
@@ -353,12 +353,12 @@ static void fd_calibrate_done( int status );
353static void fd_seek( void ); 353static void fd_seek( void );
354static void fd_seek_done( int status ); 354static void fd_seek_done( int status );
355static void fd_rwsec( void ); 355static void fd_rwsec( void );
356static void fd_readtrack_check( unsigned long dummy ); 356static void fd_readtrack_check(struct timer_list *unused);
357static void fd_rwsec_done( int status ); 357static void fd_rwsec_done( int status );
358static void fd_rwsec_done1(int status); 358static void fd_rwsec_done1(int status);
359static void fd_writetrack( void ); 359static void fd_writetrack( void );
360static void fd_writetrack_done( int status ); 360static void fd_writetrack_done( int status );
361static void fd_times_out( unsigned long dummy ); 361static void fd_times_out(struct timer_list *unused);
362static void finish_fdc( void ); 362static void finish_fdc( void );
363static void finish_fdc_done( int dummy ); 363static void finish_fdc_done( int dummy );
364static void setup_req_params( int drive ); 364static void setup_req_params( int drive );
@@ -479,7 +479,7 @@ static void fd_deselect( void )
479 * counts the index signals, which arrive only if one drive is selected. 479 * counts the index signals, which arrive only if one drive is selected.
480 */ 480 */
481 481
482static void fd_motor_off_timer( unsigned long dummy ) 482static void fd_motor_off_timer(struct timer_list *unused)
483{ 483{
484 unsigned char status; 484 unsigned char status;
485 485
@@ -515,7 +515,7 @@ static void fd_motor_off_timer( unsigned long dummy )
515 * as possible) and keep track of the current state of the write protection. 515 * as possible) and keep track of the current state of the write protection.
516 */ 516 */
517 517
518static void check_change( unsigned long dummy ) 518static void check_change(struct timer_list *unused)
519{ 519{
520 static int drive = 0; 520 static int drive = 0;
521 521
@@ -966,7 +966,7 @@ static void fd_rwsec( void )
966} 966}
967 967
968 968
969static void fd_readtrack_check( unsigned long dummy ) 969static void fd_readtrack_check(struct timer_list *unused)
970{ 970{
971 unsigned long flags, addr, addr2; 971 unsigned long flags, addr, addr2;
972 972
@@ -1237,7 +1237,7 @@ static void fd_writetrack_done( int status )
1237 fd_error(); 1237 fd_error();
1238} 1238}
1239 1239
1240static void fd_times_out( unsigned long dummy ) 1240static void fd_times_out(struct timer_list *unused)
1241{ 1241{
1242 atari_disable_irq( IRQ_MFP_FDC ); 1242 atari_disable_irq( IRQ_MFP_FDC );
1243 if (!FloppyIRQHandler) goto end; /* int occurred after timer was fired, but 1243 if (!FloppyIRQHandler) goto end; /* int occurred after timer was fired, but
diff --git a/drivers/char/dtlk.c b/drivers/char/dtlk.c
index 1a0385ed6417..839ee61d352a 100644
--- a/drivers/char/dtlk.c
+++ b/drivers/char/dtlk.c
@@ -74,7 +74,7 @@
74#endif /* TRACING */ 74#endif /* TRACING */
75 75
76static DEFINE_MUTEX(dtlk_mutex); 76static DEFINE_MUTEX(dtlk_mutex);
77static void dtlk_timer_tick(unsigned long data); 77static void dtlk_timer_tick(struct timer_list *unused);
78 78
79static int dtlk_major; 79static int dtlk_major;
80static int dtlk_port_lpc; 80static int dtlk_port_lpc;
@@ -259,7 +259,7 @@ static unsigned int dtlk_poll(struct file *file, poll_table * wait)
259 return mask; 259 return mask;
260} 260}
261 261
262static void dtlk_timer_tick(unsigned long data) 262static void dtlk_timer_tick(struct timer_list *unused)
263{ 263{
264 TRACE_TEXT(" dtlk_timer_tick"); 264 TRACE_TEXT(" dtlk_timer_tick");
265 wake_up_interruptible(&dtlk_process_list); 265 wake_up_interruptible(&dtlk_process_list);
diff --git a/drivers/char/hangcheck-timer.c b/drivers/char/hangcheck-timer.c
index 5b8db2ed844d..7700280717f2 100644
--- a/drivers/char/hangcheck-timer.c
+++ b/drivers/char/hangcheck-timer.c
@@ -122,11 +122,11 @@ __setup("hcheck_dump_tasks", hangcheck_parse_dump_tasks);
122/* Last time scheduled */ 122/* Last time scheduled */
123static unsigned long long hangcheck_tsc, hangcheck_tsc_margin; 123static unsigned long long hangcheck_tsc, hangcheck_tsc_margin;
124 124
125static void hangcheck_fire(unsigned long); 125static void hangcheck_fire(struct timer_list *);
126 126
127static DEFINE_TIMER(hangcheck_ticktock, hangcheck_fire); 127static DEFINE_TIMER(hangcheck_ticktock, hangcheck_fire);
128 128
129static void hangcheck_fire(unsigned long data) 129static void hangcheck_fire(struct timer_list *unused)
130{ 130{
131 unsigned long long cur_tsc, tsc_diff; 131 unsigned long long cur_tsc, tsc_diff;
132 132
diff --git a/drivers/char/nwbutton.c b/drivers/char/nwbutton.c
index 44006ed9558f..a7113b78251a 100644
--- a/drivers/char/nwbutton.c
+++ b/drivers/char/nwbutton.c
@@ -23,7 +23,7 @@
23#define __NWBUTTON_C /* Tell the header file who we are */ 23#define __NWBUTTON_C /* Tell the header file who we are */
24#include "nwbutton.h" 24#include "nwbutton.h"
25 25
26static void button_sequence_finished (unsigned long parameters); 26static void button_sequence_finished(struct timer_list *unused);
27 27
28static int button_press_count; /* The count of button presses */ 28static int button_press_count; /* The count of button presses */
29/* Times for the end of a sequence */ 29/* Times for the end of a sequence */
@@ -127,7 +127,7 @@ static void button_consume_callbacks (int bpcount)
127 * any matching registered function callbacks, initiate reboot, etc.). 127 * any matching registered function callbacks, initiate reboot, etc.).
128 */ 128 */
129 129
130static void button_sequence_finished (unsigned long parameters) 130static void button_sequence_finished(struct timer_list *unused)
131{ 131{
132 if (IS_ENABLED(CONFIG_NWBUTTON_REBOOT) && 132 if (IS_ENABLED(CONFIG_NWBUTTON_REBOOT) &&
133 button_press_count == reboot_count) 133 button_press_count == reboot_count)
diff --git a/drivers/char/nwbutton.h b/drivers/char/nwbutton.h
index abee3ca74801..9dedfd7adc0e 100644
--- a/drivers/char/nwbutton.h
+++ b/drivers/char/nwbutton.h
@@ -25,7 +25,7 @@ struct button_callback {
25 25
26/* Function prototypes: */ 26/* Function prototypes: */
27 27
28static void button_sequence_finished (unsigned long parameters); 28static void button_sequence_finished(struct timer_list *unused);
29static irqreturn_t button_handler (int irq, void *dev_id); 29static irqreturn_t button_handler (int irq, void *dev_id);
30int button_init (void); 30int button_init (void);
31int button_add_callback (void (*callback) (void), int count); 31int button_add_callback (void (*callback) (void), int count);
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c
index 616871e68e09..5542a438bbd0 100644
--- a/drivers/char/rtc.c
+++ b/drivers/char/rtc.c
@@ -135,7 +135,7 @@ static struct fasync_struct *rtc_async_queue;
135static DECLARE_WAIT_QUEUE_HEAD(rtc_wait); 135static DECLARE_WAIT_QUEUE_HEAD(rtc_wait);
136 136
137#ifdef RTC_IRQ 137#ifdef RTC_IRQ
138static void rtc_dropped_irq(unsigned long data); 138static void rtc_dropped_irq(struct timer_list *unused);
139 139
140static DEFINE_TIMER(rtc_irq_timer, rtc_dropped_irq); 140static DEFINE_TIMER(rtc_irq_timer, rtc_dropped_irq);
141#endif 141#endif
@@ -1171,7 +1171,7 @@ module_exit(rtc_exit);
1171 * for something that requires a steady > 1KHz signal anyways.) 1171 * for something that requires a steady > 1KHz signal anyways.)
1172 */ 1172 */
1173 1173
1174static void rtc_dropped_irq(unsigned long data) 1174static void rtc_dropped_irq(struct timer_list *unused)
1175{ 1175{
1176 unsigned long freq; 1176 unsigned long freq;
1177 1177
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
index d3265b6b58b8..1173890f6719 100644
--- a/drivers/input/touchscreen/s3c2410_ts.c
+++ b/drivers/input/touchscreen/s3c2410_ts.c
@@ -102,7 +102,7 @@ static inline bool get_down(unsigned long data0, unsigned long data1)
102 !(data1 & S3C2410_ADCDAT0_UPDOWN)); 102 !(data1 & S3C2410_ADCDAT0_UPDOWN));
103} 103}
104 104
105static void touch_timer_fire(unsigned long data) 105static void touch_timer_fire(struct timer_list *unused)
106{ 106{
107 unsigned long data0; 107 unsigned long data0;
108 unsigned long data1; 108 unsigned long data1;
diff --git a/drivers/net/wireless/atmel/at76c50x-usb.c b/drivers/net/wireless/atmel/at76c50x-usb.c
index ede89d4ffc88..e99e766a3028 100644
--- a/drivers/net/wireless/atmel/at76c50x-usb.c
+++ b/drivers/net/wireless/atmel/at76c50x-usb.c
@@ -518,11 +518,11 @@ exit:
518 518
519/* LED trigger */ 519/* LED trigger */
520static int tx_activity; 520static int tx_activity;
521static void at76_ledtrig_tx_timerfunc(unsigned long data); 521static void at76_ledtrig_tx_timerfunc(struct timer_list *unused);
522static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc); 522static DEFINE_TIMER(ledtrig_tx_timer, at76_ledtrig_tx_timerfunc);
523DEFINE_LED_TRIGGER(ledtrig_tx); 523DEFINE_LED_TRIGGER(ledtrig_tx);
524 524
525static void at76_ledtrig_tx_timerfunc(unsigned long data) 525static void at76_ledtrig_tx_timerfunc(struct timer_list *unused)
526{ 526{
527 static int tx_lastactivity; 527 static int tx_lastactivity;
528 528
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index 16497202473f..aae868509e13 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -1164,7 +1164,7 @@ static void spkup_write(const u16 *in_buf, int count)
1164static const int NUM_CTL_LABELS = (MSG_CTL_END - MSG_CTL_START + 1); 1164static const int NUM_CTL_LABELS = (MSG_CTL_END - MSG_CTL_START + 1);
1165 1165
1166static void read_all_doc(struct vc_data *vc); 1166static void read_all_doc(struct vc_data *vc);
1167static void cursor_done(u_long data); 1167static void cursor_done(struct timer_list *unused);
1168static DEFINE_TIMER(cursor_timer, cursor_done); 1168static DEFINE_TIMER(cursor_timer, cursor_done);
1169 1169
1170static void do_handle_shift(struct vc_data *vc, u_char value, char up_flag) 1170static void do_handle_shift(struct vc_data *vc, u_char value, char up_flag)
@@ -1682,7 +1682,7 @@ static int speak_highlight(struct vc_data *vc)
1682 return 0; 1682 return 0;
1683} 1683}
1684 1684
1685static void cursor_done(u_long data) 1685static void cursor_done(struct timer_list *unused)
1686{ 1686{
1687 struct vc_data *vc = vc_cons[cursor_con].d; 1687 struct vc_data *vc = vc_cons[cursor_con].d;
1688 unsigned long flags; 1688 unsigned long flags;
diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c
index 6ddd3fc3f08d..aac29c816d09 100644
--- a/drivers/staging/speakup/synth.c
+++ b/drivers/staging/speakup/synth.c
@@ -153,7 +153,7 @@ int spk_synth_is_alive_restart(struct spk_synth *synth)
153} 153}
154EXPORT_SYMBOL_GPL(spk_synth_is_alive_restart); 154EXPORT_SYMBOL_GPL(spk_synth_is_alive_restart);
155 155
156static void thread_wake_up(u_long data) 156static void thread_wake_up(struct timer_list *unused)
157{ 157{
158 wake_up_interruptible_all(&speakup_event); 158 wake_up_interruptible_all(&speakup_event);
159} 159}
diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index 5d442469c95e..cf0bde3bb927 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -279,7 +279,7 @@ static unsigned detect_isa_irq(void __iomem *);
279#endif /* CONFIG_ISA */ 279#endif /* CONFIG_ISA */
280 280
281#ifndef CONFIG_CYZ_INTR 281#ifndef CONFIG_CYZ_INTR
282static void cyz_poll(unsigned long); 282static void cyz_poll(struct timer_list *);
283 283
284/* The Cyclades-Z polling cycle is defined by this variable */ 284/* The Cyclades-Z polling cycle is defined by this variable */
285static long cyz_polling_cycle = CZ_DEF_POLL; 285static long cyz_polling_cycle = CZ_DEF_POLL;
@@ -1214,7 +1214,7 @@ static void cyz_rx_restart(struct timer_list *t)
1214 1214
1215#else /* CONFIG_CYZ_INTR */ 1215#else /* CONFIG_CYZ_INTR */
1216 1216
1217static void cyz_poll(unsigned long arg) 1217static void cyz_poll(struct timer_list *unused)
1218{ 1218{
1219 struct cyclades_card *cinfo; 1219 struct cyclades_card *cinfo;
1220 struct cyclades_port *info; 1220 struct cyclades_port *info;
diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.c
index ee7958ab269f..015686ff4825 100644
--- a/drivers/tty/isicom.c
+++ b/drivers/tty/isicom.c
@@ -170,7 +170,7 @@ static struct pci_driver isicom_driver = {
170static int prev_card = 3; /* start servicing isi_card[0] */ 170static int prev_card = 3; /* start servicing isi_card[0] */
171static struct tty_driver *isicom_normal; 171static struct tty_driver *isicom_normal;
172 172
173static void isicom_tx(unsigned long _data); 173static void isicom_tx(struct timer_list *unused);
174static void isicom_start(struct tty_struct *tty); 174static void isicom_start(struct tty_struct *tty);
175 175
176static DEFINE_TIMER(tx, isicom_tx); 176static DEFINE_TIMER(tx, isicom_tx);
@@ -394,7 +394,7 @@ static inline int __isicom_paranoia_check(struct isi_port const *port,
394 * will do the rest of the work for us. 394 * will do the rest of the work for us.
395 */ 395 */
396 396
397static void isicom_tx(unsigned long _data) 397static void isicom_tx(struct timer_list *unused)
398{ 398{
399 unsigned long flags, base; 399 unsigned long flags, base;
400 unsigned int retries; 400 unsigned int retries;
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 65a70f3c7cde..68cbc03aab4b 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -198,7 +198,7 @@ static void moxa_hangup(struct tty_struct *);
198static int moxa_tiocmget(struct tty_struct *tty); 198static int moxa_tiocmget(struct tty_struct *tty);
199static int moxa_tiocmset(struct tty_struct *tty, 199static int moxa_tiocmset(struct tty_struct *tty,
200 unsigned int set, unsigned int clear); 200 unsigned int set, unsigned int clear);
201static void moxa_poll(unsigned long); 201static void moxa_poll(struct timer_list *);
202static void moxa_set_tty_param(struct tty_struct *, struct ktermios *); 202static void moxa_set_tty_param(struct tty_struct *, struct ktermios *);
203static void moxa_shutdown(struct tty_port *); 203static void moxa_shutdown(struct tty_port *);
204static int moxa_carrier_raised(struct tty_port *); 204static int moxa_carrier_raised(struct tty_port *);
@@ -1429,7 +1429,7 @@ put:
1429 return 0; 1429 return 0;
1430} 1430}
1431 1431
1432static void moxa_poll(unsigned long ignored) 1432static void moxa_poll(struct timer_list *unused)
1433{ 1433{
1434 struct moxa_board_conf *brd; 1434 struct moxa_board_conf *brd;
1435 u16 __iomem *ip; 1435 u16 __iomem *ip;
diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c
index f7dc9b1ea806..bdd17d2aaafd 100644
--- a/drivers/tty/rocket.c
+++ b/drivers/tty/rocket.c
@@ -86,7 +86,7 @@
86 86
87/****** RocketPort Local Variables ******/ 87/****** RocketPort Local Variables ******/
88 88
89static void rp_do_poll(unsigned long dummy); 89static void rp_do_poll(struct timer_list *unused);
90 90
91static struct tty_driver *rocket_driver; 91static struct tty_driver *rocket_driver;
92 92
@@ -525,7 +525,7 @@ static void rp_handle_port(struct r_port *info)
525/* 525/*
526 * The top level polling routine. Repeats every 1/100 HZ (10ms). 526 * The top level polling routine. Repeats every 1/100 HZ (10ms).
527 */ 527 */
528static void rp_do_poll(unsigned long dummy) 528static void rp_do_poll(struct timer_list *unused)
529{ 529{
530 CONTROLLER_t *ctlp; 530 CONTROLLER_t *ctlp;
531 int ctrl, aiop, ch, line; 531 int ctrl, aiop, ch, line;
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c
index c8d90d7e7e37..5d412df8e943 100644
--- a/drivers/tty/vt/keyboard.c
+++ b/drivers/tty/vt/keyboard.c
@@ -244,7 +244,7 @@ static int kd_sound_helper(struct input_handle *handle, void *data)
244 return 0; 244 return 0;
245} 245}
246 246
247static void kd_nosound(unsigned long ignored) 247static void kd_nosound(struct timer_list *unused)
248{ 248{
249 static unsigned int zero; 249 static unsigned int zero;
250 250
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index bce4c71cb338..88b902c525d7 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -158,7 +158,7 @@ static void set_cursor(struct vc_data *vc);
158static void hide_cursor(struct vc_data *vc); 158static void hide_cursor(struct vc_data *vc);
159static void console_callback(struct work_struct *ignored); 159static void console_callback(struct work_struct *ignored);
160static void con_driver_unregister_callback(struct work_struct *ignored); 160static void con_driver_unregister_callback(struct work_struct *ignored);
161static void blank_screen_t(unsigned long dummy); 161static void blank_screen_t(struct timer_list *unused);
162static void set_palette(struct vc_data *vc); 162static void set_palette(struct vc_data *vc);
163 163
164#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) 164#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
@@ -3929,7 +3929,7 @@ void unblank_screen(void)
3929 * (console operations can still happen at irq time, but only from printk which 3929 * (console operations can still happen at irq time, but only from printk which
3930 * has the console mutex. Not perfect yet, but better than no locking 3930 * has the console mutex. Not perfect yet, but better than no locking
3931 */ 3931 */
3932static void blank_screen_t(unsigned long dummy) 3932static void blank_screen_t(struct timer_list *unused)
3933{ 3933{
3934 blank_timer_expired = 1; 3934 blank_timer_expired = 1;
3935 schedule_work(&console_work); 3935 schedule_work(&console_work);
diff --git a/drivers/watchdog/alim7101_wdt.c b/drivers/watchdog/alim7101_wdt.c
index 18e896eeca62..12f7ea62dddd 100644
--- a/drivers/watchdog/alim7101_wdt.c
+++ b/drivers/watchdog/alim7101_wdt.c
@@ -70,7 +70,7 @@ module_param(use_gpio, int, 0);
70MODULE_PARM_DESC(use_gpio, 70MODULE_PARM_DESC(use_gpio,
71 "Use the gpio watchdog (required by old cobalt boards)."); 71 "Use the gpio watchdog (required by old cobalt boards).");
72 72
73static void wdt_timer_ping(unsigned long); 73static void wdt_timer_ping(struct timer_list *);
74static DEFINE_TIMER(timer, wdt_timer_ping); 74static DEFINE_TIMER(timer, wdt_timer_ping);
75static unsigned long next_heartbeat; 75static unsigned long next_heartbeat;
76static unsigned long wdt_is_open; 76static unsigned long wdt_is_open;
@@ -87,7 +87,7 @@ MODULE_PARM_DESC(nowayout,
87 * Whack the dog 87 * Whack the dog
88 */ 88 */
89 89
90static void wdt_timer_ping(unsigned long unused) 90static void wdt_timer_ping(struct timer_list *unused)
91{ 91{
92 /* If we got a heartbeat pulse within the WDT_US_INTERVAL 92 /* If we got a heartbeat pulse within the WDT_US_INTERVAL
93 * we agree to ping the WDT 93 * we agree to ping the WDT
diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c
index 8a616a57bb90..88d823d87a4b 100644
--- a/drivers/watchdog/machzwd.c
+++ b/drivers/watchdog/machzwd.c
@@ -121,7 +121,7 @@ module_param(action, int, 0);
121MODULE_PARM_DESC(action, "after watchdog resets, generate: " 121MODULE_PARM_DESC(action, "after watchdog resets, generate: "
122 "0 = RESET(*) 1 = SMI 2 = NMI 3 = SCI"); 122 "0 = RESET(*) 1 = SMI 2 = NMI 3 = SCI");
123 123
124static void zf_ping(unsigned long data); 124static void zf_ping(struct timer_list *unused);
125 125
126static int zf_action = GEN_RESET; 126static int zf_action = GEN_RESET;
127static unsigned long zf_is_open; 127static unsigned long zf_is_open;
@@ -237,7 +237,7 @@ static void zf_timer_on(void)
237} 237}
238 238
239 239
240static void zf_ping(unsigned long data) 240static void zf_ping(struct timer_list *unused)
241{ 241{
242 unsigned int ctrl_reg = 0; 242 unsigned int ctrl_reg = 0;
243 unsigned long flags; 243 unsigned long flags;
diff --git a/drivers/watchdog/mixcomwd.c b/drivers/watchdog/mixcomwd.c
index c9e38096ea91..3cc07447c655 100644
--- a/drivers/watchdog/mixcomwd.c
+++ b/drivers/watchdog/mixcomwd.c
@@ -99,7 +99,7 @@ static struct {
99 {0x0000, 0}, 99 {0x0000, 0},
100}; 100};
101 101
102static void mixcomwd_timerfun(unsigned long d); 102static void mixcomwd_timerfun(struct timer_list *unused);
103 103
104static unsigned long mixcomwd_opened; /* long req'd for setbit --RR */ 104static unsigned long mixcomwd_opened; /* long req'd for setbit --RR */
105 105
@@ -120,7 +120,7 @@ static void mixcomwd_ping(void)
120 return; 120 return;
121} 121}
122 122
123static void mixcomwd_timerfun(unsigned long d) 123static void mixcomwd_timerfun(struct timer_list *unused)
124{ 124{
125 mixcomwd_ping(); 125 mixcomwd_ping();
126 mod_timer(&mixcomwd_timer, jiffies + 5 * HZ); 126 mod_timer(&mixcomwd_timer, jiffies + 5 * HZ);
diff --git a/drivers/watchdog/sbc60xxwdt.c b/drivers/watchdog/sbc60xxwdt.c
index 8d589939bc84..87333a41f753 100644
--- a/drivers/watchdog/sbc60xxwdt.c
+++ b/drivers/watchdog/sbc60xxwdt.c
@@ -112,7 +112,7 @@ MODULE_PARM_DESC(nowayout,
112 "Watchdog cannot be stopped once started (default=" 112 "Watchdog cannot be stopped once started (default="
113 __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); 113 __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
114 114
115static void wdt_timer_ping(unsigned long); 115static void wdt_timer_ping(struct timer_list *);
116static DEFINE_TIMER(timer, wdt_timer_ping); 116static DEFINE_TIMER(timer, wdt_timer_ping);
117static unsigned long next_heartbeat; 117static unsigned long next_heartbeat;
118static unsigned long wdt_is_open; 118static unsigned long wdt_is_open;
@@ -122,7 +122,7 @@ static char wdt_expect_close;
122 * Whack the dog 122 * Whack the dog
123 */ 123 */
124 124
125static void wdt_timer_ping(unsigned long data) 125static void wdt_timer_ping(struct timer_list *unused)
126{ 126{
127 /* If we got a heartbeat pulse within the WDT_US_INTERVAL 127 /* If we got a heartbeat pulse within the WDT_US_INTERVAL
128 * we agree to ping the WDT 128 * we agree to ping the WDT
diff --git a/drivers/watchdog/sc520_wdt.c b/drivers/watchdog/sc520_wdt.c
index 3e9bbaa37bf4..6aadb56e7faa 100644
--- a/drivers/watchdog/sc520_wdt.c
+++ b/drivers/watchdog/sc520_wdt.c
@@ -123,7 +123,7 @@ MODULE_PARM_DESC(nowayout,
123 123
124static __u16 __iomem *wdtmrctl; 124static __u16 __iomem *wdtmrctl;
125 125
126static void wdt_timer_ping(unsigned long); 126static void wdt_timer_ping(struct timer_list *);
127static DEFINE_TIMER(timer, wdt_timer_ping); 127static DEFINE_TIMER(timer, wdt_timer_ping);
128static unsigned long next_heartbeat; 128static unsigned long next_heartbeat;
129static unsigned long wdt_is_open; 129static unsigned long wdt_is_open;
@@ -134,7 +134,7 @@ static DEFINE_SPINLOCK(wdt_spinlock);
134 * Whack the dog 134 * Whack the dog
135 */ 135 */
136 136
137static void wdt_timer_ping(unsigned long data) 137static void wdt_timer_ping(struct timer_list *unused)
138{ 138{
139 /* If we got a heartbeat pulse within the WDT_US_INTERVAL 139 /* If we got a heartbeat pulse within the WDT_US_INTERVAL
140 * we agree to ping the WDT 140 * we agree to ping the WDT
diff --git a/drivers/watchdog/via_wdt.c b/drivers/watchdog/via_wdt.c
index ad3c3be13b40..b085ef1084ec 100644
--- a/drivers/watchdog/via_wdt.c
+++ b/drivers/watchdog/via_wdt.c
@@ -67,7 +67,7 @@ static struct watchdog_device wdt_dev;
67static struct resource wdt_res; 67static struct resource wdt_res;
68static void __iomem *wdt_mem; 68static void __iomem *wdt_mem;
69static unsigned int mmio; 69static unsigned int mmio;
70static void wdt_timer_tick(unsigned long data); 70static void wdt_timer_tick(struct timer_list *unused);
71static DEFINE_TIMER(timer, wdt_timer_tick); 71static DEFINE_TIMER(timer, wdt_timer_tick);
72 /* The timer that pings the watchdog */ 72 /* The timer that pings the watchdog */
73static unsigned long next_heartbeat; /* the next_heartbeat for the timer */ 73static unsigned long next_heartbeat; /* the next_heartbeat for the timer */
@@ -88,7 +88,7 @@ static inline void wdt_reset(void)
88 * then the external/userspace heartbeat). 88 * then the external/userspace heartbeat).
89 * 2) the watchdog timer has been stopped by userspace. 89 * 2) the watchdog timer has been stopped by userspace.
90 */ 90 */
91static void wdt_timer_tick(unsigned long data) 91static void wdt_timer_tick(struct timer_list *unused)
92{ 92{
93 if (time_before(jiffies, next_heartbeat) || 93 if (time_before(jiffies, next_heartbeat) ||
94 (!watchdog_active(&wdt_dev))) { 94 (!watchdog_active(&wdt_dev))) {
diff --git a/drivers/watchdog/w83877f_wdt.c b/drivers/watchdog/w83877f_wdt.c
index ba6b680af100..05658ecc0aa4 100644
--- a/drivers/watchdog/w83877f_wdt.c
+++ b/drivers/watchdog/w83877f_wdt.c
@@ -97,7 +97,7 @@ MODULE_PARM_DESC(nowayout,
97 "Watchdog cannot be stopped once started (default=" 97 "Watchdog cannot be stopped once started (default="
98 __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); 98 __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
99 99
100static void wdt_timer_ping(unsigned long); 100static void wdt_timer_ping(struct timer_list *);
101static DEFINE_TIMER(timer, wdt_timer_ping); 101static DEFINE_TIMER(timer, wdt_timer_ping);
102static unsigned long next_heartbeat; 102static unsigned long next_heartbeat;
103static unsigned long wdt_is_open; 103static unsigned long wdt_is_open;
@@ -108,7 +108,7 @@ static DEFINE_SPINLOCK(wdt_spinlock);
108 * Whack the dog 108 * Whack the dog
109 */ 109 */
110 110
111static void wdt_timer_ping(unsigned long data) 111static void wdt_timer_ping(struct timer_list *unused)
112{ 112{
113 /* If we got a heartbeat pulse within the WDT_US_INTERVAL 113 /* If we got a heartbeat pulse within the WDT_US_INTERVAL
114 * we agree to ping the WDT 114 * we agree to ping the WDT
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c
index 139e018a82b0..f45114fd8e1e 100644
--- a/drivers/xen/grant-table.c
+++ b/drivers/xen/grant-table.c
@@ -358,10 +358,10 @@ struct deferred_entry {
358 struct page *page; 358 struct page *page;
359}; 359};
360static LIST_HEAD(deferred_list); 360static LIST_HEAD(deferred_list);
361static void gnttab_handle_deferred(unsigned long); 361static void gnttab_handle_deferred(struct timer_list *);
362static DEFINE_TIMER(deferred_timer, gnttab_handle_deferred); 362static DEFINE_TIMER(deferred_timer, gnttab_handle_deferred);
363 363
364static void gnttab_handle_deferred(unsigned long unused) 364static void gnttab_handle_deferred(struct timer_list *unused)
365{ 365{
366 unsigned int nr = 10; 366 unsigned int nr = 10;
367 struct deferred_entry *first = NULL; 367 struct deferred_entry *first = NULL;
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 423159abd501..691032107f8c 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -61,7 +61,7 @@ MODULE_PARM_DESC(update_ms, "milliseconds before pstore updates its content "
61 61
62static int pstore_new_entry; 62static int pstore_new_entry;
63 63
64static void pstore_timefunc(unsigned long); 64static void pstore_timefunc(struct timer_list *);
65static DEFINE_TIMER(pstore_timer, pstore_timefunc); 65static DEFINE_TIMER(pstore_timer, pstore_timefunc);
66 66
67static void pstore_dowork(struct work_struct *); 67static void pstore_dowork(struct work_struct *);
@@ -890,7 +890,7 @@ static void pstore_dowork(struct work_struct *work)
890 pstore_get_records(1); 890 pstore_get_records(1);
891} 891}
892 892
893static void pstore_timefunc(unsigned long dummy) 893static void pstore_timefunc(struct timer_list *unused)
894{ 894{
895 if (pstore_new_entry) { 895 if (pstore_new_entry) {
896 pstore_new_entry = 0; 896 pstore_new_entry = 0;
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index 1215229d1c12..ef2a47e0eab6 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -20,7 +20,7 @@
20static int irqfixup __read_mostly; 20static int irqfixup __read_mostly;
21 21
22#define POLL_SPURIOUS_IRQ_INTERVAL (HZ/10) 22#define POLL_SPURIOUS_IRQ_INTERVAL (HZ/10)
23static void poll_spurious_irqs(unsigned long dummy); 23static void poll_spurious_irqs(struct timer_list *unused);
24static DEFINE_TIMER(poll_spurious_irq_timer, poll_spurious_irqs); 24static DEFINE_TIMER(poll_spurious_irq_timer, poll_spurious_irqs);
25static int irq_poll_cpu; 25static int irq_poll_cpu;
26static atomic_t irq_poll_active; 26static atomic_t irq_poll_active;
@@ -143,7 +143,7 @@ out:
143 return ok; 143 return ok;
144} 144}
145 145
146static void poll_spurious_irqs(unsigned long dummy) 146static void poll_spurious_irqs(struct timer_list *unused)
147{ 147{
148 struct irq_desc *desc; 148 struct irq_desc *desc;
149 int i; 149 int i;
diff --git a/lib/random32.c b/lib/random32.c
index 65cc018fef40..4aaa76404d56 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -213,11 +213,11 @@ static int __init prandom_init(void)
213} 213}
214core_initcall(prandom_init); 214core_initcall(prandom_init);
215 215
216static void __prandom_timer(unsigned long dontcare); 216static void __prandom_timer(struct timer_list *unused);
217 217
218static DEFINE_TIMER(seed_timer, __prandom_timer); 218static DEFINE_TIMER(seed_timer, __prandom_timer);
219 219
220static void __prandom_timer(unsigned long dontcare) 220static void __prandom_timer(struct timer_list *unused)
221{ 221{
222 u32 entropy; 222 u32 entropy;
223 unsigned long expires; 223 unsigned long expires;
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index b36dceab0dc1..de4a0cafb19f 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -125,7 +125,7 @@ static struct neighbour *dn_dst_neigh_lookup(const struct dst_entry *dst,
125 struct sk_buff *skb, 125 struct sk_buff *skb,
126 const void *daddr); 126 const void *daddr);
127static int dn_route_input(struct sk_buff *); 127static int dn_route_input(struct sk_buff *);
128static void dn_run_flush(unsigned long dummy); 128static void dn_run_flush(struct timer_list *unused);
129 129
130static struct dn_rt_hash_bucket *dn_rt_hash_table; 130static struct dn_rt_hash_bucket *dn_rt_hash_table;
131static unsigned int dn_rt_hash_mask; 131static unsigned int dn_rt_hash_mask;
@@ -357,7 +357,7 @@ static int dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_rou
357 return 0; 357 return 0;
358} 358}
359 359
360static void dn_run_flush(unsigned long dummy) 360static void dn_run_flush(struct timer_list *unused)
361{ 361{
362 int i; 362 int i;
363 struct dn_route *rt, *next; 363 struct dn_route *rt, *next;
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index 9f2e73c71768..7f59c8fabeeb 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -46,7 +46,7 @@
46static atomic_t fl_size = ATOMIC_INIT(0); 46static atomic_t fl_size = ATOMIC_INIT(0);
47static struct ip6_flowlabel __rcu *fl_ht[FL_HASH_MASK+1]; 47static struct ip6_flowlabel __rcu *fl_ht[FL_HASH_MASK+1];
48 48
49static void ip6_fl_gc(unsigned long dummy); 49static void ip6_fl_gc(struct timer_list *unused);
50static DEFINE_TIMER(ip6_fl_gc_timer, ip6_fl_gc); 50static DEFINE_TIMER(ip6_fl_gc_timer, ip6_fl_gc);
51 51
52/* FL hash table lock: it protects only of GC */ 52/* FL hash table lock: it protects only of GC */
@@ -127,7 +127,7 @@ static void fl_release(struct ip6_flowlabel *fl)
127 spin_unlock_bh(&ip6_fl_lock); 127 spin_unlock_bh(&ip6_fl_lock);
128} 128}
129 129
130static void ip6_fl_gc(unsigned long dummy) 130static void ip6_fl_gc(struct timer_list *unused)
131{ 131{
132 int i; 132 int i;
133 unsigned long now = jiffies; 133 unsigned long now = jiffies;
diff --git a/net/netrom/nr_loopback.c b/net/netrom/nr_loopback.c
index 989ae647825e..215ad22a9647 100644
--- a/net/netrom/nr_loopback.c
+++ b/net/netrom/nr_loopback.c
@@ -15,7 +15,7 @@
15#include <net/netrom.h> 15#include <net/netrom.h>
16#include <linux/init.h> 16#include <linux/init.h>
17 17
18static void nr_loopback_timer(unsigned long); 18static void nr_loopback_timer(struct timer_list *);
19 19
20static struct sk_buff_head loopback_queue; 20static struct sk_buff_head loopback_queue;
21static DEFINE_TIMER(loopback_timer, nr_loopback_timer); 21static DEFINE_TIMER(loopback_timer, nr_loopback_timer);
@@ -48,7 +48,7 @@ int nr_loopback_queue(struct sk_buff *skb)
48 return 1; 48 return 1;
49} 49}
50 50
51static void nr_loopback_timer(unsigned long param) 51static void nr_loopback_timer(struct timer_list *unused)
52{ 52{
53 struct sk_buff *skb; 53 struct sk_buff *skb;
54 ax25_address *nr_dest; 54 ax25_address *nr_dest;
diff --git a/security/keys/gc.c b/security/keys/gc.c
index afb3a9175d76..b93603724b8c 100644
--- a/security/keys/gc.c
+++ b/security/keys/gc.c
@@ -29,7 +29,7 @@ DECLARE_WORK(key_gc_work, key_garbage_collector);
29/* 29/*
30 * Reaper for links from keyrings to dead keys. 30 * Reaper for links from keyrings to dead keys.
31 */ 31 */
32static void key_gc_timer_func(unsigned long); 32static void key_gc_timer_func(struct timer_list *);
33static DEFINE_TIMER(key_gc_timer, key_gc_timer_func); 33static DEFINE_TIMER(key_gc_timer, key_gc_timer_func);
34 34
35static time_t key_gc_next_run = LONG_MAX; 35static time_t key_gc_next_run = LONG_MAX;
@@ -84,7 +84,7 @@ void key_schedule_gc_links(void)
84 * Some key's cleanup time was met after it expired, so we need to get the 84 * Some key's cleanup time was met after it expired, so we need to get the
85 * reaper to go through a cycle finding expired keys. 85 * reaper to go through a cycle finding expired keys.
86 */ 86 */
87static void key_gc_timer_func(unsigned long data) 87static void key_gc_timer_func(struct timer_list *unused)
88{ 88{
89 kenter(""); 89 kenter("");
90 key_gc_next_run = LONG_MAX; 90 key_gc_next_run = LONG_MAX;