1. 29 Aug, 2017 9 commits
  2. 28 Aug, 2017 4 commits
  3. 12 Aug, 2017 1 commit
  4. 11 Aug, 2017 3 commits
  5. 09 Aug, 2017 2 commits
    • Hans de Goede's avatar
      power: supply: Fix power_supply_am_i_supplied to return -ENODEV when apropriate · 46cecd13
      Hans de Goede authored
      Commit 2848e039 ("power: supply: Make power_supply_am_i_supplied return
      -ENODEV if there are no suppliers") was supposed to make
      power_supply_am_i_supplied() return -ENODEV when there are no supplies
      which supply the supply passed to it.
      
      But instead it will only return -ENODEV when there are no supplies at
      all as data->count++; is incremented on every call of the iterator, rather
      then only when __power_supply_is_supplied_by returns true. This commit
      fixes this.
      
      Fixes: 2848e039 ("power: supply: Make power_supply_am_i_supplied ...")
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      46cecd13
    • Bhumika Goyal's avatar
      power: supply: add const to bin_attribute structures · 16ac345b
      Bhumika Goyal authored
      Add const to bin_attribute structures as they are only passed to the
      functions sysfs_{remove/create}_bin_file or
      device_{remove/create}_bin_file. The corresponding parameters
      passed are of type const, so declare the structures to be const.
      
      Done using Coccinelle:
      
      @M disable optional_qualifier@
      identifier s;
      position p;
      @@
      static struct bin_attribute s@p={...};
      
      @okay1@
      position p;
      identifier m.s;
      @@
      (
      sysfs_create_bin_file(...,&s@p,...)
      |
      sysfs_remove_bin_file(...,&s@p,...)
      )
      
      @bad@
      position p!={m.p,okay1.p};
      identifier m.s;
      @@
      s@p
      
      @change depends on !bad disable optional_qualifier@
      identifier m.s;
      @@
      static
      +const
      struct bin_attribute s={...};
      
      Same script was modified for device_{create/remove}_bin_file functions.
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
      16ac345b
  6. 25 Jul, 2017 9 commits
  7. 24 Jul, 2017 7 commits
  8. 23 Jul, 2017 5 commits
    • Linus Torvalds's avatar
      Linux 4.13-rc2 · 520eccdf
      Linus Torvalds authored
      520eccdf
    • Linus Torvalds's avatar
      Properly alphabetize MAINTAINERS file · 7683e9e5
      Linus Torvalds authored
      This adds a perl script to actually parse the MAINTAINERS file, clean up
      some whitespace in it, warn about errors in it, and then properly sort
      the end result.
      
      My perl-fu is atrocious, so the script has basically been created by
      randomly putting various characters in a pile, mixing them around, and
      then looking it the end result does anything interesting when used as a
      perl script.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7683e9e5
    • Linus Torvalds's avatar
      Fix up MAINTAINERS file problems · f47e07bc
      Linus Torvalds authored
      Prepping for scripting the MAINTAINERS file cleanup (and possible split)
      showed a couple of cases where the headers for a couple of entries were
      bogus.
      
      There's a few different kinds of bogosities:
      
       - the X-GENE SOC EDAC case was confused and split over two lines
      
       - there were four entries for "GREYBUS PROTOCOLS DRIVERS" that were all
         different things.
      
       - the NOKIA N900 CAMERA SUPPORT" was duplicated
      
      all of which were more obvious when you started doing associative arrays
      in perl to track these things by the header (so that we can alphabetize
      this thing properly, and so that we might split it up by the data too).
      
      Cc: Joe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f47e07bc
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · a56e88ec
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Some fixes and cleanups for running under Xen"
      
      * tag 'for-linus-4.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/balloon: don't online new memory initially
        xen/x86: fix cpu hotplug
        xen/grant-table: log the lack of grants
        xen/x86: Don't BUG on CPU0 offlining
      a56e88ec
    • Juergen Gross's avatar
      xen/balloon: don't online new memory initially · 96edd61d
      Juergen Gross authored
      When setting up the Xenstore watch for the memory target size the new
      watch will fire at once. Don't try to reach the configured target size
      by onlining new memory in this case, as the current memory size will
      be smaller in almost all cases due to e.g. BIOS reserved pages.
      
      Onlining new memory will lead to more problems e.g. undesired conflicts
      with NVMe devices meant to be operated as block devices.
      
      Instead remember the difference between target size and current size
      when the watch fires for the first time and apply it to any further
      size changes, too.
      
      In order to avoid races between balloon.c and xen-balloon.c init calls
      do the xen-balloon.c initialization from balloon.c.
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      96edd61d