23 Feb, 2015

1 commit

  • Convert the following where appropriate:

    (1) S_ISLNK(dentry->d_inode) to d_is_symlink(dentry).

    (2) S_ISREG(dentry->d_inode) to d_is_reg(dentry).

    (3) S_ISDIR(dentry->d_inode) to d_is_dir(dentry). This is actually more
    complicated than it appears as some calls should be converted to
    d_can_lookup() instead. The difference is whether the directory in
    question is a real dir with a ->lookup op or whether it's a fake dir with
    a ->d_automount op.

    In some circumstances, we can subsume checks for dentry->d_inode not being
    NULL into this, provided we the code isn't in a filesystem that expects
    d_inode to be NULL if the dirent really *is* negative (ie. if we're going to
    use d_inode() rather than d_backing_inode() to get the inode pointer).

    Note that the dentry type field may be set to something other than
    DCACHE_MISS_TYPE when d_inode is NULL in the case of unionmount, where the VFS
    manages the fall-through from a negative dentry to a lower layer. In such a
    case, the dentry type of the negative union dentry is set to the same as the
    type of the lower dentry.

    However, if you know d_inode is not NULL at the call site, then you can use
    the d_is_xxx() functions even in a filesystem.

    There is one further complication: a 0,0 chardev dentry may be labelled
    DCACHE_WHITEOUT_TYPE rather than DCACHE_SPECIAL_TYPE. Strictly, this was
    intended for special directory entry types that don't have attached inodes.

    The following perl+coccinelle script was used:

    use strict;

    my @callers;
    open($fd, 'git grep -l \'S_IS[A-Z].*->d_inode\' |') ||
    die "Can't grep for S_ISDIR and co. callers";
    @callers = ;
    close($fd);
    unless (@callers) {
    print "No matches\n";
    exit(0);
    }

    my @cocci = (
    '@@',
    'expression E;',
    '@@',
    '',
    '- S_ISLNK(E->d_inode->i_mode)',
    '+ d_is_symlink(E)',
    '',
    '@@',
    'expression E;',
    '@@',
    '',
    '- S_ISDIR(E->d_inode->i_mode)',
    '+ d_is_dir(E)',
    '',
    '@@',
    'expression E;',
    '@@',
    '',
    '- S_ISREG(E->d_inode->i_mode)',
    '+ d_is_reg(E)' );

    my $coccifile = "tmp.sp.cocci";
    open($fd, ">$coccifile") || die $coccifile;
    print($fd "$_\n") || die $coccifile foreach (@cocci);
    close($fd);

    foreach my $file (@callers) {
    chomp $file;
    print "Processing ", $file, "\n";
    system("spatch", "--sp-file", $coccifile, $file, "--in-place", "--no-show-diff") == 0 ||
    die "spatch failed";
    }

    [AV: overlayfs parts skipped]

    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    David Howells
     

20 Feb, 2015

1 commit


18 Feb, 2015

