]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
treewide: Switch DEFINE_TIMER callbacks to struct timer_list *
authorKees Cook <keescook@chromium.org>
Mon, 28 Aug 2017 18:28:21 +0000 (11:28 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 21 Nov 2017 23:57:05 +0000 (15:57 -0800)
commit24ed960abf1d50cb7834e99a0cfc081bc0656712
tree9eff9c73720604a2be0358083fb8c3c20a08a499
parent6cc73a06da439e80c6686883d45ca32b614a4b97
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>
39 files changed:
arch/arm/mach-ixp4xx/dsmg600-setup.c
arch/arm/mach-ixp4xx/nas100d-setup.c
arch/m68k/amiga/amisound.c
arch/m68k/mac/macboing.c
arch/mips/mti-malta/malta-display.c
arch/parisc/kernel/pdc_cons.c
drivers/atm/idt77105.c
drivers/atm/iphase.c
drivers/block/ataflop.c
drivers/char/dtlk.c
drivers/char/hangcheck-timer.c
drivers/char/nwbutton.c
drivers/char/nwbutton.h
drivers/char/rtc.c
drivers/input/touchscreen/s3c2410_ts.c
drivers/net/wireless/atmel/at76c50x-usb.c
drivers/staging/speakup/main.c
drivers/staging/speakup/synth.c
drivers/tty/cyclades.c
drivers/tty/isicom.c
drivers/tty/moxa.c
drivers/tty/rocket.c
drivers/tty/vt/keyboard.c
drivers/tty/vt/vt.c
drivers/watchdog/alim7101_wdt.c
drivers/watchdog/machzwd.c
drivers/watchdog/mixcomwd.c
drivers/watchdog/sbc60xxwdt.c
drivers/watchdog/sc520_wdt.c
drivers/watchdog/via_wdt.c
drivers/watchdog/w83877f_wdt.c
drivers/xen/grant-table.c
fs/pstore/platform.c
kernel/irq/spurious.c
lib/random32.c
net/decnet/dn_route.c
net/ipv6/ip6_flowlabel.c
net/netrom/nr_loopback.c
security/keys/gc.c