1. 21 May, 2014 15 commits
  2. 08 May, 2014 1 commit
  3. 07 May, 2014 4 commits
    • Thierry Reding's avatar
      pwm: lpss: Fix const qualifier and sparse warnings · 89c0339e
      Thierry Reding authored
      Fixes the following warnings reported by the 0-DAY kernel build testing
      backend:
      
         drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_probe_pci':
      >> drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of 'pwm_lpss_probe' discards 'const' qualifier from pointer target type [enabled by default]
           lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
           ^
         drivers/pwm/pwm-lpss.c:130:30: note: expected 'struct pwm_lpss_boardinfo *' but argument is of type 'const struct pwm_lpss_boardinfo *'
          static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
                                       ^
      >> drivers/pwm/pwm-lpss.c:143:28: sparse: incorrect type in return expression (different address spaces)
         drivers/pwm/pwm-lpss.c:143:28:    expected struct pwm_lpss_chip *
         drivers/pwm/pwm-lpss.c:143:28:    got void [noderef] <asn:2>*regs
      >> drivers/pwm/pwm-lpss.c:192:63: sparse: incorrect type in argument 3 (different modifiers)
         drivers/pwm/pwm-lpss.c:192:63:    expected struct pwm_lpss_boardinfo *info
         drivers/pwm/pwm-lpss.c:192:63:    got struct pwm_lpss_boardinfo const *[assigned] info
         drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_probe_pci':
         drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of 'pwm_lpss_probe' discards 'const' qualifier from pointer target type [enabled by default]
           lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
           ^
         drivers/pwm/pwm-lpss.c:130:30: note: expected 'struct pwm_lpss_boardinfo *' but argument is of type 'const struct pwm_lpss_boardinfo *'
          static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
                                       ^
      Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
      89c0339e
    • Beniamino Galvani's avatar
      pwm: spear: fix check on pwmchip_add() return value · 5b1e8e06
      Beniamino Galvani authored
      pwmchip_add() returns zero on success and a negative value on error,
      so the condition of the check must be inverted.
      Signed-off-by: default avatarBeniamino Galvani <b.galvani@gmail.com>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
      5b1e8e06
    • Alexandre Courbot's avatar
      pwm-backlight: switch to gpiod interface · 257462db
      Alexandre Courbot authored
      Switch to the new gpiod interface, which allows to handle GPIO
      properties such as active low transparently and removes a whole bunch of
      code.
      
      There are still a couple of users of this driver that rely on passing
      the enable GPIO number through platform data, so a fallback mechanism
      using a GPIO number is still available to avoid breaking them. It will
      be removed once current users have switched to the GPIO lookup tables
      provided by the gpiod interface.
      Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
      257462db
    • Alexandre Courbot's avatar
      ARM: SAMSUNG: remove GPIO flags in dev-backlight · a4406f16
      Alexandre Courbot authored
      The pwm-backlight driver is moving to use the gpiod interface,
      which has its own mapping mechanism for platform data GPIOs.
      These mappings carry GPIO properties like active low so they don't have
      to be explicitly handled by GPIO consumers.
      
      Because of this change, the enable_gpio_flags member of
      platform_pwm_backlight_data is going away. dev-backlight was passing
      this member, but had no user making use of it, so it can safely be
      removed. Further GPIOs used by pwm-backlight are expected to be
      defined using the mechanisms provided by the gpiod API.
      Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
      Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
      a4406f16
  4. 02 May, 2014 1 commit
  5. 28 Apr, 2014 13 commits
  6. 13 Apr, 2014 6 commits
    • Linus Torvalds's avatar
      Linux 3.15-rc1 · c9eaa447
      Linus Torvalds authored
      c9eaa447
    • Geert Uytterhoeven's avatar
      mm: Initialize error in shmem_file_aio_read() · f7c1d074
      Geert Uytterhoeven authored
      Some versions of gcc even warn about it:
      
        mm/shmem.c: In function ‘shmem_file_aio_read’:
        mm/shmem.c:1414: warning: ‘error’ may be used uninitialized in this function
      
      If the loop is aborted during the first iteration by one of the two
      first break statements, error will be uninitialized.
      
      Introduced by commit 6e58e79d ("introduce copy_page_to_iter, kill
      loop over iovec in generic_file_aio_read()").
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f7c1d074
    • Geert Uytterhoeven's avatar
      cifs: Use min_t() when comparing "size_t" and "unsigned long" · e686bd8d
      Geert Uytterhoeven authored
      On 32 bit, size_t is "unsigned int", not "unsigned long", causing the
      following warning when comparing with PAGE_SIZE, which is always "unsigned
      long":
      
        fs/cifs/file.c: In function ‘cifs_readdata_to_iov’:
        fs/cifs/file.c:2757: warning: comparison of distinct pointer types lacks a cast
      
      Introduced by commit 7f25bba8 ("cifs_iovec_read: keep iov_iter
      between the calls of cifs_readdata_to_iov()"), which changed the
      signedness of "remaining" and the code from min_t() to min().
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e686bd8d
    • Linus Torvalds's avatar
      Merge branch 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux · bf3a3407
      Linus Torvalds authored
      Pull slab changes from Pekka Enberg:
       "The biggest change is byte-sized freelist indices which reduces slab
        freelist memory usage:
      
          https://lkml.org/lkml/2013/12/2/64"
      
      * 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux:
        mm: slab/slub: use page->list consistently instead of page->lru
        mm/slab.c: cleanup outdated comments and unify variables naming
        slab: fix wrongly used macro
        slub: fix high order page allocation problem with __GFP_NOFAIL
        slab: Make allocations with GFP_ZERO slightly more efficient
        slab: make more slab management structure off the slab
        slab: introduce byte sized index for the freelist of a slab
        slab: restrict the number of objects in a slab
        slab: introduce helper functions to get/set free object
        slab: factor out calculate nr objects in cache_estimate
      bf3a3407
    • Linus Torvalds's avatar
      Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 321d03c8
      Linus Torvalds authored
      Pull misc kbuild changes from Michal Marek:
       "Here is the non-critical part of kbuild:
         - One bogus coccinelle check removed, one check fixed not to suggest
           the obsolete PTR_RET macro
         - scripts/tags.sh does not index the generated *.mod.c files
         - new objdiff tool to list differences between two versions of an
           object file
         - A fix for scripts/bootgraph.pl"
      
      * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        scripts/coccinelle: Use PTR_ERR_OR_ZERO
        scripts/bootgraph.pl: Add graphic header
        scripts: objdiff: detect object code changes between two commits
        Coccicheck: Remove memcpy to struct assignment test
        scripts/tags.sh: Ignore *.mod.c
      321d03c8
    • Mikulas Patocka's avatar
      sym53c8xx_2: Set DID_REQUEUE return code when aborting squeue · fd1232b2
      Mikulas Patocka authored
      This patch fixes I/O errors with the sym53c8xx_2 driver when the disk
      returns QUEUE FULL status.
      
      When the controller encounters an error (including QUEUE FULL or BUSY
      status), it aborts all not yet submitted requests in the function
      sym_dequeue_from_squeue.
      
      This function aborts them with DID_SOFT_ERROR.
      
      If the disk has full tag queue, the request that caused the overflow is
      aborted with QUEUE FULL status (and the scsi midlayer properly retries
      it until it is accepted by the disk), but the sym53c8xx_2 driver aborts
      the following requests with DID_SOFT_ERROR --- for them, the midlayer
      does just a few retries and then signals the error up to sd.
      
      The result is that disk returning QUEUE FULL causes request failures.
      
      The error was reproduced on 53c895 with COMPAQ BD03685A24 disk
      (rebranded ST336607LC) with command queue 48 or 64 tags.  The disk has
      64 tags, but under some access patterns it return QUEUE FULL when there
      are less than 64 pending tags.  The SCSI specification allows returning
      QUEUE FULL anytime and it is up to the host to retry.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: James Bottomley <JBottomley@Parallels.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fd1232b2