13 commits

  • Pull mcelog regression fix from Tony Luck:
    "Fix regression - functions on the mce notifier chain should not be
    able to decide that an event should not be logged"

    * tag 'please-pull-fixmcelog' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
    x86/mce: Fix regression. All error records should report via /dev/mcelog

    Linus Torvalds
     
  • Merge yet more updates from Andrew Morton:

    - a pile of minor fs fixes and cleanups

    - kexec updates

    - random misc fixes in various places: vmcore, rbtree, eventfd, ipc, seccomp.

    - a series of python-based kgdb helper scripts

    * emailed patches from Andrew Morton : (58 commits)
    seccomp: cap SECCOMP_RET_ERRNO data to MAX_ERRNO
    samples/seccomp: improve label helper
    ipc,sem: use current->state helpers
    scripts/gdb: disable pagination while printing from breakpoint handler
    scripts/gdb: define maintainer
    scripts/gdb: convert CpuList to generator function
    scripts/gdb: convert ModuleList to generator function
    scripts/gdb: use a generator instead of iterator for task list
    scripts/gdb: ignore byte-compiled python files
    scripts/gdb: port to python3 / gdb7.7
    scripts/gdb: add basic documentation
    scripts/gdb: add lx-lsmod command
    scripts/gdb: add class to iterate over CPU masks
    scripts/gdb: add lx_current convenience function
    scripts/gdb: add internal helper and convenience function for per-cpu lookup
    scripts/gdb: add get_gdbserver_type helper
    scripts/gdb: add internal helper and convenience function to retrieve thread_info
    scripts/gdb: add is_target_arch helper
    scripts/gdb: add helper and convenience function to look up tasks
    scripts/gdb: add task iteration class
    ...

    Linus Torvalds
     
  • Add a new kexec preprocessor macro IND_FLAGS, which is the bitwise OR of
    all the possible kexec IND_ kimage_entry indirection flags. Having this
    macro allows for simplified code in the prosessing of the kexec
    kimage_entry items. Also, remove the local powerpc definition and use the
    generic one.

    Signed-off-by: Geoff Levand
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Vivek Goyal
    Cc: Arnd Bergmann
    Cc: Maximilian Attems
    Cc: Michal Marek
    Cc: H. Peter Anvin
    Cc: Paul Bolle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geoff Levand
     
  • Pull parisc update from Helge Deller:
    "The major change in here is the removal of the old HP-UX compat code
    which should have made it possible to load and execute 32-bit HP-UX
    binaries on PA-RISC Linux. Since it was never functional and since
    nobody cares about old 32-bit HPUX binaries any longer, it's now time
    to free up 3200 lines of kernel code (CONFIG_HPUX and
    CONFIG_BINFMT_SOM).

    Other than that we wire up the execveat() syscall, fix sparse errors
    and have some whitespace cleanups"

    * 'parisc-3.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
    fs/binfmt_som: Drop kernel support for HP-UX SOM binaries
    parisc: Remove unused function
    parisc: macro whitespace fixes
    parisc/uaccess: fix sparse errors
    parisc: hpux - Remove HPUX syscall numbers
    parisc: hpux - Remove hpux gateway page
    parisc: hpux - Delete files in hpux subdirectory
    parisc: hpux - Do not compile hpux subdirectory
    parisc: hpux - Drop support for HP-UX binaries
    parisc: Add error checks when building up signal trampoline handler
    parisc: Wire up execveat syscall

    Linus Torvalds
     
  • Pull arch/nios2 update from Ley Foon Tan:
    "Here is the nios2 update for 3.20:

    - add early printk support
    - add kgdb support
    - add compressed kernel support
    - bugfixes"

    * tag 'nios2-v3.20-rc1' of git://git.rocketboards.org/linux-socfpga-next:
    nios2: add kgdb support
    MAINTAINERS: update arch/nios2 git tree
    nios2: default CONFIG_NIOS2_BOOT_LINK_OFFSET to 8MB
    nios2: Add support for compressed kernel
    nios2: add early printk support
    nios2: Port OOM changes to do_page_fault()
    nios2: Remove unused prepare_to_copy()

    Linus Torvalds
     
  • Pull ARM SoC 64-bit changes and additions from Olof Johansson:
    "The 64-bit set of updates this release cycle adds support for three
    new platforms:

    - Samsunc Exynos 7
    - Freescale LS2085a
    - Mediatek MT8173

    For all these, the changes mostly consititude additions of DT
    contents, but also some Kconfig entries to allow dependency/selection
    of drivers per-platform, etc"

    * tag '64bit-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    arm64: Kconfig: clean up two no-op Kconfig options from CONFIG_ARCH_TEGRA*
    arm64: Fix sort of platform Kconfig entries
    arm64: Add support for FSL's LS2085A SoC in Kconfig and defconfig
    arm64: Add DTS support for FSL's LS2085A SoC
    arm64: mediatek: Add MT8173 SoC Kconfig and defconfig
    arm64: dts: Add mediatek MT8173 SoC and evaluation board dts and Makefile
    Document: DT: Add bindings for mediatek MT8173 SoC Platform
    arm64: Add Tegra132 support
    arm64: Enable ARMv8 based exynos7 SoC support
    arm64: dts: Add nodes for mmc, i2c, rtc, watchdog, adc on exynos7
    arm64: dts: Add PMU DT node for exynos7 SoC
    arm64: dts: Add initial pinctrl support to exynos7
    arm64: dts: Add initial device tree support for exynos7

    Linus Torvalds
     
  • Pull ARM SoC defconfig changes from Olof Johansson:
    "Most of these changes are to enable new drivers that have been merged,
    or various additions to make defconfigs more useful. There's also a
    set of patches trimming down omap2plus kernel size a bit since it is
    quite large"

    * tag 'defconfig-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (39 commits)
    ARM: config: add DEVTMPFS option by default to keystone config
    ARM: multi_v7_defconfig: Enable Exynos5420 Multi-Cluster PM support
    ARM: shmobile: Select CONFIG_REGULATOR in defconfig once again
    ARM: exynos_defconfig: Enable CONFIG_FHANDLE
    ARM: exynos_defconfig: Enable PMIC and MUIC drivers for Gears and Trats2
    ARM: exynos_defconfig: Enable CONFIG_LOCKUP_DETECTOR
    ARM: config: enable ARCH_HIP01
    ARM: omap2plus_defconfig: Enable OHCI & EHCI HCD support
    ARM: omap2plus_defconfig: Enable misc options for BeagleBoard-X15 platform
    ARM: imx_v6_v7_defconfig: enable more USB functions
    ARM: imx_v6_v7_defconfig: Select CONFIG_FB_MXS
    ARM: omap2plus_defconfig: Enable pcf857x
    ARM: omap2plus_defconfig: Add NOR flash support
    ARM: omap2plus_defconfig: Enable support for davinci_emac
    ARM: multi_v7_defconfig: Enable MiPHY28lp - ST's Generic (SATA, PCIe & USB3) PHY
    ARM: efm32: update defconfig
    ARM: at91: sama5: enable atmel-isi and ov2640 in defconfig
    ARM: multi_v7_defconfig: Enable Hip01 platform
    ARM: config: multi_v7: Update it for Keystone defconfig
    ARM: shmobile: Enable kzm9g board in multiplatform defconfig
    ...

    Linus Torvalds
     
  • Pull ARM SoC driver updates from Olof Johansson:
    "These are changes for drivers that are intimately tied to some SoC and
    for some reason could not get merged through the respective subsystem
    maintainer tree.

    This time around, much of this is for at91, with the bulk of it being
    syscon and udc drivers.

    Also, there's:
    - coupled cpuidle support for Samsung Exynos4210
    - Renesas 73A0 common-clk work
    - of/platform changes to tear down DMA mappings on device destruction
    - a few updates to the TI Keystone knav code"

    * tag 'drivers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (26 commits)
    cpuidle: exynos: add coupled cpuidle support for exynos4210
    ARM: EXYNOS: apply S5P_CENTRAL_SEQ_OPTION fix only when necessary
    soc: ti: knav_qmss_queue: change knav_range_setup_acc_irq to static
    soc: ti: knav_qmss_queue: makefile tweak to build as dynamic module
    pcmcia: at91_cf: depend on !ARCH_MULTIPLATFORM
    soc: ti: knav_qmss_queue: export API calls for use by user driver
    of/platform: teardown DMA mappings on device destruction
    usb: gadget: at91_udc: Allocate udc instance
    usb: gadget: at91_udc: Update DT binding documentation
    usb: gadget: at91_udc: Rework for multi-platform kernel support
    usb: gadget: at91_udc: Simplify probe and remove functions
    usb: gadget: at91_udc: Remove non-DT handling code
    usb: gadget: at91_udc: Document DT clocks and clock-names property
    usb: gadget: at91_udc: Drop uclk clock
    usb: gadget: at91_udc: Fix clock names
    mfd: syscon: Add Atmel SMC binding doc
    mfd: syscon: Add atmel-smc registers definition
    mfd: syscon: Add Atmel Matrix bus DT binding documentation
    mfd: syscon: Add atmel-matrix registers definition
    clk: shmobile: fix sparse NULL pointer warning
    ...

    Linus Torvalds
     
  • Pull ARM SoC DT updates from Olof Johansson:
    "DT changes continue to be the bulk of our merge window contents.

    We continue to have a large set of changes across the board as new
    platforms and drivers are added.

    Some of the new platforms are:
    - Alphascale ASM9260
    - Marvell Armada 388
    - CSR Atlas7
    - TI Davinci DM816x
    - Hisilicon HiP01
    - ST STiH418

    There have also been some sweeping changes, including relicensing of
    DTS contents from GPL to GPLv2+/X11 so that the same files can be
    reused in other non-GPL projects more easily. There's also been
    changes to the DT Makefile to make it a little less conflict-ridden
    and churny down the road"

    * tag 'dt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (330 commits)
    ARM: dts: Add PPMU node for exynos4412-trats2
    ARM: dts: Add PPMU node for exynos3250-monk and exynos3250-rinato
    ARM: dts: Add PPMU dt node for exynos4 and exynos4210
    ARM: dts: Add PPMU dt node for exynos3250
    ARM: dts: add mipi dsi device node for exynos4415
    ARM: dts: add fimd device node for exynos4415
    ARM: dts: Add syscon phandle to the video-phy node for Exynos4
    ARM: dts: Add sound nodes for exynos4412-trats2
    ARM: dts: Fix CLK_MOUT_CAMn parent clocks assignment for exynos4412-trats2
    ARM: dts: Fix CLK_UART_ISP_SCLK clock assignment in exynos4x12.dtsi
    ARM: dts: Add max77693 charger node for exynos4412-trats2
    ARM: dts: Switch max77686 regulators to GPIO control for exynos4412-trats2
    ARM: dts: Add suspend configuration for max77686 regulators for exynos4412-trats2
    ARM: dts: Add Maxim 77693 fuel gauge node for exynos4412-trats2
    ARM: dts: am57xx-beagle-x15: Fix USB2 mode
    ARM: dts: am57xx-beagle-x15: Add extcon nodes for USB
    ARM: dts: dra72-evm: Add extcon nodes for USB
    ARM: dts: dra7-evm: Add extcon nodes for USB
    ARM: dts: rockchip: move the hdmi ddc-i2c-bus property to the actual boards
    ARM: dts: rockchip: enable vops and hdmi output on rk3288-firefly and -evb
    ...

    Linus Torvalds
     
  • Pull ARM SoC platform changes from Olof Johansson:
    "New and updated SoC support. Also included are some cleanups where
    the platform maintainers hadn't separated cleanups from new developent
    in separate branches.

    Some of the larger things worth pointing out:

    - A large set of changes from Alexandre Belloni and Nicolas Ferre
    preparing at91 platforms for multiplatform and cleaning up quite a
    bit in the process.

    - Removal of CSR's "Marco" SoC platform that never made it out to the
    market. We love seeing these since it means the vendor published
    support before product was out, which is exactly what we want!

    New platforms this release are:

    - Conexant Digicolor (CX92755 SoC)
    - Hisilicon HiP01 SoC
    - CSR/sirf Atlas7 SoC
    - ST STiH418 SoC
    - Common code changes for Nvidia Tegra132 (64-bit SoC)

    We're seeing more and more platforms having a harder time labelling
    changes as cleanups vs new development -- which is a good sign that
    we've come quite far on the cleanup effort. So over time we might
    start combining the cleanup and new-development branches more"

    * tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (124 commits)
    ARM: at91/trivial: unify functions and machine names
    ARM: at91: remove at91_dt_initialize and machine init_early()
    ARM: at91: change board files into SoC files
    ARM: at91: remove at91_boot_soc
    ARM: at91: move alternative initial mapping to board-dt-sama5.c
    ARM: at91: merge all SOC_AT91SAM9xxx
    ARM: at91: at91rm9200: set idle and restart from rm9200_dt_device_init()
    ARM: digicolor: select syscon and timer
    ARM: zynq: Simplify SLCR initialization
    ARM: zynq: PM: Fixed simple typo.
    ARM: zynq: Setup default gpio number for Xilinx Zynq
    ARM: digicolor: add low level debug support
    ARM: initial support for Conexant Digicolor CX92755 SoC
    ARM: OMAP2+: Add dm816x hwmod support
    ARM: OMAP2+: Add clock domain support for dm816x
    ARM: OMAP2+: Add board-generic.c entry for ti81xx
    ARM: at91: pm: remove warning to remove SOC_AT91SAM9263 usage
    ARM: at91: remove unused mach/system_rev.h
    ARM: at91: stop using HAVE_AT91_DBGUx
    ARM: at91: fix ordering of SRAM and PM initialization
    ...

    Linus Torvalds
     
  • Pull ARM SoC cleanups from Olof Johansson:
    "This is a good healthy set of various code removals. Total net delta
    is 8100 lines removed.

    Among the larger cleanups are:

    - Removal of old Samsung S3C DMA infrastructure by Arnd
    - Removal of the non-DT version of the 'lager' board by Magnus Damm
    - General stale code removal on OMAP and Davinci by Rickard Strandqvist
    - Removal of non-DT support on am3517 platforms by Tony Lindgren

    ... plus several other cleanups of various platforms across the board"

    * tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (47 commits)
    ARM: sirf: drop redundant function and marco declaration
    arm: omap: specify PMUs are for ARMv7 CPUs
    arm: shmobile: specify PMUs are for ARMv7 CPUs
    arm: iop: specify PMUs are for XScale CPUs
    arm: pxa: specify PMUs are for XScale CPUs
    arm: realview: specify PMU types
    ARM: SAMSUNG: remove unused DMA infrastructure
    ARM: OMAP3: Add back Kconfig option MACH_OMAP3517EVM for ASoC
    ARM: davinci: Remove CDCE949 driver
    ARM: at91: remove useless at91rm9200_set_type()
    ARM: at91: remove useless at91rm9200_dt_initialize()
    ARM: at91: move debug-macro.S into the common space
    ARM: at91: remove useless at91_sysirq_mask_rtx
    ARM: at91: remove useless config MACH_AT91SAM9_DT
    ARM: at91: remove useless config MACH_AT91RM9200_DT
    ARM: at91: remove unused mach/memory.h
    ARM: at91: remove useless header file includes
    ARM: at91: remove unneeded header file
    rtc: at91/Kconfig: remove useless options
    ARM: at91/Documentation: add a README for Atmel SoCs
    ...

    Linus Torvalds
     
  • …ernel/git/arm/arm-soc

    Pull ARM SoC non-critical fixes from Olof Johansson:
    "Here's a small collection of fixes accrued during the last release
    that weren't considered severe enough to merge during the -rc series.

    A few of these are around resurrecting TI81xx support that's been
    broken for quite a while, the rest are smaller fixes -- most for PXA
    but a few across the board.

    There are also some updates to MAINTAINERS here, in particular for
    Broadcom platforms"

    * tag 'fixes-non-critical-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (23 commits)
    MAINTAINERS: fix git repositories for Broadcom SoCs
    ARM: pxa: fix broken isa interrupts for zeus and viper
    ARM: DRA7: hwmod: Fix boot crash with DEBUG_LL enabled on UART3
    ARM: OMAP: DRA7: hwmod: Make gpmc software supervised as the smart idle is broken
    ARM: AM43xx: hwmod: set DSS submodule parent hwmods
    ARM: OMAP2+: hwmod: print error if wait_target_ready() failed
    MAINTAINERS: add maintainer for OMAP hwmod data
    ARM: OMAP2+: Disable omap3 PM init for ti81xx
    ARM: OMAP2+: Fix reboot for 81xx
    ARM: OMAP2+: Fix dm814 and dm816 for clocks and timer init
    ARM: OMAP2+: Fix ti81xx class type
    ARM: OMAP2+: Fix ti81xx devtype
    ARM: OMAP2+: Fix error handling for omap2_clk_enable_init_clocks
    MAINTAINERS: add a git entry for BMIPS-based BCM7xxx SoCs
    MAINTAINERS: add a git entry for BCM7xxx ARM-based SoCs
    MAINTAINERS: update Broadcom Cygnus SoC git tree
    MAINTAINERS: move BCM63xx ARM-based SoCs git tree
    hx4700: regulator: declare full constraints
    ARM: pxa: add regulator_has_full_constraints to spitz board file
    ARM: pxa: add regulator_has_full_constraints to poodle board file
    ...

    Linus Torvalds
     
  • Merge fifth set of updates from Andrew Morton:

    - A few things which were awaiting merges from linux-next:
    - rtc
    - ocfs2
    - misc others

    - Willy's "dax" feature: direct fs access to memory (mainly NV-DIMMs)
    which isn't backed by pageframes.

    * emailed patches from Andrew Morton : (37 commits)
    rtc: add driver for DS1685 family of real time clocks
    MAINTAINERS: add entry for Maxim PMICs on Samsung boards
    lib/Kconfig: use bool instead of boolean
    powerpc: drop _PAGE_FILE and pte_file()-related helpers
    ocfs2: set append dio as a ro compat feature
    ocfs2: wait for orphan recovery first once append O_DIRECT write crash
    ocfs2: complete the rest request through buffer io
    ocfs2: do not fallback to buffer I/O write if appending
    ocfs2: allocate blocks in ocfs2_direct_IO_get_blocks
    ocfs2: implement ocfs2_direct_IO_write
    ocfs2: add orphan recovery types in ocfs2_recover_orphans
    ocfs2: add functions to add and remove inode in orphan dir
    ocfs2: prepare some interfaces used in append direct io
    MAINTAINERS: fix spelling mistake & remove trailing WS
    dax: does not work correctly with virtual aliasing caches
    brd: rename XIP to DAX
    ext4: add DAX functionality
    dax: add dax_zero_page_range
    ext2: get rid of most mentions of XIP in ext2
    ext2: remove ext2_aops_xip
    ...

    Linus Torvalds
     

