1. 25 Apr, 2019 3 commits
    • YueHaibing's avatar
      8e77ebce
    • Nathan Chancellor's avatar
      staging: kpc2000: Use memset to initialize resources · 3fcbb7d4
      Nathan Chancellor authored
      Clang warns:
      
      drivers/staging/kpc2000/kpc2000/cell_probe.c:96:38: warning: suggest
      braces around initialization of subobject [-Wmissing-braces]
          struct resource  resources[2] = {0};
                                           ^
                                           {}
      drivers/staging/kpc2000/kpc2000/cell_probe.c:314:38: warning: suggest
      braces around initialization of subobject [-Wmissing-braces]
          struct resource  resources[2] = {0};
                                           ^
                                           {}
      2 warnings generated.
      
      One way to fix these warnings is to add additional braces like Clang
      suggests; however, there has been a bit of push back from some
      maintainers, who just prefer memset as it is unambiguous, doesn't
      depend on a particular compiler version, and properly initializes all
      subobjects [1][2]. Do that here so there are no more warnings.
      
      [1]: https://lore.kernel.org/lkml/022e41c0-8465-dc7a-a45c-64187ecd9684@amd.com/
      [2]: https://lore.kernel.org/lkml/20181128.215241.702406654469517539.davem@davemloft.net/
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/455Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3fcbb7d4
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.2b' of... · bf402c08
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.2b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Second set of IIO new device support, features and cleanup for the 5.2 cycle.
      
      New device suport
      * ad7606
        - Support the AD7616 16 channel, 12bit ADC.
      * fxas21002c
        - New driver for this gyroscope with I2C and SPI support.
      * lsm6dsx
        - Support the lsm6dsr, new device information structure and dt bindings.
      * srf04
        - Addition device IDs for mb1000, mb1010, mb1020, mb1030 and mb1040 +
          support of different required trigger pulse lengths.
      * st-accel
        - Support the ls2de12, new device info and dt bindings.
      * ti-ads8344
        - New driver for this 8 channel, 16 bit SPI ADC.
      
      Binding conversions to yaml - we have started doing these in general for IIO.
      * avia-hx711
      * bmp085
      
      Cleanups and minor fixes / additions
      * ad5758
        - Fixup for some changes between preproduction parts and final part.
      * ad7606
        - Refactor handling of oversampling to make it easy to vary between
          supported devices.
      * ad9832
        - Organise includes.
        - Clock framework to handle clocks.
      * ad9834
        - Drop unnecessary parenthesis.
      * bmc150
        - Use __func__ rather than hardcoding.
      * dummy_evgen.
        - Fix a memleak on error in probe.
      * kxcjk1013
        - Add KXCJ91008 ACPI ID as seen in the wild.
        - Use __func__ rather than hardcoding.
      * imx7d
        - Local dev variable to simplify code a bit.
        - dev_err replaces pr_err to give more info.
        - devm_platform_ioremap_resource for small reduction in boilerplate.
        - Simplify probe and remove by sharing suspend / resume logic.
        - Devm for iio_device_register as remove only contains the unregister.
      * lsm6dsx
        - Remove a variable that was never read.
        - Open code values where they are effectively described by what is assigned
          to them rather than using uninformative defines.
      * max31856
        - Avoid an unintialized ret variable in a path that can't actually occur
          but is hard for a static checker to know.
      * max9611
        - White space
      * mpu3050
        - Reduce a sleep worst case by switching from msleep to usleep_range.
      * qcom-spmi-adc5
        - Add MODULE_DEVICE_TABLE to assist autoloading of this as a module.
      * stm32-dfsdm
        - Fix missing dependencies.
      * stm32-timer trigger
        - Fix a build issue when disabled.
      * ti-ads7950
        - Fix mising dependency on CONFIG_GPIOLIB.
      
      * tag 'iio-for-5.2b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (42 commits)
        iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
        iio: dummy_evgen: fix possible memleak in evgen init
        iio:accel:Switch hardcoded function name with a reference to __func__ making the code more maintainable
        iio: adc: stm32-dfsdm: fix triggered buffer build dependency
        iio: adc: stm32-dfsdm: fix unmet direct dependencies detected
        iio: trigger: stm32-timer: fix build issue when disabled
        iio: imx7d_adc: Use devm_iio_device_register()
        iio: imx7d_adc: Simplify imx7d_adc_remove() with imx7d_adc_suspend()
        iio: imx7d_adc: Simplify imx7d_adc_probe() with imx7d_adc_resume()
        drivers/iio/gyro/mpu3050-core.c: This patch fix the following checkpatch warning.
        iio: dac: ad5758: Modifications for new revision
        iio: imu: st_lsm6dsx: inline per-sensor data
        iio: adc: Add driver for the TI ADS8344 A/DC chips
        dt-bindings: iio: adc: Add bindings for TI ADS8344 A/DC chips
        MAINTAINERS: add entry for fxas21002c gyro driver
        iio: gyro: fxas21002c: add spi driver
        iio: gyro: fxas21002c: add i2c driver
        iio: gyro: add core driver for fxas21002c
        iio: gyro: add DT bindings to fxas21002c
        Kconfig: change configuration of srf04 ultrasonic iio sensor
        ...
      bf402c08
  2. 22 Apr, 2019 18 commits
  3. 21 Apr, 2019 2 commits
  4. 20 Apr, 2019 14 commits
  5. 19 Apr, 2019 3 commits
    • Linus Torvalds's avatar
      Merge branch 'for-5.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu · 4c3f49ae
      Linus Torvalds authored
      Pull percpu fixlet from Dennis Zhou:
       "This stops printing the base address of percpu memory on
        initialization"
      
      * 'for-5.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu:
        percpu: stop printing kernel addresses
      4c3f49ae
    • Linus Torvalds's avatar
      Merge tag 'tty-5.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 55e3a6ba
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are five small fixes for some tty/serial/vt issues that have been
        reported.
      
        The vt one has been around for a while, it is good to finally get that
        resolved. The others fix a build warning that showed up in 5.1-rc1,
        and resolve a problem in the sh-sci driver.
      
        Note, the second patch for build warning fix for the sc16is7xx driver
        was just applied to the tree, as it resolves a problem with the
        previous patch to try to solve the issue. It has not shown up in
        linux-next yet, unlike all of the other patches, but it has passed
        0-day testing and everyone seems to agree that it is correct"
      
      * tag 'tty-5.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        sc16is7xx: put err_spi and err_i2c into correct #ifdef
        vt: fix cursor when clearing the screen
        sc16is7xx: move label 'err_spi' to correct section
        serial: sh-sci: Fix HSCIF RX sampling point adjustment
        serial: sh-sci: Fix HSCIF RX sampling point calculation
      55e3a6ba
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 3ecafda9
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "16 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping
        mm/kmemleak.c: fix unused-function warning
        init: initialize jump labels before command line option parsing
        kernel/watchdog_hld.c: hard lockup message should end with a newline
        kcov: improve CONFIG_ARCH_HAS_KCOV help text
        mm: fix inactive list balancing between NUMA nodes and cgroups
        mm/hotplug: treat CMA pages as unmovable
        proc: fixup proc-pid-vm test
        proc: fix map_files test on F29
        mm/vmstat.c: fix /proc/vmstat format for CONFIG_DEBUG_TLBFLUSH=y CONFIG_SMP=n
        mm/memory_hotplug: do not unlock after failing to take the device_hotplug_lock
        mm: swapoff: shmem_unuse() stop eviction without igrab()
        mm: swapoff: take notice of completion sooner
        mm: swapoff: remove too limiting SWAP_UNUSE_MAX_TRIES
        mm: swapoff: shmem_find_swap_entries() filter out other types
        slab: store tagged freelist for off-slab slabmgmt
      3ecafda9