1. 06 Nov, 2017 6 commits
    • Kees Cook's avatar
      ide: Convert timers to use timer_setup() · 10738ba8
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: linux-ide@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      10738ba8
    • Kees Cook's avatar
      drbd: Convert timers to use timer_setup() · 2bccef39
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Philipp Reisner <philipp.reisner@linbit.com>
      Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
      Cc: drbd-dev@lists.linbit.com
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      2bccef39
    • Kees Cook's avatar
      mailbox: Convert timers to use timer_setup() · c6f15047
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Ley Foon Tan <lftan@altera.com>
      Cc: Jassi Brar <jassisinghbrar@gmail.com>
      Cc: nios2-dev@lists.rocketboards.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      c6f15047
    • Kees Cook's avatar
      crypto: Convert timers to use timer_setup() · f34d8d50
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Jesper Nilsson <jesper.nilsson@axis.com>
      Cc: Lars Persson <lars.persson@axis.com>
      Cc: Niklas Cassel <niklas.cassel@axis.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: linux-arm-kernel@axis.com
      Cc: linux-crypto@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarJamie Iles <jamie@jamieiles.com>
      Acked-by: Lars Persson <lars.persson@axis.com> # for axis
      f34d8d50
    • Kees Cook's avatar
      drivers/pcmcia: omap1: Fix error in automated timer conversion · 439dc05f
      Kees Cook authored
      One part of automated timer conversion tools did not take into account
      void * variables when searching out prior direct timer callback usage,
      which resulted in an attempt to dereference the timer field without a
      proper type.
      
      Reported-by: kbuild test robot
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      439dc05f
    • Kees Cook's avatar
      ARM: footbridge: Fix typo in timer conversion · 14c8276d
      Kees Cook authored
      This fixes a missing semi-colon. It went unnoticed initially since it is
      only built under certain defconfigs.
      
      Reported-by: kbuild test robot
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      14c8276d
  2. 02 Nov, 2017 23 commits
    • Thomas Gleixner's avatar
      Merge tag 'timers-conversion-next3' of... · c7c2f3d9
      Thomas Gleixner authored
      Merge tag 'timers-conversion-next3' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into timers/core
      
      Pull the 3rd batch of timer conversions from Kees Cook:
      
       - various per-architecture conversions
       - several driver conversions not picked up by a specific maintainer
       - other Acked/Reviewed conversions to go through tip
      c7c2f3d9
    • Kees Cook's avatar
      drivers/sgi-xp: Convert timers to use timer_setup() · 25b42fa8
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Cliff Whickman <cpw@sgi.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarRobin Holt <robinmholt@gmail.com>
      25b42fa8
    • Kees Cook's avatar
      drivers/pcmcia: Convert timers to use timer_setup() · 41760d0e
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: bcm-kernel-feedback-list@broadcom.com
      Cc: David Howells <dhowells@redhat.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: linux-pcmcia@lists.infradead.org
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: Russell King <rmk+kernel@armlinux.org.uk> # for soc_common.c
      41760d0e
    • Kees Cook's avatar
      drivers/memstick: Convert timers to use timer_setup() · 6243d38f
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Maxim Levitsky <maximlevitsky@gmail.com>
      Cc: Alex Dubov <oakad@yahoo.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      6243d38f
    • Kees Cook's avatar
      drivers/macintosh: Convert timers to use timer_setup() · 0788f285
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      0788f285
    • Kees Cook's avatar
      hwrng/xgene-rng: Convert timers to use timer_setup() · 200d24d6
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: linux-crypto@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      200d24d6
    • Kees Cook's avatar
      auxdisplay: Convert timers to use timer_setup() · 607a6301
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarPaul Burton <paul.burton@mips.com>
      Tested-by: Paul Burton <paul.burton@mips.com> # for img-ascii-lcd
      607a6301
    • Kees Cook's avatar
      sparc/led: Convert timers to use timer_setup() · db275f2a
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Adds a static variable to hold timeout
      value.
      
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Geliang Tang <geliangtang@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: sparclinux@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      db275f2a
    • Kees Cook's avatar
      mips: ip22/32: Convert timers to use timer_setup() · a66b899d
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Adds a static variable to hold timeout
      value.
      
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: linux-mips@linux-mips.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      a66b899d
    • Kees Cook's avatar
      arm: pxa: Convert timers to use timer_setup() · 96d13082
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Adds a static variable to hold the
      interrupt private data pointer.
      
      Cc: Daniel Mack <daniel@zonque.org>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Robert Jarzmik <robert.jarzmik@free.fr>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      96d13082
    • Kees Cook's avatar
      ARM: footbridge: Convert timers to use timer_setup() · b7bea32f
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      b7bea32f
    • Kees Cook's avatar
      ia64: Convert timers to use timer_setup() · 2c513d4f
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      One less trivial change was removing the repeated casting for callers
      of bte_error_handler() by fixing its function declaration and adding a
      small wrapper for the timer callback instead.
      
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Joe Perches <joe@perches.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      Cc: linux-ia64@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      2c513d4f
    • Kees Cook's avatar
      xtensa: Convert timers to use timer_setup() · d8479a21
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Chris Zankel <chris@zankel.net>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: linux-xtensa@linux-xtensa.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      d8479a21
    • Kees Cook's avatar
      x86, calgary: Convert timers to use timer_setup() · 3142692a
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Muli Ben-Yehuda <mulix@mulix.org>
      Cc: Jon Mason <jdmason@kudzu.us>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: x86@kernel.org
      Cc: iommu@lists.linux-foundation.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      3142692a
    • Kees Cook's avatar
      powerpc/watchdog: Convert timers to use timer_setup() · 5943cf4a
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Nicholas Piggin <npiggin@gmail.com>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      5943cf4a
    • Kees Cook's avatar
      watchdog: lpc18xx_wdt: Convert timers to use timer_setup() · d1cadcb7
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Joachim Eastwood <manabian@gmail.com>
      Cc: linux-watchdog@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      d1cadcb7
    • Kees Cook's avatar
      watchdog: cpwd: Convert timers to use timer_setup() · 4fa42b4e
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Switches to using the global that is
      used everywhere else.
      
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: linux-watchdog@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
      4fa42b4e
    • Kees Cook's avatar
      media: pvrusb2: Convert timers to use timer_setup() · 8da0edf2
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Mike Isely <isely@pobox.com>
      Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
      Cc: linux-media@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-By: default avatarMike Isely <isely@pobox.com>
      Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      8da0edf2
    • Kees Cook's avatar
      drm/etnaviv: Convert timers to use timer_setup() · 43b70524
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Lucas Stach <l.stach@pengutronix.de>
      Cc: Russell King <linux+etnaviv@armlinux.org.uk>
      Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: etnaviv@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      43b70524
    • Kees Cook's avatar
      ACPI / APEI: Convert timers to use timer_setup() · d5272003
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Tyler Baicar <tbaicar@codeaurora.org>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: James Morse <james.morse@arm.com>
      Cc: "Jonathan (Zhixiong) Zhang" <zjzhang@codeaurora.org>
      Cc: Shiju Jose <shiju.jose@huawei.com>
      Cc: linux-acpi@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Tested-by: default avatarTyler Baicar <tbaicar@codeaurora.org>
      d5272003
    • Kees Cook's avatar
      fs/ncpfs: Convert timers to use timer_setup() · 9b5dfbdd
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Petr Vandrovec <petr@vandrovec.name>
      Cc: Jan Kara <jack@suse.cz>
      Cc: Jens Axboe <axboe@fb.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarJan Kara <jack@suse.cz>
      9b5dfbdd
    • Kees Cook's avatar
      rcu: Convert timers to use timer_setup() · fd30b717
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
      Cc: Josh Triplett <josh@joshtriplett.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Lai Jiangshan <jiangshanlai@gmail.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      fd30b717
    • Randy Dunlap's avatar
      kernel/time/Kconfig: Fix typo in comment · 6082a6e4
      Randy Dunlap authored
      Fix typo in Kconfig comment text.
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Jiri Kosina <trivial@kernel.org>
      Link: https://lkml.kernel.org/r/0e586dd4-2b27-864e-c252-bc72df52fd01@infradead.org
      6082a6e4
  3. 01 Nov, 2017 11 commits
    • Thomas Gleixner's avatar
      Merge tag 'timers-conversion-next2' of... · da2963e8
      Thomas Gleixner authored
      Merge tag 'timers-conversion-next2' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into timers/core
      
      Pull the next batch of timer conversions from Kees Cook:
      
       - Second batch of scsi conversions that have been Reviewed and/or Acked.
       - Various *_on_stack() changes for USB, Acked by Greg.
       - DRM conversion that was declared too late for drm's tree, but Acked for timers.
       - RAS driver conversion, Acked.
      da2963e8
    • Kees Cook's avatar
      drm: gma500: Convert timers to use timer_setup() · 856ec53f
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      856ec53f
    • Kees Cook's avatar
      usb: usbtest: Convert timers to use timer_setup() · 7d221856
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Also adds missing call to
      destroy_timer_on_stack();
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
      Cc: linux-usb@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7d221856
    • Kees Cook's avatar
      RAS/CEC: Convert timers to use timer_setup() · 254db5bd
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
      Cc: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
      254db5bd
    • Kees Cook's avatar
      target/iscsi: Convert timers to use timer_setup() · f7c9564a
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Includes a fix for correcting an
      on-stack timer usage.
      
      Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
      Cc: Bart Van Assche <bart.vanassche@sandisk.com>
      Cc: Jiang Yi <jiangyilism@gmail.com>
      Cc: Varun Prakash <varun@chelsio.com>
      Cc: linux-scsi@vger.kernel.org
      Cc: target-devel@vger.kernel.org
      Reviewed-and-Tested-by: default avatarBart Van Assche <Bart.VanAssche@wdc.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      f7c9564a
    • Bart Van Assche's avatar
      target/iscsi: Simplify timer manipulation code · 8a47aa9d
      Bart Van Assche authored
      Move timer initialization from before add_timer() to the context
      where the containing object is initialized. Use setup_timer() and
      mod_timer() instead of open coding these. Use 'jiffies' instead
      of get_jiffies_64() when calculating expiry times because expiry
      times have type unsigned long, just like 'jiffies'.
      Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
      Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Andy Grover <agrover@redhat.com>
      Cc: David Disseldorp <ddiss@suse.de>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      8a47aa9d
    • Kees Cook's avatar
      scsi: qla4xxx: Convert timers to use timer_setup() · d744644a
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: QLogic-Storage-Upstream@qlogic.com
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      Acked-by: default avatarManish Rangankar <Manish.Rangankar@cavium.com>
      d744644a
    • Kees Cook's avatar
      scsi: sas: Convert timers to use timer_setup() · 77570eed
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. This requires adding a pointer to
      hold the timer's target task, as there isn't a link back from slow_task.
      
      Cc: John Garry <john.garry@huawei.com>
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Jack Wang <jinpu.wang@profitbricks.com>
      Cc: lindar_liu@usish.com
      Cc: Jens Axboe <axboe@fb.com>
      Cc: Hannes Reinecke <hare@suse.com>
      Cc: Johannes Thumshirn <jthumshirn@suse.de>
      Cc: Benjamin Block <bblock@linux.vnet.ibm.com>
      Cc: Baoyou Xie <baoyou.xie@linaro.org>
      Cc: Wei Yongjun <weiyongjun1@huawei.com>
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      Acked-by: John Garry <john.garry@huawei.com> # for hisi_sas part
      Tested-by: John Garry <john.garry@huawei.com> # basic sanity test for hisi_sas
      Reviewed-by: default avatarJack Wang <jinpu.wang@profitbricks.com>
      77570eed
    • Kees Cook's avatar
      scsi: pmcraid: Convert timers to use timer_setup() · 242b5657
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      242b5657
    • Kees Cook's avatar
      scsi: megaraid: Convert timers to use timer_setup() · c251a7be
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly. Also consolidates the timer setup
      functions arguments, which are all identical, and corrects on-stack timer
      usage.
      
      Cc: Kashyap Desai <kashyap.desai@broadcom.com>
      Cc: Sumit Saxena <sumit.saxena@broadcom.com>
      Cc: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: megaraidlinux.pdl@broadcom.com
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      c251a7be
    • Kees Cook's avatar
      scsi: lpfc: Convert timers to use timer_setup() · f22eb4d3
      Kees Cook authored
      In preparation for unconditionally passing the struct timer_list pointer to
      all timer callbacks, switch to using the new timer_setup() and from_timer()
      to pass the timer pointer explicitly.
      
      Cc: James Smart <james.smart@broadcom.com>
      Cc: Dick Kennedy <dick.kennedy@broadcom.com>
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: linux-scsi@vger.kernel.org
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      f22eb4d3