17 Feb, 2015

16 commits

  • Remove the function smp_send_start() that is not used anywhere.

    This was partially found by using a static code analysis program called cppcheck.

    Signed-off-by: Rickard Strandqvist
    Signed-off-by: Helge Deller

    Rickard Strandqvist
     
  • While working on arch/parisc/include/asm/uaccess.h, I noticed that some
    macros within this header are made harder to read because they violate a
    coding style rule: space is missing after comma.

    Fix it up.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Helge Deller

    Michael S. Tsirkin
     
  • We've replaced remap_file_pages(2) implementation with emulation. Nobody
    creates non-linear mapping anymore.

    Signed-off-by: Kirill A. Shutemov
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Michael Ellerman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill A. Shutemov
     
  • "isil" and "isl" prefixes are used at various locations inside the kernel
    to reference Intersil corporation. This patch is part of a series fixing
    those locations were "isl" is used in compatible strings to use the now
    expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
    version).

    Note: isl9305 is an I2C device so the patch does not in fact currently
    depend on the introduction of "isil"-based compatible string in isl9305
    driver (provided by another patch) because I2C core does not check the
    prefix yet.

    Signed-off-by: Arnaud Ebalard
    Cc: Rob Herring
    Cc: Pawel Moll
    Cc: Mark Rutland
    Cc: Ian Campbell
    Cc: Kumar Gala
    Cc: Russell King
    Cc: Stephen Warren
    Cc: Thierry Reding
    Cc: Alexandre Courbot
    Cc: Uwe Kleine-Knig
    Cc: Alessandro Zummo
    Cc: Peter Huewe
    Cc: Linus Walleij
    Cc: Mark Brown
    Cc: Arnd Bergmann
    Cc: Darshana Padmadas
    Cc: Grant Likely
    Cc: Rob Landley
    Cc: Jason Cooper
    Cc: Guenter Roeck
    Cc: Jason Gunthorpe
    Cc: Uwe Kleine-König
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Ebalard
     
  • Pull clocksource updates from Ingo Molnar:
    "The main change in this tree is the addition of various new SoC
    clocksource/clockevents drivers: Conexant Digicolor SoCs, rockchip
    rk3288 board, asm9260 for MIPS and versatile AB/PB boards"

    * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    dts: versatile: Add sysregs node
    clocksource: versatile: Adapt for Versatile AB and PB boards
    dt/bindings: Add binding for Versatile system registers
    clocksource: Driver for Conexant Digicolor SoC timer
    clocksource: devicetree: Document Conexant Digicolor timer binding
    clockevents: rockchip: Add rockchip timer for rk3288
    ARM: clocksource: Add asm9260_timer driver
    clocksource: marco: Rename marco to atlas7
    clocksource: sirf: Remove unused variable

    Linus Torvalds
     
  • Pull x86 perf updates from Ingo Molnar:
    "This series tightens up RDPMC permissions: currently even highly
    sandboxed x86 execution environments (such as seccomp) have permission
    to execute RDPMC, which may leak various perf events / PMU state such
    as timing information and other CPU execution details.

    This 'all is allowed' RDPMC mode is still preserved as the
    (non-default) /sys/devices/cpu/rdpmc=2 setting. The new default is
    that RDPMC access is only allowed if a perf event is mmap-ed (which is
    needed to correctly interpret RDPMC counter values in any case).

    As a side effect of these changes CR4 handling is cleaned up in the
    x86 code and a shadow copy of the CR4 value is added.

    The extra CR4 manipulation adds ~ of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf/x86: Add /sys/devices/cpu/rdpmc=2 to allow rdpmc for all tasks
    perf/x86: Only allow rdpmc if a perf_event is mapped
    perf: Pass the event to arch_perf_update_userpage()
    perf: Add pmu callbacks to track event mapping and unmapping
    x86: Add a comment clarifying LDT context switching
    x86: Store a per-cpu shadow copy of CR4
    x86: Clean up cr4 manipulation

    Linus Torvalds
     
  • Pull ARC updates from Vineet Gupta:
    "Some fixes, nothing too exciting this time as well..."

    * tag 'arc-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
    ARC: fix page address calculation if PAGE_OFFSET != LINUX_LINK_BASE
    ARC: Fix earlycon build breakage
    ARC: Dynamically determine BASE_BAUD from DeviceTree
    arc: Remove unused prepare_to_copy()
    ARC: use ACCESS_ONCE in cmpxchg loop
    ARC: add some more comments to ret_from_fork
    ARC: fix /proc/cpuinfo for offline cpus

    Linus Torvalds
     
  • Pull m68knommu fixes from Greg Ungerer:
    "Nothing big, only a small collection of minor cleanups/fixes"

    * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
    arch: m68k: 68360: config: Remove unused function
    m68knommu: fix irq handler types in 68360/commproc.c
    m68k: remove check for CONFIG_BSEIP

    Linus Torvalds
     
  • virtio wants to read bitwise types from userspace using get_user. At the
    moment this triggers sparse errors, since the value is passed through an
    integer.

    Fix that up using __force.

    Signed-off-by: Michael S. Tsirkin
    Acked-by: Helge Deller
    Signed-off-by: Helge Deller

    Michael S. Tsirkin
     
  • Signed-off-by: Helge Deller

    Helge Deller
     
  • Drop code to create HP-UX gateway page and syscall entry code.

    Signed-off-by: Helge Deller

    Helge Deller
     
  • Signed-off-by: Helge Deller

    Helge Deller
     
  • Signed-off-by: Helge Deller

    Helge Deller
     
  • This patch series drops the support for 32bit HP-UX binaries.

    The HP-UX compat layer has always been incomplete and it's unlikely that
    someone will ever implement it.

    Furthermore those two commits which enhance the compatibility of Linux on parisc
    to other architectures:
    f5a408d: parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc
    1f25df2: parisc: Reduce SIGRTMIN from 37 to 32 to behave like other Linux architectures
    basically make it impossible to implement the HP-UX support correctly.

    Signed-off-by: Helge Deller

    Helge Deller
     
  • Add checks if the userspace trampoline code was correctly generated by the
    signal trampoline generation code. In addition only flush caches as needed and
    fix the old flushing code which didn't flushed all generated instructions.

    Signed-off-by: Helge Deller

    Helge Deller
     
  • Signed-off-by: Helge Deller

    Helge Deller
     

