1. 19 Mar, 2018 4 commits
  2. 11 Feb, 2018 1 commit
    • Linus Torvalds's avatar
      vfs: do bulk POLL* -> EPOLL* replacement · a9a08845
      Linus Torvalds authored
      
      
      This is the mindless scripted replacement of kernel use of POLL*
      variables as described by Al, done by this script:
      
          for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
              L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
              for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done
          done
      
      with de-mangling cleanups yet to come.
      
      NOTE! On almost all architectures, the EPOLL* constants have the same
      values as the POLL* constants do.  But they keyword here is "almost".
      For various bad reasons they aren't the same, and epoll() doesn't
      actually work quite correctly in some cases due to this on Sparc et al.
      
      The next patch from Al will sort out the final differences, and we
      should be all done.
      Scripted-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a9a08845
  3. 01 Dec, 2017 1 commit
  4. 28 Nov, 2017 1 commit
  5. 05 Oct, 2017 2 commits
    • Kees Cook's avatar
      timer: Fix two mistakes in callback conversions · 6ac35264
      Kees Cook authored
      
      
      Two errors found their way into the timer callback conversions that
      weren't noticed with x86 allmodconfig.
      Reported-by: default avatarkernel test robot <lkp@01.org>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/20171005171035.GA34831@beast
      6ac35264
    • Kees Cook's avatar
      timer: Remove init_timer_deferrable() in favor of timer_setup() · df7e828c
      Kees Cook authored
      
      
      This refactors the only users of init_timer_deferrable() to use
      the new timer_setup() and from_timer(). Removes definition of
      init_timer_deferrable().
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Acked-by: David S. Miller <davem@davemloft.net> # for networking parts
      Acked-by: Sebastian Reichel <sre@kernel.org> # for drivers/hsi parts
      Cc: linux-mips@linux-mips.org
      Cc: Petr Mladek <pmladek@suse.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Lai Jiangshan <jiangshanlai@gmail.com>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Kalle Valo <kvalo@qca.qualcomm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: linux1394-devel@lists.sourceforge.net
      Cc: Chris Metcalf <cmetcalf@mellanox.com>
      Cc: linux-s390@vger.kernel.org
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Ursula Braun <ubraun@linux.vnet.ibm.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: Harish Patil <harish.patil@cavium.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Manish Chopra <manish.chopra@cavium.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: linux-pm@vger.kernel.org
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Julian Wiedmann <jwi@linux.vnet.ibm.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Mark Gross <mark.gross@intel.com>
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Cc: linux-watchdog@vger.kernel.org
      Cc: linux-scsi@vger.kernel.org
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: linux-wireless@vger.kernel.org
      Cc: Sebastian Reichel <sre@kernel.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
      Cc: Michael Reed <mdr@sgi.com>
      Cc: netdev@vger.kernel.org
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
      Link: https://lkml.kernel.org/r/1507159627-127660-6-git-send-email-keescook@chromium.org
      df7e828c
  6. 01 Oct, 2017 1 commit
  7. 08 Jun, 2017 4 commits
  8. 21 Apr, 2017 1 commit
  9. 02 Mar, 2017 1 commit
  10. 25 Feb, 2017 1 commit
  11. 20 Oct, 2016 1 commit
    • Jarod Wilson's avatar
      net: use core MTU range checking in misc drivers · b3e3893e
      Jarod Wilson authored
      firewire-net:
      - set min/max_mtu
      - remove fwnet_change_mtu
      
      nes:
      - set max_mtu
      - clean up nes_netdev_change_mtu
      
      xpnet:
      - set min/max_mtu
      - remove xpnet_dev_change_mtu
      
      hippi:
      - set min/max_mtu
      - remove hippi_change_mtu
      
      batman-adv:
      - set max_mtu
      - remove batadv_interface_change_mtu
      - initialization is a little async, not 100% certain that max_mtu is set
        in the optimal place, don't have hardware to test with
      
      rionet:
      - set min/max_mtu
      - remove rionet_change_mtu
      
      slip:
      - set min/max_mtu
      - streamline sl_change_mtu
      
      um/net_kern:
      - remove pointless ndo_change_mtu
      
      hsi/clients/ssi_protocol:
      - use core MTU range checking
      - remove now redundant ssip_pn_set_mtu
      
      ipoib:
      - set a default max MTU value
      - Note: ipoib's actual max MTU can vary, depending on if the device is in
        connected mode or not, so we'll just set the max_mtu value to the max
        possible, and let the ndo_change_mtu function continue to validate any new
        MTU change requests with checks for CM or not...
      b3e3893e
  12. 27 Jun, 2016 3 commits
  13. 09 Jun, 2016 1 commit
    • Iago Abal's avatar
      HSI: cmt_speech: Fix double spin_lock · 3c13ab1d
      Iago Abal authored
      Release &hi->lock before calling `cs_hsi_control_read_error' to avoid deadlock.
      
      The bug was found using EBA (https://github.com/models-team/eba
      
      ), which reported
      the following:
      
          Double lock
          first at drivers/hsi/clients/cmt_speech.c:443
          second at drivers/hsi/clients/cmt_speech.c:447
          In cs_hsi_read_on_control_complete defined at drivers/hsi/clients/cmt_speech.c:438:
          (!) drivers/hsi/clients/cmt_speech.c:443: spin_lock(& hi->lock);
          (?) drivers/hsi/clients/cmt_speech.c:445: msg->status == 4 -> true
          (!) drivers/hsi/clients/cmt_speech.c:447: cs_hsi_control_read_error(hi, msg);
              (!) drivers/hsi/clients/cmt_speech.c:407: __cs_hsi_error_pre(hi, msg, "control read",
                             & hi->control_state);
                  (!) drivers/hsi/clients/cmt_speech.c:382: spin_lock(& hi->lock);
      Signed-off-by: default avatarIago Abal <mail@iagoabal.eu>
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      3c13ab1d
  14. 29 May, 2016 1 commit
  15. 28 Jan, 2016 2 commits
    • Sebastian Reichel's avatar
      HSI: ssi-protocol: Use handshake logic from n950 · 87d99063
      Sebastian Reichel authored
      
      
      When using the ssi-protocol driver with the Nokia N950, the
      following error is thrown during modem powered up sequence.
      
      [13852.274993]  port0: SSI error: 0x01
      [13852.279205] ssi-protocol ssi-protocol: RX error detected
      [13852.284820] ssi-protocol ssi-protocol: Main state: 1
      [13852.290069] ssi-protocol ssi-protocol: Recv state: 0
      [13852.295288] ssi-protocol ssi-protocol: Send state: 0
      [13852.300537] ssi-protocol ssi-protocol: CMT Offline
      [13852.305603] ssi-protocol ssi-protocol: Wake test 1
      [13852.310638] ssi-protocol ssi-protocol: Data RX id: 0
      [13852.315887] ssi-protocol ssi-protocol: Data TX id: 0
      [13856.001464] ssi-protocol ssi-protocol: Watchdog trigerred
      [13856.007293] ssi-protocol ssi-protocol: Main state: 1
      [13856.012542] ssi-protocol ssi-protocol: Recv state: 0
      [13856.017761] ssi-protocol ssi-protocol: Send state: 0
      [13856.023010] ssi-protocol ssi-protocol: CMT Offline
      [13856.028045] ssi-protocol ssi-protocol: Wake test 0
      [13856.033111] ssi-protocol ssi-protocol: Data RX id: 0
      [13856.038330] ssi-protocol ssi-protocol: Data TX id: 0
      
      This patch fixes the issue by using the handshake setup from
      the Nokia N950 kernel. The new handshake sequence also works
      with the N900, so there is no need to differentiate between
      both modems.
      Tested-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      87d99063
    • Sebastian Reichel's avatar
      HSI: nokia-modem: add n950 and n9 support · 633f67a5
      Sebastian Reichel authored
      
      
      The Nokia N950 and Nokia N9 also have a SSI connected
      modem, which use the same protocols as the Nokia N900,
      but with increased link speed (96000 kbps instead of
      55000 kbps) and with less GPIOs.
      
      Since it's unclear, if the N950 and the N9 use exactly
      the same modem, each of them gets their own compatible
      string.
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Tested-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
      633f67a5
  16. 18 Sep, 2015 1 commit
  17. 10 Sep, 2015 1 commit
  18. 23 Jun, 2015 3 commits
  19. 05 Apr, 2015 1 commit
  20. 31 Mar, 2015 2 commits
  21. 28 Feb, 2015 1 commit
  22. 04 Jan, 2015 1 commit
  23. 14 Nov, 2014 2 commits
  24. 03 Oct, 2014 1 commit
  25. 20 Jul, 2014 1 commit
  26. 15 Jul, 2014 1 commit
    • Tom Gundersen's avatar
      net: set name_assign_type in alloc_netdev() · c835a677
      Tom Gundersen authored
      
      
      Extend alloc_netdev{,_mq{,s}}() to take name_assign_type as argument, and convert
      all users to pass NET_NAME_UNKNOWN.
      
      Coccinelle patch:
      
      @@
      expression sizeof_priv, name, setup, txqs, rxqs, count;
      @@
      
      (
      -alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs)
      +alloc_netdev_mqs(sizeof_priv, name, NET_NAME_UNKNOWN, setup, txqs, rxqs)
      |
      -alloc_netdev_mq(sizeof_priv, name, setup, count)
      +alloc_netdev_mq(sizeof_priv, name, NET_NAME_UNKNOWN, setup, count)
      |
      -alloc_netdev(sizeof_priv, name, setup)
      +alloc_netdev(sizeof_priv, name, NET_NAME_UNKNOWN, setup)
      )
      
      v9: move comments here from the wrong commit
      Signed-off-by: default avatarTom Gundersen <teg@jklm.no>
      Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c835a677