1. 25 Feb, 2017 40 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.11-ofs2' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · cb419553
      Linus Torvalds authored
      Pull orangefs updates from Mike Marshall:
       "Orangefs: cleanups, a protocol fix and an added configuration button.
      
        Cleanups:
      
         - silence harmless integer overflow warning (from
           dan.carpenter@oracle.com)
      
         - Dan Carpenter influenced debugfs cleanups.
      
         - remove orangefs_backing_dev_info (from jack@suse.cz)
      
        Protocol fix:
      
         - fix buffer size mis-match between kernel space and user space
      
        New configuration button:
      
         - support readahead_readcnt parameter"
      
      * tag 'for-linus-4.11-ofs2' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: fix buffer size mis-match between kernel space and user space.
        orangefs: Dan Carpenter influenced cleanups...
        orangefs: Remove orangefs_backing_dev_info
        orangefs: Support readahead_readcnt parameter.
        orangefs: silence harmless integer overflow warning
      cb419553
    • Linus Torvalds's avatar
      Merge branch 'for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · 9003ed1f
      Linus Torvalds authored
      Pull btrfs updates from Chris Mason:
       "This has a series of fixes and cleanups that Dave Sterba has been
        collecting.
      
        There is a pretty big variety here, cleaning up internal APIs and
        fixing corner cases"
      
      * 'for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (124 commits)
        Btrfs: use the correct type when creating cow dio extent
        Btrfs: fix deadlock between dedup on same file and starting writeback
        btrfs: use btrfs_debug instead of pr_debug in transaction abort
        btrfs: btrfs_truncate_free_space_cache always allocates path
        btrfs: free-space-cache, clean up unnecessary root arguments
        btrfs: convert btrfs_inc_block_group_ro to accept fs_info
        btrfs: flush_space always takes fs_info->fs_root
        btrfs: pass fs_info to (more) routines that are only called with extent_root
        btrfs: qgroup: Move half of the qgroup accounting time out of commit trans
        btrfs: remove unused parameter from adjust_slots_upwards
        btrfs: remove unused parameters from __btrfs_write_out_cache
        btrfs: remove unused parameter from cleanup_write_cache_enospc
        btrfs: remove unused parameter from __add_inode_ref
        btrfs: remove unused parameter from clone_copy_inline_extent
        btrfs: remove unused parameters from btrfs_cmp_data
        btrfs: remove unused parameter from __add_inline_refs
        btrfs: remove unused parameters from scrub_setup_wr_ctx
        btrfs: remove unused parameter from create_snapshot
        btrfs: remove unused parameter from init_first_rw_device
        btrfs: remove unused parameter from __btrfs_alloc_chunk
        ...
      9003ed1f
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.11-1' of git://git.infradead.org/linux-platform-drivers-x86 · 94eae803
      Linus Torvalds authored
      Pull x86 platform driver updates from Darren Hart:
       "Big picture:
      
         - New intel_turbo_max_3 driver, providing max core frequency
           information to the scheduler. Intel PMC APL support, s0ix read API,
           and fixes.
      
         - New Silead touchscreen platform touchscreen descriptions.
           Additional hotkey support for the intel-hid driver.
      
         - New model support for dell-laptop and hp_accel.
      
         - Several cleanups, especially to the fujitsu-laptop and
           intel_mid_powerbtn drivers.
      
        Detail summary:
      
        platorm/x86:
         - silead depends on I2C being built-in
         - add support for devices with Silead touchscreens
         - Support Turbo Boost Max 3.0 for non HWP systems
      
        intel_turbo_max_3:
         - make it explicitly non-modular
      
        dell-laptop:
         - Add Latitude 7480 and others to the DMI whitelist
      
        intel-hid:
         - Support 5 button array
      
        thinkpad_acpi:
         - Call led_classdev_notify_brightness_hw_changed on kbd brightness change
         - Use brightness_set_blocking callback for LEDs
         - Stop setting led_classdev brightness directly
      
        acer-wmi:
         - add another KEY_WLAN keycode
         - Inform firmware that RF Button Driver is active
         - setup accelerometer when machine has appropriate notify event
      
        asus-wireless:
         - Fix indentation
         - Use per-HID HSWC parameters
      
        intel_pmc_ipc:
         - Add APL PMC PCI Id
         - read s0ix residency API
         - Remove unused iTCO_version variable
      
        alienware-wmi:
         - Remove header duplicate
      
        intel_pmc_core:
         - fix out-of-bounds accesses on stack
      
        intel_mid_powerbtn:
         - Use SCU IPC directly
         - Unify IRQ acknowledgment
         - Move comment to where it belongs
         - Unify PBSTATUS access
         - Remove snail address
         - Sort headers alphabetically
         - Join string literals
         - Enable driver for Merrifield
         - Acknowledge interrupts
         - Factor out mfld_ack()
         - Introduce driver data
         - Substitute mfld by mid
         - Convert to use devm_*()
      
        fujitsu-laptop:
         - make hotkey handling functions more similar
         - break up complex loop condition
         - move keycode processing to separate functions
         - decrease indentation in acpi_fujitsu_hotkey_notify()
         - simplify logolamp_get()
         - rework logolamp_set() to properly handle errors
         - set default trigger for radio LED to rfkill-any
      
        dell-smbios:
         - Auto-select as needed
      
        intel_mid_thermal:
         - Fix module autoload
         - Remove duplicated platform device ID
      
        mlx-platform:
         - mlxcpld-hotplug driver style fixes
      
        hp_accel:
         - Add support for HP ZBook 17"
      
      * tag 'platform-drivers-x86-v4.11-1' of git://git.infradead.org/linux-platform-drivers-x86: (45 commits)
        platform/x86: intel_turbo_max_3: make it explicitly non-modular
        platform/x86: dell-laptop: Add Latitude 7480 and others to the DMI whitelist
        platform/x86: intel-hid: Support 5 button array
        platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on kbd brightness change
        platform/x86: thinkpad_acpi: Use brightness_set_blocking callback for LEDs
        platform/x86: thinkpad_acpi: Stop setting led_classdev brightness directly
        leds: class: Add new optional brightness_hw_changed attribute
        platform/x86: acer-wmi: add another KEY_WLAN keycode
        platform/x86: acer-wmi: Inform firmware that RF Button Driver is active
        platform/x86: asus-wireless: Fix indentation
        platform/x86: asus-wireless: Use per-HID HSWC parameters
        platform/x86: intel_pmc_ipc: Add APL PMC PCI Id
        platform/x86: intel_pmc_ipc: read s0ix residency API
        platform/x86: alienware-wmi: Remove header duplicate
        platform/x86: intel_mid_powerbtn: Use SCU IPC directly
        platform/x86: intel_mid_powerbtn: Unify IRQ acknowledgment
        platform/x86: intel_mid_powerbtn: Move comment to where it belongs
        platform/x86: intel_mid_powerbtn: Unify PBSTATUS access
        platform/x86: intel_pmc_core: fix out-of-bounds accesses on stack
        platform/x86: silead depends on I2C being built-in
        ...
      94eae803
    • Linus Torvalds's avatar
      Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 5d8a00ee
      Linus Torvalds authored
      Pull clk updates from Stephen Boyd:
       "The usual collection of new drivers, non-critical fixes, and updates
        to existing clk drivers. The bulk of the work is on Allwinner and
        Rockchip SoCs, but there's also an Intel Atom driver in here too.
      
        New Drivers:
         - Tegra BPMP firmware
         - Hisilicon hi3660 SoCs
         - Rockchip rk3328 SoCs
         - Intel Atom PMC
         - STM32F746
         - IDT VersaClock 5P49V5923 and 5P49V5933
         - Marvell mv98dx3236 SoCs
         - Allwinner V3s SoCs
      
        Removed Drivers:
         - Samsung Exynos4415 SoCs
      
        Updates:
         - Migrate ABx500 to OF
         - Qualcomm IPQ4019 CPU clks and general PLL support
         - Qualcomm MSM8974 RPM
         - Rockchip non-critical fixes and clk id additions
         - Samsung Exynos4412 CPUs
         - Socionext UniPhier NAND and eMMC support
         - ZTE zx296718 i2s and other audio clks
         - Renesas CAN and MSIOF clks for R-Car M3-W
         - Renesas resets for R-Car Gen2 and Gen3 and RZ/G1
         - TI CDCE913, CDCE937, and CDCE949 clk generators
         - Marvell Armada ap806 CPU frequencies
         - STM32F4* I2S/SAI support
         - Broadcom BCM2835 DSI support
         - Allwinner sun5i and A80 conversion to new style clk bindings"
      
      * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (130 commits)
        clk: renesas: mstp: ensure register writes complete
        clk: qcom: Do not drop device node twice
        clk: mvebu: adjust clock handling for the CP110 system controller
        clk: mvebu: Expand mv98dx3236-core-clock support
        clk: zte: add i2s clocks for zx296718
        clk: sunxi-ng: sun9i-a80: Fix wrong pointer passed to PTR_ERR()
        clk: sunxi-ng: select SUNXI_CCU_MULT for sun5i
        clk: sunxi-ng: Check kzalloc() for errors and cleanup error path
        clk: tegra: Add BPMP clock driver
        clk: uniphier: add eMMC clock for LD11 and LD20 SoCs
        clk: uniphier: add NAND clock for all UniPhier SoCs
        ARM: dts: sun9i: Switch to new clock bindings
        clk: sunxi-ng: Add A80 Display Engine CCU
        clk: sunxi-ng: Add A80 USB CCU
        clk: sunxi-ng: Add A80 CCU
        clk: sunxi-ng: Support separately grouped PLL lock status register
        clk: sunxi-ng: mux: Get closest parent rate possible with CLK_SET_RATE_PARENT
        clk: sunxi-ng: mux: honor CLK_SET_RATE_NO_REPARENT flag
        clk: sunxi-ng: mux: Fix determine_rate for mux clocks with pre-dividers
        clk: qcom: SDHCI enablement on Nexus 5X / 6P
        ...
      5d8a00ee
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 7067739d
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "I2C has for you two new drivers (Tegra BPMP and STM32F4), interrupt
        support for pca954x muxes, and a bunch of driver bugfixes and
        improvements. Nothing really special this cycle.
      
        A few commits have been added to my tree just recently. Those are the
        Tegra BPMP driver and a few straightforward bugfixes or cleanups which
        I prefer to have upstream rather soonish. The rest had proper
        linux-next exposure"
      
      * 'i2c/for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (25 commits)
        i2c: thunderx: Replace pci_enable_msix()
        i2c: exynos5: fix arbitration lost handling
        i2c: exynos5: disable fifo-almost-empty irq signal when necessary
        i2c: at91: ensure state is restored after suspending
        i2c: bcm2835: Avoid possible NULL ptr dereference
        i2c: Add Tegra BPMP I2C proxy driver
        dt-bindings: Add Tegra186 BPMP I2C binding
        misc: eeprom: at24: use device_property_*() functions instead of of_get_property()
        i2c: mux: pca954x: Add interrupt controller support
        dt: bindings: i2c-mux-pca954x: Add documentation for interrupt controller
        i2c: mux: pca954x: Add missing pca9542 definition to chip_desc
        i2c: riic: correctly finish transfers
        i2c: i801: Add support for Intel Gemini Lake
        i2c: mux: pca9541: Export OF device ID table as module aliases
        i2c: mux: pca954x: Export OF device ID table as module aliases
        i2c: mux: mlxcpld: remove unused including <linux/version.h>
        i2c: busses: constify i2c_algorithm structures
        i2c: i2c-mux-gpio: rename i2c-gpio-mux to i2c-mux-gpio
        i2c: sh_mobile: document support for r8a7796 (R-Car M3-W)
        i2c: i2c-cros-ec-tunnel: Reduce logging noise
        ...
      7067739d
    • Linus Torvalds's avatar
      Merge tag 'for-next-dma_ops' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma · ac1820fb
      Linus Torvalds authored
      Pull rdma DMA mapping updates from Doug Ledford:
       "Drop IB DMA mapping code and use core DMA code instead.
      
        Bart Van Assche noted that the ib DMA mapping code was significantly
        similar enough to the core DMA mapping code that with a few changes it
        was possible to remove the IB DMA mapping code entirely and switch the
        RDMA stack to use the core DMA mapping code.
      
        This resulted in a nice set of cleanups, but touched the entire tree
        and has been kept separate for that reason."
      
      * tag 'for-next-dma_ops' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (37 commits)
        IB/rxe, IB/rdmavt: Use dma_virt_ops instead of duplicating it
        IB/core: Remove ib_device.dma_device
        nvme-rdma: Switch from dma_device to dev.parent
        RDS: net: Switch from dma_device to dev.parent
        IB/srpt: Modify a debug statement
        IB/srp: Switch from dma_device to dev.parent
        IB/iser: Switch from dma_device to dev.parent
        IB/IPoIB: Switch from dma_device to dev.parent
        IB/rxe: Switch from dma_device to dev.parent
        IB/vmw_pvrdma: Switch from dma_device to dev.parent
        IB/usnic: Switch from dma_device to dev.parent
        IB/qib: Switch from dma_device to dev.parent
        IB/qedr: Switch from dma_device to dev.parent
        IB/ocrdma: Switch from dma_device to dev.parent
        IB/nes: Remove a superfluous assignment statement
        IB/mthca: Switch from dma_device to dev.parent
        IB/mlx5: Switch from dma_device to dev.parent
        IB/mlx4: Switch from dma_device to dev.parent
        IB/i40iw: Remove a superfluous assignment statement
        IB/hns: Switch from dma_device to dev.parent
        ...
      ac1820fb
    • Linus Torvalds's avatar
      Merge tag 'fbdev-v4.11' of git://github.com/bzolnier/linux · edccb594
      Linus Torvalds authored
      Pull fbdev updates from Bartlomiej Zolnierkiewicz:
      
       - fix for font color when console is switched to another fb driver
      
       - deferred probing fixes for simplefb driver
      
       - preparations to add support of an optional GPIO to enable panel for
         ARM CLCD driver
      
       - some improvements for ssd1307fb driver
      
       - cleanups for OMAP fbdev LCD drivers
      
       - misc fixes/cleanups for various fb drivers
      
      * tag 'fbdev-v4.11' of git://github.com/bzolnier/linux: (30 commits)
        video: fbdev: fsl-diu-fb: fix spelling mistake "palette"
        fbdev: ssd1307fb: include linux/gpio/consumer.h
        video: fbdev: fsl-diu-fb: remove impossible condition
        video: fbdev: amifb: remove impossible condition
        fbdev/ssd1307fb: clear screen in probe
        fbdev/ssd1307fb: add support to enable VBAT
        fbdev: ssd1307fb: Make reset gpio devicetree property optional
        fbdev: ssd1307fb: Remove reset-active-low from the DT binding document
        fbdev: ssd1307fb: Start to use gpiod API for reset gpio
        video: fbdev: sh_mobile_lcdcfb: fix error return code in sh_mobile_lcdc_probe()
        video: fbdev: offb: switch to using for_each_node_by_type
        video/console: use setup_timer and mod_timer instead of init_timer
        fbdev: omap/lcd: Make callbacks optional
        fbdev: omap/lcd: Staticize non-exported lcd_panel structs
        fbdev: omap/lcd: Remove no-op driver callbacks
        video/mbx: use simple_open()
        video: fbdev: stifb: handle NULL return value from ioremap_nocache
        video: fbdev: pmagb-b-fb: Remove bad `__init' annotation
        video: fbdev: pmag-ba-fb: Remove bad `__init' annotation
        video: ARM CLCD: use panel device node for getting backlight and mode
        ...
      edccb594
    • Joe Perches's avatar
      treewide: Remove remaining executable attributes from source files · 6e5c8381
      Joe Perches authored
      These are the current source files that should not have
      executable attributes set.
      
      [ Normally this would be sent through Andrew Morton's tree
        but his quilt tools don't like permission only patches. ]
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6e5c8381
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 7b46588f
      Linus Torvalds authored
      Merge more updates from Andrew Morton:
      
       - almost all of the rest of MM
      
       - misc bits
      
       - KASAN updates
      
       - procfs
      
       - lib/ updates
      
       - checkpatch updates
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (124 commits)
        checkpatch: remove false unbalanced braces warning
        checkpatch: notice unbalanced else braces in a patch
        checkpatch: add another old address for the FSF
        checkpatch: update $logFunctions
        checkpatch: warn on logging continuations
        checkpatch: warn on embedded function names
        lib/lz4: remove back-compat wrappers
        fs/pstore: fs/squashfs: change usage of LZ4 to work with new LZ4 version
        crypto: change LZ4 modules to work with new LZ4 module version
        lib/decompress_unlz4: change module to work with new LZ4 module version
        lib: update LZ4 compressor module
        lib/test_sort.c: make it explicitly non-modular
        lib: add CONFIG_TEST_SORT to enable self-test of sort()
        rbtree: use designated initializers
        linux/kernel.h: fix DIV_ROUND_CLOSEST to support negative divisors
        lib/find_bit.c: micro-optimise find_next_*_bit
        lib: add module support to atomic64 tests
        lib: add module support to glob tests
        lib: add module support to crc32 tests
        kernel/ksysfs.c: add __ro_after_init to bin_attribute structure
        ...
      7b46588f
    • Thomas Gleixner's avatar
      mac80211_hwsim: Replace bogus hrtimer clockid · 915f3e3f
      Thomas Gleixner authored
      mac80211_hwsim initializes a hrtimer with clockid CLOCK_MONOTONIC_RAW.
      That's not supported.
      
      Use CLOCK_MONOTNIC instead.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      915f3e3f
    • Mike Marshall's avatar
    • Paul Gortmaker's avatar
      platform/x86: intel_turbo_max_3: make it explicitly non-modular · af050abb
      Paul Gortmaker authored
      The Kconfig currently controlling compilation of this code is:
      
      drivers/platform/x86/Kconfig:config INTEL_TURBO_MAX_3
      drivers/platform/x86/Kconfig:   bool "Intel Turbo Boost Max Technology 3.0 enumeration driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      We do uncover some implicit includes during build coverage that
      were hidden behind the module.h which pulls in a lot of dependants.
      
      Cc: Andy Shevchenko <andy@infradead.org>
      Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Cc: platform-driver-x86@vger.kernel.org
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      af050abb
    • Alex Hung's avatar
      platform/x86: dell-laptop: Add Latitude 7480 and others to the DMI whitelist · 8d2c4538
      Alex Hung authored
      This is to support Latitude 7480 and many other newer Dell laptops.
      Signed-off-by: default avatarAlex Hung <alex.hung@canonical.com>
      Reviewed-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      8d2c4538
    • Alex Hung's avatar
      platform/x86: intel-hid: Support 5 button array · bd5762a0
      Alex Hung authored
      New firmwares include a feature called 5 button array that supports
      super key, volume up/down, rotation lock and power button. Support
      for this feature is required to fix power button on some recent
      systems.
      
      This patch was tested on a Dell Latitude 7480.
      Signed-off-by: default avatarAlex Hung <alex.hung@canonical.com>
      Reviewed-by: default avatarMichał Kępień <kernel@kempniu.pl>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      bd5762a0
    • Hans de Goede's avatar
      platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on... · c685e20d
      Hans de Goede authored
      platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on kbd brightness change
      
      Make thinkpad_acpi call led_classdev_notify_brightness_hw_changed on the
      kbd_led led_classdev registered by thinkpad_acpi when the kbd backlight
      brightness is changed through the hotkey.
      
      This will allow userspace to monitor (poll) for brightness changes on
      these LEDs caused by the hotkey.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      c685e20d
    • Hans de Goede's avatar
      platform/x86: thinkpad_acpi: Use brightness_set_blocking callback for LEDs · 86ec0c2c
      Hans de Goede authored
      Now a days the LED core can take care of executing brightness_set from
      a workqueue if it needs to sleep, make use of this and remove a bunch
      of DIY code for this.
      
      Since this commit removes the workqueue usage for LEDs, the
      led_sysfs_blink_set callback may now also sleep, this is fine.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      86ec0c2c
    • Hans de Goede's avatar
      platform/x86: thinkpad_acpi: Stop setting led_classdev brightness directly · 06da5325
      Hans de Goede authored
      There is no need to set the led_classdev's brightness value from
      its set_brightness callback, this is taken care of by the led-core and
      thinkpad_acpi really should not be mucking with it.
      
      Note that kbdlight_set_level_and_update() is still used by the old
      thinpad_acpi specific sysfs interface for the led, so we cannot
      remove it.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      06da5325
    • Hans de Goede's avatar
      leds: class: Add new optional brightness_hw_changed attribute · b8c5099b
      Hans de Goede authored
      Some LEDs may have their brightness level changed autonomously
      (outside of kernel control) by hardware / firmware. This commit
      adds support for an optional brightness_hw_changed attribute to
      signal such changes to userspace (if a driver can detect them):
      
      What:		/sys/class/leds/<led>/brightness_hw_changed
      Date:		January 2017
      KernelVersion:	4.11
      Description:
      		Last hardware set brightness level for this LED. Some LEDs
      		may be changed autonomously by hardware/firmware. Only LEDs
      		where this happens and the driver can detect this, will
      		have this file.
      
      		This file supports poll() to detect when the hardware
      		changes the brightness.
      
      		Reading this file will return the last brightness level set
      		by the hardware, this may be different from the current
      		brightness.
      
      Drivers which want to support this, simply add LED_BRIGHT_HW_CHANGED to
      their flags field and call led_classdev_notify_brightness_hw_changed()
      with the hardware set brightness when they detect a hardware / firmware
      triggered brightness change.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
      b8c5099b
    • Chris Chiu's avatar
      platform/x86: acer-wmi: add another KEY_WLAN keycode · 5ffa572a
      Chris Chiu authored
      Now that we have informed the firmware that the RF Button driver is
      active, laptops such as the Acer TravelMate P238-M will generate
      a WMI key event with code 0x86 when the Fn+F3 airplane mode key is
      pressed.
      
      Add this keycode to the table so that it is converted to an appropriate
      input event.
      Signed-off-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarDaniel Drake <drake@endlessm.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      5ffa572a
    • Chris Chiu's avatar
      platform/x86: acer-wmi: Inform firmware that RF Button Driver is active · 280642c3
      Chris Chiu authored
      The same method to activate LM(Launch Manager) can also be used to
      activate the RF Button driver with different bit toggled in the same
      lm_status. To express that many functions this byte field can achieve,
      rename the lm_status to app_status. And also the app_mask is the bit
      mask which specifically indicate which bits are going to be changed.
      
      This solves a problem where the AR9565 wifi included in the
      Acer Aspire ES1-421 is permanently hard blocked according to the rfkill
      GPIO read by ath9k.
      Signed-off-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarDaniel Drake <drake@endlessm.com>
      Reviewed-by: default avatarLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      280642c3
    • João Paulo Rechi Vita's avatar
      platform/x86: asus-wireless: Fix indentation · 4ac20e62
      João Paulo Rechi Vita authored
      Fix indentation problem introduced when this driver was first merged into
      the kernel.
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      4ac20e62
    • João Paulo Rechi Vita's avatar
      platform/x86: asus-wireless: Use per-HID HSWC parameters · 4b7fb9fc
      João Paulo Rechi Vita authored
      Some Asus machines use 0x4/0x5 as their LED on/off values, while others
      use 0x0/0x1, as shown in the DSDT excerpts below. Luckily it seems this
      behavior is tied to different HIDs, after looking at 44 DSDTs from
      different Asus models.
      
      Another small difference is that a few of them call GWBL instead of
      OWGS, and SWBL instead of OWGD. That does not seem to make a difference
      for asus-wireless, and is additional reasoning to not try to call these
      methods directly.
      
      Device (ASHS)                       | Device (ASHS)
      {                                   | {
          Name (_HID, "ATK4002")          |     Name (_HID, "ATK4001")
          Method (HSWC, 1, Serialized)    |     Method (HSWC, 1, Serialized)
          {                               |     {
              If ((Arg0 < 0x02))          |         If ((Arg0 < 0x02))
              {                           |         {
                  OWGD (Arg0)             |             OWGD (Arg0)
                  Return (One)            |             Return (One)
              }                           |         }
              If ((Arg0 == 0x02))         |
              {                           |         If ((Arg0 == 0x02))
                  Local0 = OWGS ()        |         {
                  If (Local0)             |             Return (OWGS ())
                  {                       |         }
                          Return (0x05)   |
                  }                       |         If ((Arg0 == 0x03))
                  Else                    |         {
                  {                       |             Return (0xFF)
                          Return (0x04)   |         }
                  }                       |
              }                           |         If ((Arg0 == 0x80))
              If ((Arg0 == 0x03))         |         {
              {                           |            Return (One)
                  Return (0xFF)           |         }
              }                           |     }
              If ((Arg0 == 0x04))         |     Method (_STA, 0, NotSerialized)
              {                           |     {
                  OWGD (Zero)             |         If ((MSOS () >= OSW8))
                  Return (One)            |         {
              }                           |             Return (0x0F)
              If ((Arg0 == 0x05))         |         }
              {                           |         Else
                  OWGD (One)              |         {
                  Return (One)            |             Return (Zero)
              }                           |         }
              If ((Arg0 == 0x80))         |     }
              {                           | }
                  Return (One)            |
              }                           |
          }                               |
          Method (_STA, 0, NotSerialized) |
          {                               |
              If ((MSOS () >= OSW8))      |
              {                           |
                  Return (0x0F)           |
              }                           |
              Else                        |
              {                           |
                  Return (Zero)           |
              }                           |
          }                               |
      }                                   |
      Signed-off-by: default avatarJoão Paulo Rechi Vita <jprvita@endlessm.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      4b7fb9fc
    • Rajneesh Bhardwaj's avatar
      platform/x86: intel_pmc_ipc: Add APL PMC PCI Id · 23e775db
      Rajneesh Bhardwaj authored
      This patch adds the PCI Device id for Power Management Controller on Intel
      Apollo Lake platforms.
      
      Intel PMC IPC Driver loads as a platform driver on Apollo Lake platforms
      since Intel BIOS hides the PCI Configuration space for 0:13:1 and
      re-enumerates it as ACPI device (INT34D2). The correct PCI Device ID should
      be added if some platform firmware choses to enumerate the device via PCI
      space.
      Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      23e775db
    • Shanth Murthy's avatar
      platform/x86: intel_pmc_ipc: read s0ix residency API · 76062b4a
      Shanth Murthy authored
      This patch adds a new API to indicate S0ix residency in usec. It utilizes
      the PMC Global Control Registers (GCR) to read deep and shallow
      S0ix residency.
      
      PMC MMIO resources:
              o Lower 4kB: IPC1 (PMC inter-processor communication) interface
              o Upper 4kB: GCR (Global Control Registers)
      
      This enables the power management framework to take corrective actions when
      the platform fails to enter S0ix after kernel freeze as part of the suspend
      to idle flow. (echo freeze > /sys/power/state).
      
      This is expected to be used with a S0ix failsafe framework such as:
      <https://lwn.net/Articles/689505/>
      
      [rajneesh: folded in "fix division in 32-bit case" from Andy Shevchenko]
      Signed-off-by: default avatarRajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
      Signed-off-by: default avatarShanth Murthy <shanth.murthy@intel.com>
      [andy: fixed kbuild error, removed "total" from variables, fixed macro]
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      76062b4a
    • Andy Shevchenko's avatar
      platform/x86: alienware-wmi: Remove header duplicate · 8e4b8c7d
      Andy Shevchenko authored
      No need to #include <linux/acpi.h> twice. Remove second occurrence.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      8e4b8c7d
    • Andy Shevchenko's avatar
      platform/x86: intel_mid_powerbtn: Use SCU IPC directly · 25b4a38f
      Andy Shevchenko authored
      On older Intel MID platforms is using SCU IPC library beneath MSIC
      calls.
      
      To make access unified between old and new platforms use SCU IPC library
      directly. It's safe since serialization is done in the library.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      25b4a38f
    • Andy Shevchenko's avatar
      platform/x86: intel_mid_powerbtn: Unify IRQ acknowledgment · ca45ba06
      Andy Shevchenko authored
      The IRQ on Intel Merrifield can be acknowledged in the similar way it's
      done for previous MID platforms. Unify acknowledgment via SCU IPC.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      ca45ba06
    • Linus Torvalds's avatar
      Merge tag 'openrisc-for-linus' of git://github.com/openrisc/linux · 9e314890
      Linus Torvalds authored
      Pull OpenRISC updates from Stafford Horne:
       "Highlights include:
      
         - optimized memset and memcpy routines, ~20% boot time saving
      
         - support for cpu idling
      
         - adding support for l.swa and l.lwa atomic operations (in spec from
           2014)
      
         - use atomics to implement: bitops, cmpxchg, futex
      
         - the atomics are in preparation for SMP support"
      
      * tag 'openrisc-for-linus' of git://github.com/openrisc/linux: (25 commits)
        openrisc: head: Init r0 to 0 on start
        openrisc: Export ioremap symbols used by modules
        arch/openrisc/lib/memcpy.c: use correct OR1200 option
        openrisc: head: Remove unused strings
        openrisc: head: Move init strings to rodata section
        openrisc: entry: Fix delay slot detection
        openrisc: entry: Whitespace and comment cleanups
        scripts/checkstack.pl: Add openrisc support
        MAINTAINERS: Add the openrisc official repository
        openrisc: Add .gitignore
        openrisc: Add optimized memcpy routine
        openrisc: Add optimized memset
        openrisc: Initial support for the idle state
        openrisc: Fix the bitmask for the unit present register
        openrisc: remove unnecessary stddef.h include
        openrisc: add futex_atomic_* implementations
        openrisc: add optimized atomic operations
        openrisc: add cmpxchg and xchg implementations
        openrisc: add atomic bitops
        openrisc: add l.lwa/l.swa emulation
        ...
      9e314890
    • Sven Eckelmann's avatar
      checkpatch: remove false unbalanced braces warning · 95330473
      Sven Eckelmann authored
      Lines containing "} else {" should not be detected as unbalanced braces.
      But the second check can be reduced to ".+else\s*{" and it therefore
      never checked if the beginning of a line contains any other character
      (like the relevant "}").  This check would also return true for "} else
      {" and create warnings like
      
          CHECK: Unbalanced braces around else statement
          #391: FILE: ./net/batman-adv/tvlv.c:391:
          +   } else {
      
      The check can be changed to check the whole line for the missing "}" to
      avoid this false positive.
      
      Fixes: 0d1532456c26 ("checkpatch: notice unbalanced else braces in a patch")
      Link: http://lkml.kernel.org/r/20170220121644.12209-1-sven@narfation.orgSigned-off-by: default avatarSven Eckelmann <sven@narfation.org>
      Acked-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      95330473
    • Joe Perches's avatar
      checkpatch: notice unbalanced else braces in a patch · e4c5babd
      Joe Perches authored
      Patches that add or modify code like
      
      	} else
      		<foo>
      or
      	else {
      		<bar>
      
      where one branch appears to have a brace and the other branch does not
      have a brace should emit a --strict style message.
      
      Link: http://lkml.kernel.org/r/c6be32747fc725cbc235802991746700a0f54fdc.1486754390.git.joe@perches.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e4c5babd
    • Matthew Wilcox's avatar
      checkpatch: add another old address for the FSF · 1bde561e
      Matthew Wilcox authored
      We still have a lot of old addresses for the FSF in the kernel.
      
        willy@harry:~/kernel/idr$ git grep '675 Mass' |wc -l
        1502
        willy@harry:~/kernel/idr$ git grep '59 Temple' |wc -l
        2825
        willy@harry:~/kernel/idr$ git grep '51 Franklin' |wc -l
        2020
      
      Let's discourage adding the oldest one too.
      
      Link: http://lkml.kernel.org/r/20170128173052.GA23532@bombadil.infradead.orgSigned-off-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
      Acked-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1bde561e
    • Miles Chen's avatar
      checkpatch: update $logFunctions · 758d7aad
      Miles Chen authored
      Currently checkpatch.pl does not recognize printk_deferred* functions as
      log functions and complains about the line length of printk_deferred*
      functions.  Add printk_deferred* to logFunctions to fix it.
      
      Link: http://lkml.kernel.org/r/1484537124-18083-1-git-send-email-miles.chen@mediatek.comSigned-off-by: default avatarMiles Chen <miles.chen@mediatek.com>
      Acked-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      758d7aad
    • Joe Perches's avatar
      checkpatch: warn on logging continuations · 45c55e92
      Joe Perches authored
      pr_cont(...) and printk(KERN_CONT ...) uses should be discouraged
      as their output can be interleaved by multiple logging processes.
      
      Link: http://lkml.kernel.org/r/7100ba00098694ec81471a299583ed068975fd05.1483465888.git.joe@perches.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      45c55e92
    • Joe Perches's avatar
      checkpatch: warn on embedded function names · 77cb8546
      Joe Perches authored
      Embedded function names are less appropriate to use when refactoring can
      cause function renaming.  Prefer the use of "%s", __func__ to embedded
      function names.
      
      Link: http://lkml.kernel.org/r/ac9631fdbac5af3507c5bfe88ad9064f0ed764ec.1483510416.git.joe@perches.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
      Acked-by: default avatarAndy Whitcroft <apw@canonical.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      77cb8546
    • Sven Schmidt's avatar
      lib/lz4: remove back-compat wrappers · 69c78423
      Sven Schmidt authored
      Remove the functions introduced as wrappers for providing backwards
      compatibility to the prior LZ4 version.  They're not needed anymore
      since there's no callers left.
      
      Link: http://lkml.kernel.org/r/1486321748-19085-6-git-send-email-4sschmid@informatik.uni-hamburg.deSigned-off-by: default avatarSven Schmidt <4sschmid@informatik.uni-hamburg.de>
      Cc: Bongkyu Kim <bongkyu.kim@lge.com>
      Cc: Rui Salvaterra <rsalvaterra@gmail.com>
      Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      69c78423
    • Sven Schmidt's avatar
      fs/pstore: fs/squashfs: change usage of LZ4 to work with new LZ4 version · d21b5ff1
      Sven Schmidt authored
      Update fs/pstore and fs/squashfs to use the updated functions from the
      new LZ4 module.
      
      Link: http://lkml.kernel.org/r/1486321748-19085-5-git-send-email-4sschmid@informatik.uni-hamburg.deSigned-off-by: default avatarSven Schmidt <4sschmid@informatik.uni-hamburg.de>
      Cc: Bongkyu Kim <bongkyu.kim@lge.com>
      Cc: Rui Salvaterra <rsalvaterra@gmail.com>
      Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d21b5ff1
    • Sven Schmidt's avatar
      crypto: change LZ4 modules to work with new LZ4 module version · 73a15ac6
      Sven Schmidt authored
      Update the crypto modules using LZ4 compression as well as the test
      cases in testmgr.h to work with the new LZ4 module version.
      
      Link: http://lkml.kernel.org/r/1486321748-19085-4-git-send-email-4sschmid@informatik.uni-hamburg.deSigned-off-by: default avatarSven Schmidt <4sschmid@informatik.uni-hamburg.de>
      Cc: Bongkyu Kim <bongkyu.kim@lge.com>
      Cc: Rui Salvaterra <rsalvaterra@gmail.com>
      Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      73a15ac6
    • Sven Schmidt's avatar
      lib/decompress_unlz4: change module to work with new LZ4 module version · e23d54e4
      Sven Schmidt authored
      Update the unlz4 wrapper to work with the updated LZ4 kernel module
      version.
      
      Link: http://lkml.kernel.org/r/1486321748-19085-3-git-send-email-4sschmid@informatik.uni-hamburg.deSigned-off-by: default avatarSven Schmidt <4sschmid@informatik.uni-hamburg.de>
      Cc: Bongkyu Kim <bongkyu.kim@lge.com>
      Cc: Rui Salvaterra <rsalvaterra@gmail.com>
      Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e23d54e4
    • Sven Schmidt's avatar
      lib: update LZ4 compressor module · 4e1a33b1
      Sven Schmidt authored
      Patch series "Update LZ4 compressor module", v7.
      
      This patchset updates the LZ4 compression module to a version based on
      LZ4 v1.7.3 allowing to use the fast compression algorithm aka LZ4 fast
      which provides an "acceleration" parameter as a tradeoff between high
      compression ratio and high compression speed.
      
      We want to use LZ4 fast in order to support compression in lustre and
      (mostly, based on that) investigate data reduction techniques in behalf
      of storage systems.
      
      Also, it will be useful for other users of LZ4 compression, as with LZ4
      fast it is possible to enable applications to use fast and/or high
      compression depending on the usecase.  For instance, ZRAM is offering a
      LZ4 backend and could benefit from an updated LZ4 in the kernel.
      
      LZ4 homepage: http://www.lz4.org/
      LZ4 source repository: https://github.com/lz4/lz4 Source version: 1.7.3
      
      Benchmark (taken from [1], Core i5-4300U @1.9GHz):
      ----------------|--------------|----------------|----------
      Compressor      | Compression  | Decompression  | Ratio
      ----------------|--------------|----------------|----------
      memcpy          |  4200 MB/s   |  4200 MB/s     | 1.000
      LZ4 fast 50     |  1080 MB/s   |  2650 MB/s     | 1.375
      LZ4 fast 17     |   680 MB/s   |  2220 MB/s     | 1.607
      LZ4 fast 5      |   475 MB/s   |  1920 MB/s     | 1.886
      LZ4 default     |   385 MB/s   |  1850 MB/s     | 2.101
      
      [1] http://fastcompression.blogspot.de/2015/04/sampling-or-faster-lz4.html
      
      [PATCH 1/5] lib: Update LZ4 compressor module
      [PATCH 2/5] lib/decompress_unlz4: Change module to work with new LZ4 module version
      [PATCH 3/5] crypto: Change LZ4 modules to work with new LZ4 module version
      [PATCH 4/5] fs/pstore: fs/squashfs: Change usage of LZ4 to work with new LZ4 version
      [PATCH 5/5] lib/lz4: Remove back-compat wrappers
      
      This patch (of 5):
      
      Update the LZ4 kernel module to LZ4 v1.7.3 by Yann Collet.  The kernel
      module is inspired by the previous work by Chanho Min.  The updated LZ4
      module will not break existing code since the patchset contains
      appropriate changes.
      
      API changes:
      
      New method LZ4_compress_fast which differs from the variant available in
      kernel by the new acceleration parameter, allowing to trade compression
      ratio for more compression speed and vice versa.
      
      LZ4_decompress_fast is the respective decompression method, featuring a
      very fast decoder (multiple GB/s per core), able to reach RAM speed in
      multi-core systems.  The decompressor allows to decompress data
      compressed with LZ4 fast as well as the LZ4 HC (high compression)
      algorithm.
      
      Also the useful functions LZ4_decompress_safe_partial and
      LZ4_compress_destsize were added.  The latter reverses the logic by
      trying to compress as much data as possible from source to dest while
      the former aims to decompress partial blocks of data.
      
      A bunch of streaming functions were also added which allow
      compressig/decompressing data in multiple steps (so called "streaming
      mode").
      
      The methods lz4_compress and lz4_decompress_unknownoutputsize are now
      known as LZ4_compress_default respectivley LZ4_decompress_safe.  The old
      methods will be removed since there's no callers left in the code.
      
      [arnd@arndb.de: fix KERNEL_LZ4 support]
        Link: http://lkml.kernel.org/r/20170208211946.2839649-1-arnd@arndb.de
      [akpm@linux-foundation.org: simplify]
      [akpm@linux-foundation.org: fix the simplification]
      [4sschmid@informatik.uni-hamburg.de: fix performance regressions]
        Link: http://lkml.kernel.org/r/1486898178-17125-2-git-send-email-4sschmid@informatik.uni-hamburg.de
      [4sschmid@informatik.uni-hamburg.de: v8]
        Link: http://lkml.kernel.org/r/1487182598-15351-2-git-send-email-4sschmid@informatik.uni-hamburg.de
      Link: http://lkml.kernel.org/r/1486321748-19085-2-git-send-email-4sschmid@informatik.uni-hamburg.deSigned-off-by: default avatarSven Schmidt <4sschmid@informatik.uni-hamburg.de>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Bongkyu Kim <bongkyu.kim@lge.com>
      Cc: Rui Salvaterra <rsalvaterra@gmail.com>
      Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4e1a33b1
    • Paul Gortmaker's avatar
      lib/test_sort.c: make it explicitly non-modular · 8893f519
      Paul Gortmaker authored
      The Kconfig currently controlling compilation of this code is:
      
           lib/Kconfig.debug:config TEST_SORT
           lib/Kconfig.debug:      bool "Array-based sort test"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the couple traces of modular infrastructure use, so that
      when reading the code there is no doubt it is builtin-only.
      
      Since module_init translates to device_initcall in the non-modular case,
      the init ordering becomes slightly earlier when we change it to use
      subsys_initcall as done here.  However, since it is a self contained
      test, this shouldn't be an issue and subsys_initcall seems like a better
      fit for this particular case.
      
      We also delete the MODULE_LICENSE tag since that information is now
      contained at the top of the file in the comments.
      
      Link: http://lkml.kernel.org/r/20170124225608.7319-1-paul.gortmaker@windriver.comSigned-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Kostenzer Felix <fkostenzer@live.at>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      8893f519