16 Feb, 2015

5 commits

  • Signed-off-by: Ley Foon Tan

    Ley Foon Tan
     
  • Pull CRIS changes from Jesper Nilsson.

    * tag 'cris-for-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris:
    CRIS: Whitespace cleanup
    CRIS: macro whitespace fixes in uaccess.h
    CRIS: uaccess: fix sparse errors
    CRISv32: Remove unnecessary KERN_INFO from sync_serial
    CRIS: Fix missing NR_CPUS in menuconfig
    CRISv32: Avoid warning of unused variable
    CRIS: Avoid warning in cris mm/fault.c
    CRIS: Export csum_partial_copy_nocheck

    Linus Torvalds
     
  • Pull tty/serial driver patches from Greg KH:
    "Here's the big tty/serial driver update for 3.20-rc1. Nothing huge
    here, just lots of driver updates and some core tty layer fixes as
    well. All have been in linux-next with no reported issues"

    * tag 'tty-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (119 commits)
    serial: 8250: Fix UART_BUG_TXEN workaround
    serial: driver for ETRAX FS UART
    tty: remove unused variable sprop
    serial: of-serial: fetch line number from DT
    serial: samsung: earlycon support depends on CONFIG_SERIAL_SAMSUNG_CONSOLE
    tty/serial: serial8250_set_divisor() can be static
    tty/serial: Add Spreadtrum sc9836-uart driver support
    Documentation: DT: Add bindings for Spreadtrum SoC Platform
    serial: samsung: remove redundant interrupt enabling
    tty: Remove external interface for tty_set_termios()
    serial: omap: Fix RTS handling
    serial: 8250_omap: Use UPSTAT_AUTORTS for RTS handling
    serial: core: Rework hw-assisted flow control support
    tty/serial: 8250_early: Add support for PXA UARTs
    tty/serial: of_serial: add support for PXA/MMP uarts
    tty/serial: of_serial: add DT alias ID handling
    serial: 8250: Prevent concurrent updates to shadow registers
    serial: 8250: Use canary to restart console after suspend
    serial: 8250: Refactor XR17V35X divisor calculation
    serial: 8250: Refactor divisor programming
    ...

    Linus Torvalds
     
  • Pull char / misc patches from Greg KH:
    "Here's the big char/misc driver update for 3.20-rc1.

    Lots of little things in here, all described in the changelog.
    Nothing major or unusual, except maybe the binder selinux stuff, which
    was all acked by the proper selinux people and they thought it best to
    come through this tree.

    All of this has been in linux-next with no reported issues for a while"

    * tag 'char-misc-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (90 commits)
    coresight: fix function etm_writel_cp14() parameter order
    coresight-etm: remove check for unknown Kconfig macro
    coresight: fixing CPU hwid lookup in device tree
    coresight: remove the unnecessary function coresight_is_bit_set()
    coresight: fix the debug AMBA bus name
    coresight: remove the extra spaces
    coresight: fix the link between orphan connection and newly added device
    coresight: remove the unnecessary replicator property
    coresight: fix the replicator subtype value
    pdfdocs: Fix 'make pdfdocs' failure for 'uio-howto.tmpl'
    mcb: Fix error path of mcb_pci_probe
    virtio/console: verify device has config space
    ti-st: clean up data types (fix harmless memory corruption)
    mei: me: release hw from reset only during the reset flow
    mei: mask interrupt set bit on clean reset bit
    extcon: max77693: Constify struct regmap_config
    extcon: adc-jack: Release IIO channel on driver remove
    extcon: Remove duplicated include from extcon-class.c
    Drivers: hv: vmbus: hv_process_timer_expiration() can be static
    Drivers: hv: vmbus: serialize Offer and Rescind offer
    ...

    Linus Torvalds
     
  • Pull USB patches from Greg KH:
    "Here's the big pull request for the USB driver tree for 3.20-rc1.

    Nothing major happening here, just lots of gadget driver updates, new
    device ids, and a bunch of cleanups.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'usb-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (299 commits)
    usb: musb: fix device hotplug behind hub
    usb: dwc2: Fix a bug in reading the endpoint directions from reg.
    staging: emxx_udc: fix the build error
    usb: Retry port status check on resume to work around RH bugs
    Revert "usb: Reset USB-3 devices on USB-3 link bounce"
    uhci-hub: use HUB_CHAR_*
    usb: kconfig: replace PPC_OF with PPC
    ehci-pci: disable for Intel MID platforms (update)
    usb: gadget: Kconfig: use bool instead of boolean
    usb: musb: blackfin: remove incorrect __exit_p()
    USB: fix use-after-free bug in usb_hcd_unlink_urb()
    ehci-pci: disable for Intel MID platforms
    usb: host: pci_quirks: joing string literals
    USB: add flag for HCDs that can't receive wakeup requests (isp1760-hcd)
    USB: usbfs: allow URBs to be reaped after disconnection
    cdc-acm: kill unnecessary messages
    cdc-acm: add sanity checks
    usb: phy: phy-generic: Fix USB PHY gpio reset
    usb: dwc2: fix USB core dependencies
    usb: renesas_usbhs: fix NULL pointer dereference in dma_release_channel()
    ...

    Linus Torvalds
     

15 Feb, 2015

4 commits

  • Pull ACCESS_ONCE() rule tightening from Christian Borntraeger:
    "Tighten rules for ACCESS_ONCE

    This series tightens the rules for ACCESS_ONCE to only work on scalar
    types. It also contains the necessary fixups as indicated by build
    bots of linux-next. Now everything is in place to prevent new
    non-scalar users of ACCESS_ONCE and we can continue to convert code to
    READ_ONCE/WRITE_ONCE"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger/linux:
    kernel: Fix sparse warning for ACCESS_ONCE
    next: sh: Fix compile error
    kernel: tighten rules for ACCESS ONCE
    mm/gup: Replace ACCESS_ONCE with READ_ONCE
    x86/spinlock: Leftover conversion ACCESS_ONCE->READ_ONCE
    x86/xen/p2m: Replace ACCESS_ONCE with READ_ONCE
    ppc/hugetlbfs: Replace ACCESS_ONCE with READ_ONCE
    ppc/kvm: Replace ACCESS_ONCE with READ_ONCE

    Linus Torvalds
     
  • No functional change, just clean up the most obvious.

    Signed-off-by: Jesper Nilsson

    Jesper Nilsson
     
  • While working on arch/cris/include/asm/uaccess.h, I noticed
    that some macros within this header are made harder to read because they
    violate a coding style rule: space is missing after comma.

    Fix it up.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Jesper Nilsson

    Michael S. Tsirkin
     
  • virtio wants to read bitwise types from userspace using get_user. At the
    moment this triggers sparse errors, since the value is passed through an
    integer.

    Fix that up using __force.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Jesper Nilsson

    Michael S. Tsirkin