11 May, 2017

3 commits

  • …asahiroy/linux-kbuild

    Pull Kbuild UAPI updates from Masahiro Yamada:
    "Improvement of headers_install by Nicolas Dichtel.

    It has been long since the introduction of uapi directories, but the
    de-coupling of exported headers has not been completed. Headers listed
    in header-y are exported whether they exist in uapi directories or
    not. His work fixes this inconsistency.

    All (and only) headers under uapi directories are now exported. The
    asm-generic wrappers are still exceptions, but this is a big step
    forward"

    * tag 'kbuild-uapi-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
    arch/include: remove empty Kbuild files
    uapi: export all arch specifics directories
    uapi: export all headers under uapi directories
    smc_diag.h: fix include from userland
    btrfs_tree.h: fix include from userland
    uapi: includes linux/types.h before exporting files
    Makefile.headersinst: remove destination-y option
    Makefile.headersinst: cleanup input files
    x86: stop exporting msr-index.h to userland
    nios2: put setup.h in uapi
    h8300: put bitsperlong.h in uapi

    Linus Torvalds
     
  • …asahiroy/linux-kbuild

    Pull misc Kbuild updates from Masahiro Yamada:

    - clean up builddeb script

    - use full path for KBUILD_IMAGE to fix rpm-pkg build

    - fix objdiff tool to ignore debug info

    * tag 'kbuild-misc-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
    builddeb: fix typo
    builddeb: Update a few outdated and hardcoded strings
    deb-pkg: Remove the KBUILD_IMAGE workaround
    unicore32: Use full path in KBUILD_IMAGE definition
    sh: Use full path in KBUILD_IMAGE definition
    arc: Use full path in KBUILD_IMAGE definition
    arm: Use full path in KBUILD_IMAGE definition
    arm64: Use full path in KBUILD_IMAGE definition
    scripts: objdiff: Ignore debug info when comparing

    Linus Torvalds
     
  • Pull Kbuild updates from Masahiro Yamada:

    - improve Clang support

    - clean up various Makefiles

    - improve build log visibility (objtool, alpha, ia64)

    - improve compiler flag evaluation for better build performance

    - fix GCC version-dependent warning

    - fix genksyms

    * tag 'kbuild-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (23 commits)
    kbuild: dtbinst: remove unnecessary __dtbs_install_prep target
    ia64: beatify build log for gate.so and gate-syms.o
    alpha: make short build log available for division routines
    alpha: merge build rules of division routines
    alpha: add $(src)/ rather than $(obj)/ to make source file path
    Makefile: evaluate LDFLAGS_BUILD_ID only once
    objtool: make it visible in make V=1 output
    kbuild: clang: add -no-integrated-as to KBUILD_[AC]FLAGS
    kbuild: Add support to generate LLVM assembly files
    kbuild: Add better clang cross build support
    kbuild: drop -Wno-unknown-warning-option from clang options
    kbuild: fix asm-offset generation to work with clang
    kbuild: consolidate redundant sed script ASM offset generation
    frv: Use OFFSET macro in DEF_*REG()
    kbuild: avoid conflict between -ffunction-sections and -pg on gcc-4.7
    kbuild: Consolidate header generation from ASM offset information
    kbuild: use -Oz instead of -Os when using clang
    kbuild, LLVMLinux: Add -Werror to cc-option to support clang
    Kbuild: make designated_init attribute fatal
    kbuild: drop unneeded patterns '.*.orig' and '.*.rej' from distclean
    ...

    Linus Torvalds
     

10 May, 2017

4 commits

  • This patch removes the need of subdir-y. Now all files/directories under
    arch//include/uapi/ are exported.

    The only change for userland is the layout of the command 'make
    headers_install_all': directories asm- are replaced by arch-/.
    Those new directories contains all files/directories of the specified arch.

    Note that only cris and tile have more directories than only asm:
    - arch-v[10|32] for cris;
    - arch for tile.

    Signed-off-by: Nicolas Dichtel
    Signed-off-by: Masahiro Yamada

    Nicolas Dichtel
     
  • Regularly, when a new header is created in include/uapi/, the developer
    forgets to add it in the corresponding Kbuild file. This error is usually
    detected after the release is out.

    In fact, all headers under uapi directories should be exported, thus it's
    useless to have an exhaustive list.

    After this patch, the following files, which were not exported, are now
    exported (with make headers_install_all):
    asm-arc/kvm_para.h
    asm-arc/ucontext.h
    asm-blackfin/shmparam.h
    asm-blackfin/ucontext.h
    asm-c6x/shmparam.h
    asm-c6x/ucontext.h
    asm-cris/kvm_para.h
    asm-h8300/shmparam.h
    asm-h8300/ucontext.h
    asm-hexagon/shmparam.h
    asm-m32r/kvm_para.h
    asm-m68k/kvm_para.h
    asm-m68k/shmparam.h
    asm-metag/kvm_para.h
    asm-metag/shmparam.h
    asm-metag/ucontext.h
    asm-mips/hwcap.h
    asm-mips/reg.h
    asm-mips/ucontext.h
    asm-nios2/kvm_para.h
    asm-nios2/ucontext.h
    asm-openrisc/shmparam.h
    asm-parisc/kvm_para.h
    asm-powerpc/perf_regs.h
    asm-sh/kvm_para.h
    asm-sh/ucontext.h
    asm-tile/shmparam.h
    asm-unicore32/shmparam.h
    asm-unicore32/ucontext.h
    asm-x86/hwcap2.h
    asm-xtensa/kvm_para.h
    drm/armada_drm.h
    drm/etnaviv_drm.h
    drm/vgem_drm.h
    linux/aspeed-lpc-ctrl.h
    linux/auto_dev-ioctl.h
    linux/bcache.h
    linux/btrfs_tree.h
    linux/can/vxcan.h
    linux/cifs/cifs_mount.h
    linux/coresight-stm.h
    linux/cryptouser.h
    linux/fsmap.h
    linux/genwqe/genwqe_card.h
    linux/hash_info.h
    linux/kcm.h
    linux/kcov.h
    linux/kfd_ioctl.h
    linux/lightnvm.h
    linux/module.h
    linux/nbd-netlink.h
    linux/nilfs2_api.h
    linux/nilfs2_ondisk.h
    linux/nsfs.h
    linux/pr.h
    linux/qrtr.h
    linux/rpmsg.h
    linux/sched/types.h
    linux/sed-opal.h
    linux/smc.h
    linux/smc_diag.h
    linux/stm.h
    linux/switchtec_ioctl.h
    linux/vfio_ccw.h
    linux/wil6210_uapi.h
    rdma/bnxt_re-abi.h

    Note that I have removed from this list the files which are generated in every
    exported directories (like .install or .install.cmd).

    Thanks to Julien Floret for the tip to get all
    subdirs with a pure makefile command.

    For the record, note that exported files for asm directories are a mix of
    files listed by:
    - include/uapi/asm-generic/Kbuild.asm;
    - arch//include/uapi/asm/Kbuild;
    - arch//include/asm/Kbuild.

    Signed-off-by: Nicolas Dichtel
    Acked-by: Daniel Vetter
    Acked-by: Russell King
    Acked-by: Mark Salter
    Acked-by: Michael Ellerman (powerpc)
    Signed-off-by: Masahiro Yamada

    Nicolas Dichtel
     
  • This option was added in commit c7bb349e7c25 ("kbuild: introduce destination-y
    for exported headers") but never used in-tree.

    Signed-off-by: Nicolas Dichtel
    Acked-by: Paul Bolle
    Signed-off-by: Masahiro Yamada

    Nicolas Dichtel
     
  • After the last three patches, all exported headers are under uapi/, thus
    input-files2 are not needed anymore.
    The side effect is that input-files1-name is exactly header-y.

    Note also that input-files3-name is genhdr-y.

    Signed-off-by: Nicolas Dichtel
    Signed-off-by: Masahiro Yamada

    Nicolas Dichtel
     

09 May, 2017

16 commits

  • Add these misspellings to scripts/spelling.txt too

    Link: http://lkml.kernel.org/r/962aace119675e5fe87be2a88ddac1a5486f8e60.1490931810.git.joe@perches.com
    Signed-off-by: Joe Perches
    Acked-by: Mauro Carvalho Chehab
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Fix typos and add the following to the scripts/spelling.txt:

    intialisation||initialisation
    intialised||initialised
    intialise||initialise

    This commit does not intend to change the British spelling itself.

    Link: http://lkml.kernel.org/r/1481573103-11329-18-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • This typo is quite common. Fix it and add it to the spelling file so
    that checkpatch catches it earlier.

    Link: http://lkml.kernel.org/r/20170317011131.6881-2-sboyd@codeaurora.org
    Signed-off-by: Stephen Boyd
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Boyd
     
  • Fix typos and add the following to the scripts/spelling.txt:

    momery||memory

    Link: http://lkml.kernel.org/r/20170317011131.6881-1-sboyd@codeaurora.org
    Signed-off-by: Stephen Boyd
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Boyd
     
  • The current SUSPECT_CODE_INDENT test does not recognize several
    defective code style defects where code following a logical test is
    inappropriately indented.

    Before this patch, for code like:

    if (foo)
    bar();

    checkpatch would not emit a warning.

    Improve the test to warn when code after a logical test has the same
    indentation as the logical test.

    Perform the same indentation test for "else" blocks too.

    Link: http://lkml.kernel.org/r/df2374b68c4a68af2b7ef08afe486584811f610a.1493683942.git.joe@perches.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • The current test works only for a single patch context as it is done in
    the foreach ($rawlines) loop that precedes the loop where the actual
    $context_function variable is used.

    Move the set of $context_function into the foreach (@lines) loop where
    it is useful for each patch context.

    Link: http://lkml.kernel.org/r/6c675a31c74fbfad4fc45b9f462303d60ca2a283.1493486091.git.joe@perches.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • When using checkpatch on out-of-tree code, it may occur that some
    project-specific types are used, which will cause spurious warnings.
    Add the --typedefsfile option as a way to extend the known types and
    deal with this issue.

    This was developed for OP-TEE [1]. We run a Travis job on all pull
    requests [2], and checkpatch is part of that. The typical false warning
    we get on a regular basis is with some pointers to functions returning
    TEE_Result [3], which is a typedef from the GlobalPlatform APIs. We
    consider it is acceptable to use GP types in the OP-TEE core
    implementation, that's why this patch would be helpful for us.

    [1] https://github.com/OP-TEE/optee_os
    [2] https://travis-ci.org/OP-TEE/optee_os/builds
    [3] https://travis-ci.org/OP-TEE/optee_os/builds/193355335#L1733

    Link: http://lkml.kernel.org/r/ba1124d6dfa599bb0dd1d8919dd45dd09ce541a4.1492702192.git.jerome.forissier@linaro.org
    Signed-off-by: Jerome Forissier
    Cc: Joe Perches
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jerome Forissier
     
  • Find multi-line uses of k.alloc by using the $stat variable and not the
    $line variable. This can still --fix only the single line variant
    though.

    Link: http://lkml.kernel.org/r/3f4b23d37cd4c7d8628eefc25afe83ba8fb3ab55.1493167076.git.joe@perches.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Currently checkpatch.pl does not recognize git's default commit revert
    message and will complain about the hash format. Add special audit for
    revert commit message line to fix it.

    Link: http://lkml.kernel.org/r/20170411191532.74381-1-wvw@google.com
    Signed-off-by: Wei Wang
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wei Wang
     
  • Try to make the conversion of embedded function names to "%s: ", __func__
    a bit clearer.

    Add a bit more information to the comment describing the test too.

    Link: http://lkml.kernel.org/r/38f5d32f0aec1cd98cb9ceeedd6a736cc9a802db.1491759835.git.joe@perches.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • The logic currrently misses macros that start with an if statement.

    e.g.: #define foo(bar) if (bar) baz;

    Add a test for macro content that starts with if

    Link: http://lkml.kernel.org/r/a9d41aafe1673889caf1a9850208fb7fd74107a0.1491783914.git.joe@perches.com
    Signed-off-by: Joe Perches
    Reported-by: Andreas Mohr
    Original-patch-by: Alfonso Lima
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Many structs are generally used const and there is a known list of these
    structs.

    struct definitions should not be generally be declared const.

    Add a test for the lack of an open brace immediately after the struct to
    avoid definitions.

    This avoids the false positive "struct foo should normally be const"
    message only when the open brace is on the same line as the definition.

    Link: http://lkml.kernel.org/r/0dce709150d712e66f1b90b03827634b53b28085.1491845946.git.joe@perches.com
    Signed-off-by: Joe Perches
    Cc: Arthur Brainville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Allow a leading space and otherwise blank link in the email headers as
    it can be a line wrapped Spamassassin multiple line string or any other
    valid rfc 2822/5322 email header.

    The line with space causes checkpatch to erroneously think that it's in
    the content body, as opposed to headers and thus flag a mail header as
    an unwrapped long comment line.

    Link: http://lkml.kernel.org/r/d75a9f0b78b3488078429f4037d9fff3bdfa3b78.1490247180.git.joe@perches.com
    Signed-off-by: Joe Perches Reported-by: Darren Hart (VMware)
    Tested-by: Darren Hart (VMware)
    Reviewed-by: Darren Hart (VMware)
    Original-patch-by: John 'Warthog9' Hawley (VMware)
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • The existing behavior relies on patch context to identify function
    declarations. Add the ability to find function declarations when there
    is an open brace in column 1.

    This finds function declarations only in specific single line forms
    where the function name is on a single line like:

    int foo(args...)
    {

    and

    int
    foo(args...)
    {

    It does not recognize function declarations like:

    int foo(int bar,
    int baz)
    {

    Link: http://lkml.kernel.org/r/738d74bbbe1a06b80f11ed504818107c68903095.1488155636.git.joe@perches.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • %pK was at least once misused at %pk in an out-of-tree module. This
    lead to some security concerns. Add the ability to track single and
    multiple line statements for misuses of %p.

    [akpm@linux-foundation.org: add helpful comment into lib/vsprintf.c]
    [akpm@linux-foundation.org: text tweak]
    Link: http://lkml.kernel.org/r/163a690510e636a23187c0dc9caa09ddac6d4cde.1488228427.git.joe@perches.com
    Signed-off-by: Joe Perches
    Acked-by: Kees Cook
    Acked-by: William Roberts
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Config EXPERIMENTAL has been removed from kernel in 2013 (see commit
    3d374d09f16f: "final removal of CONFIG_EXPERIMENTAL"), there is no any
    reason to do these checks now.

    Link: http://lkml.kernel.org/r/1488234097-20119-1-git-send-email-ruslan.bilovol@gmail.com
    Signed-off-by: Ruslan Bilovol
    Acked-by: Kees Cook
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ruslan Bilovol
     

08 May, 2017

1 commit


06 May, 2017

1 commit

  • Pull DeviceTree updates from Rob Herring:

    - fix sparse warnings in drivers/of/

    - add more overlay unittests

    - update dtc to v1.4.4-8-g756ffc4f52f6. This adds more checks on dts
    files such as unit-address formatting and stricter character sets for
    node and property names

    - add a common DT modalias function

    - move trivial-devices.txt up and out of i2c dir

    - ARM NVIC interrupt controller binding

    - vendor prefixes for Sensirion, Dioo, Nordic, ROHM

    - correct some binding file locations

    * tag 'devicetree-for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (24 commits)
    of: fix sparse warnings in fdt, irq, reserved mem, and resolver code
    of: fix sparse warning in of_pci_range_parser_one
    of: fix sparse warnings in of_find_next_cache_node
    of/unittest: Missing unlocks on error
    of: fix uninitialized variable warning for overlay test
    of: fix unittest build without CONFIG_OF_OVERLAY
    of: Add unit tests for applying overlays
    of: per-file dtc compiler flags
    fpga: region: add missing DT documentation for config complete timeout
    of: Add vendor prefix for ROHM Semiconductor
    of: fix "/cpus" reference leak in of_numa_parse_cpu_nodes()
    of: Add vendor prefix for Nordic Semiconductor
    dt-bindings: arm,nvic: Binding for ARM NVIC interrupt controller on Cortex-M
    dtc: update warning settings for new bus and node/property name checks
    scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6
    scripts/dtc: automate getting dtc version and log in update script
    of: Add function for generating a DT modalias with a newline
    of: fix of_device_get_modalias returned length when truncating buffers
    Documentation: devicetree: move trivial-devices out of I2C realm
    dt-bindings: add vendor prefix for Dioo
    ..

    Linus Torvalds
     

05 May, 2017

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here is the big set of new char/misc driver drivers and features for
    4.12-rc1.

    There's lots of new drivers added this time around, new firmware
    drivers from Google, more auxdisplay drivers, extcon drivers, fpga
    drivers, and a bunch of other driver updates. Nothing major, except if
    you happen to have the hardware for these drivers, and then you will
    be happy :)

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

    * tag 'char-misc-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (136 commits)
    firmware: google memconsole: Fix return value check in platform_memconsole_init()
    firmware: Google VPD: Fix return value check in vpd_platform_init()
    goldfish_pipe: fix build warning about using too much stack.
    goldfish_pipe: An implementation of more parallel pipe
    fpga fr br: update supported version numbers
    fpga: region: release FPGA region reference in error path
    fpga altera-hps2fpga: disable/unprepare clock on error in alt_fpga_bridge_probe()
    mei: drop the TODO from samples
    firmware: Google VPD sysfs driver
    firmware: Google VPD: import lib_vpd source files
    misc: lkdtm: Add volatile to intentional NULL pointer reference
    eeprom: idt_89hpesx: Add OF device ID table
    misc: ds1682: Add OF device ID table
    misc: tsl2550: Add OF device ID table
    w1: Remove unneeded use of assert() and remove w1_log.h
    w1: Use kernel common min() implementation
    uio_mf624: Align memory regions to page size and set correct offsets
    uio_mf624: Refactor memory info initialization
    uio: Allow handling of non page-aligned memory regions
    hangcheck-timer: Fix typo in comment
    ...

    Linus Torvalds
     

04 May, 2017

5 commits

  • Pull modules updates from Jessica Yu:

    - Minor code cleanups

    - Fix section alignment for .init_array

    * tag 'modules-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
    kallsyms: Use bounded strnchr() when parsing string
    module: Unify the return value type of try_module_get
    module: set .init_array alignment to 8

    Linus Torvalds
     
  • Pull tracing updates from Steven Rostedt:
    "New features for this release:

    - Pretty much a full rewrite of the processing of function plugins.
    i.e. echo do_IRQ:stacktrace > set_ftrace_filter

    - The rewrite was needed to add plugins to be unique to tracing
    instances. i.e. mkdir instance/foo; cd instances/foo; echo
    do_IRQ:stacktrace > set_ftrace_filter The old way was written very
    hacky. This removes a lot of those hacks.

    - New "function-fork" tracing option. When set, pids in the
    set_ftrace_pid will have their children added when the processes
    with their pids listed in the set_ftrace_pid file forks.

    - Exposure of "maxactive" for kretprobe in kprobe_events

    - Allow for builtin init functions to be traced by the function
    tracer (via the kernel command line). Module init function tracing
    will come in the next release.

    - Added more selftests, and have selftests also test in an instance"

    * tag 'trace-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (60 commits)
    ring-buffer: Return reader page back into existing ring buffer
    selftests: ftrace: Allow some event trigger tests to run in an instance
    selftests: ftrace: Have some basic tests run in a tracing instance too
    selftests: ftrace: Have event tests also run in an tracing instance
    selftests: ftrace: Make func_event_triggers and func_traceonoff_triggers tests do instances
    selftests: ftrace: Allow some tests to be run in a tracing instance
    tracing/ftrace: Allow for instances to trigger their own stacktrace probes
    tracing/ftrace: Allow for the traceonoff probe be unique to instances
    tracing/ftrace: Enable snapshot function trigger to work with instances
    tracing/ftrace: Allow instances to have their own function probes
    tracing/ftrace: Add a better way to pass data via the probe functions
    ftrace: Dynamically create the probe ftrace_ops for the trace_array
    tracing: Pass the trace_array into ftrace_probe_ops functions
    tracing: Have the trace_array hold the list of registered func probes
    ftrace: If the hash for a probe fails to update then free what was initialized
    ftrace: Have the function probes call their own function
    ftrace: Have each function probe use its own ftrace_ops
    ftrace: Have unregister_ftrace_function_probe_func() return a value
    ftrace: Add helper function ftrace_hash_move_and_update_ops()
    ftrace: Remove data field from ftrace_func_probe structure
    ...

    Linus Torvalds
     
  • Merge misc updates from Andrew Morton:

    - a few misc things

    - most of MM

    - KASAN updates

    * emailed patches from Andrew Morton : (102 commits)
    kasan: separate report parts by empty lines
    kasan: improve double-free report format
    kasan: print page description after stacks
    kasan: improve slab object description
    kasan: change report header
    kasan: simplify address description logic
    kasan: change allocation and freeing stack traces headers
    kasan: unify report headers
    kasan: introduce helper functions for determining bug type
    mm: hwpoison: call shake_page() after try_to_unmap() for mlocked page
    mm: hwpoison: call shake_page() unconditionally
    mm/swapfile.c: fix swap space leak in error path of swap_free_entries()
    mm/gup.c: fix access_ok() argument type
    mm/truncate: avoid pointless cleancache_invalidate_inode() calls.
    mm/truncate: bail out early from invalidate_inode_pages2_range() if mapping is empty
    fs/block_dev: always invalidate cleancache in invalidate_bdev()
    fs: fix data invalidation in the cleancache during direct IO
    zram: reduce load operation in page_same_filled
    zram: use zram_free_page instead of open-coded
    zram: introduce zram data accessor
    ...

    Linus Torvalds
     
  • Here are some of the more common spelling mistakes that I've found while
    fixing up spelling mistakes in kernel error message text. They probably
    should be added to this list so we don't keep on seeing them appearing
    again.

    Link: http://lkml.kernel.org/r/20170421122534.5378-1-colin.king@canonical.com
    Signed-off-by: Colin Ian King
    Acked-by: Kees Cook
    Cc: Masahiro Yamada
    Cc: Joe Perches
    Cc: Stephen Boyd
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Colin Ian King
     
  • Pull drm u pdates from Dave Airlie:
    "This is the main drm pull request for v4.12. Apart from two fixes
    pulls, everything should have been in drm-next for at least 2 weeks.

    The biggest thing in here is AMD released the public headers for their
    upcoming VEGA GPUs. These as always are quite a sizeable chunk of
    header files. They've also added initial non-display support for those
    GPUs, though they aren't available in production yet.

    Otherwise it's pretty much normal.

    New bridge drivers:
    - megachips-stdpxxxx-ge-b850v3-fw LVDS->DP++
    - generic LVDS bridge support.

    Core:
    - Displayport link train failure reporting to userspace
    - debugfs interface cleaned up
    - subsystem TODO in kerneldoc now
    - Extended fbdev support (flipping and vblank wait)
    - drm_platform removed
    - EDP CRC support in helper
    - HF-VSDB SCDC support in EDID parser
    - Lots of code cleanups and header extraction
    - Thunderbolt external GPU awareness
    - Atomic helper improvements
    - Documentation improvements

    panel:
    - Sitronix and Samsung new panel support

    amdgpu:
    - Preliminary vega10 support
    - Multi-level page table support
    - GPU sensor support for userspace
    - PRT support for sparse buffers
    - SR-IOV improvements
    - Non-contig VRAM CPU mapping

    i915:
    - Atomic modesetting enabled by default on Gen5+
    - LSPCON improvements
    - Atomic state handling for cdclk
    - GPU reset improvements
    - In-kernel unit tests
    - Geminilake improvements and color manager support
    - Designware i2c fixes
    - vblank evasion improvements
    - Hotplug safe connector iterators
    - GVT scheduler QoS support
    - GVT Kabylake support

    nouveau:
    - Acceleration support for Pascal (GP10x).
    - Rearchitecture of code handling proprietary signed firmware
    - Fix GTX 970 with odd MMU configuration
    - GP10B support
    - GP107 acceleration support

    vmwgfx:
    - Atomic modesetting support for vmwgfx

    omapdrm:
    - Support for render nodes
    - Refactor omapdss code
    - Fix some probe ordering issues
    - Fix too dark RGB565 rendering

    sunxi:
    - prelim rework for multiple pipes.

    mali-dp:
    - Color management support
    - Plane scaling
    - Power management improvements

    imx-drm:
    - Prefetch Resolve Engine/Gasket on i.MX6QP
    - Deferred plane disabling
    - Separate alpha support

    mediatek:
    - Mediatek SoC MT2701 support

    rcar-du:
    - Gen3 HDMI support

    msm:
    - 4k support for newer chips
    - OPP bindings for gpu
    - prep work for per-process pagetables

    vc4:
    - HDMI audio support
    - fixes

    qxl:
    - minor fixes.

    dw-hdmi:
    - PHY improvements
    - CSC fixes
    - Amlogic GX SoC support"

    * tag 'drm-for-v4.12' of git://people.freedesktop.org/~airlied/linux: (1778 commits)
    drm/nouveau/fb/gf100-: Fix 32 bit wraparound in new ram detection
    drm/nouveau/secboot/gm20b: fix the error return code in gm20b_secboot_tegra_read_wpr()
    drm/nouveau/kms: Increase max retries in scanout position queries.
    drm/nouveau/bios/bitP: check that table is long enough for optional pointers
    drm/nouveau/fifo/nv40: no ctxsw for pre-nv44 mpeg engine
    drm: mali-dp: use div_u64 for expensive 64-bit divisions
    drm/i915: Confirm the request is still active before adding it to the await
    drm/i915: Avoid busy-spinning on VLV_GLTC_PW_STATUS mmio
    drm/i915/selftests: Allocate inode/file dynamically
    drm/i915: Fix system hang with EI UP masked on Haswell
    drm/i915: checking for NULL instead of IS_ERR() in mock selftests
    drm/i915: Perform link quality check unconditionally during long pulse
    drm/i915: Fix use after free in lpe_audio_platdev_destroy()
    drm/i915: Use the right mapping_gfp_mask for final shmem allocation
    drm/i915: Make legacy cursor updates more unsynced
    drm/i915: Apply a cond_resched() to the saturated signaler
    drm/i915: Park the signaler before sleeping
    drm: mali-dp: Check the mclk rate and allow up/down scaling
    drm: mali-dp: Enable image enhancement when scaling
    drm: mali-dp: Add plane upscaling support
    ...

    Linus Torvalds
     

03 May, 2017

4 commits

  • Pull security subsystem updates from James Morris:
    "Highlights:

    IMA:
    - provide ">" and " of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (98 commits)
    tpm: Fix reference count to main device
    tpm_tis: convert to using locality callbacks
    tpm: fix handling of the TPM 2.0 event logs
    tpm_crb: remove a cruft constant
    keys: select CONFIG_CRYPTO when selecting DH / KDF
    apparmor: Make path_max parameter readonly
    apparmor: fix parameters so that the permission test is bypassed at boot
    apparmor: fix invalid reference to index variable of iterator line 836
    apparmor: use SHASH_DESC_ON_STACK
    security/apparmor/lsm.c: set debug messages
    apparmor: fix boolreturn.cocci warnings
    Smack: Use GFP_KERNEL for smk_netlbl_mls().
    smack: fix double free in smack_parse_opts_str()
    KEYS: add SP800-56A KDF support for DH
    KEYS: Keyring asymmetric key restrict method with chaining
    KEYS: Restrict asymmetric key linkage using a specific keychain
    KEYS: Add a lookup_restriction function for the asymmetric key type
    KEYS: Add KEYCTL_RESTRICT_KEYRING
    KEYS: Consistent ordering for __key_link_begin and restrict check
    KEYS: Add an optional lookup_restriction hook to key_type
    ...

    Linus Torvalds
     
  • It is currently impossible to see what is going on with objtool when
    building, so call echo-cmd to see the actions:
    gcc -Wp,-MD,arch/x86/entry/.entry_64.o.d -nostdinc -isystem ...
    ./tools/objtool/objtool check "arch/x86/entry/entry_64.o";

    Signed-off-by: Jiri Slaby
    Cc: Michal Marek
    Cc: linux-kbuild@vger.kernel.org
    Cc: Josh Poimboeuf
    Signed-off-by: Masahiro Yamada

    Jiri Slaby
     
  • Pull trivial tree updates from Jiri Kosina.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
    tty: fix comment for __tty_alloc_driver()
    init/main: properly align the multi-line comment
    init/main: Fix double "the" in comment
    Fix dead URLs to ftp.kernel.org
    drivers: Clean up duplicated email address
    treewide: Fix typo in xml/driver-api/basics.xml
    tools/testing/selftests/powerpc: remove redundant CFLAGS in Makefile: "-Wall -O2 -Wall" -> "-O2 -Wall"
    selftests/timers: Spelling s/privledges/privileges/
    HID: picoLCD: Spelling s/REPORT_WRTIE_MEMORY/REPORT_WRITE_MEMORY/
    net: phy: dp83848: Fix Typo
    UBI: Fix typos
    Documentation: ftrace.txt: Correct nice value of 120 priority
    net: fec: Fix typo in error msg and comment
    treewide: Fix typos in printk

    Linus Torvalds
     
  • Pull documentation update from Jonathan Corbet:
    "A reasonably busy cycle for documentation this time around. There is a
    new guide for user-space API documents, rather sparsely populated at
    the moment, but it's a start. Markus improved the infrastructure for
    converting diagrams. Mauro has converted much of the USB documentation
    over to RST. Plus the usual set of fixes, improvements, and tweaks.

    There's a bit more than the usual amount of reaching out of
    Documentation/ to fix comments elsewhere in the tree; I have acks for
    those where I could get them"

    * tag 'docs-4.12' of git://git.lwn.net/linux: (74 commits)
    docs: Fix a couple typos
    docs: Fix a spelling error in vfio-mediated-device.txt
    docs: Fix a spelling error in ioctl-number.txt
    MAINTAINERS: update file entry for HSI subsystem
    Documentation: allow installing man pages to a user defined directory
    Doc/PM: Sync with intel_powerclamp code behavior
    zr364xx.rst: usb/devices is now at /sys/kernel/debug/
    usb.rst: move documentation from proc_usb_info.txt to USB ReST book
    convert philips.txt to ReST and add to media docs
    docs-rst: usb: update old usbfs-related documentation
    arm: Documentation: update a path name
    docs: process/4.Coding.rst: Fix a couple of document refs
    docs-rst: fix usb cross-references
    usb: gadget.h: be consistent at kernel doc macros
    usb: composite.h: fix two warnings when building docs
    usb: get rid of some ReST doc build errors
    usb.rst: get rid of some Sphinx errors
    usb/URB.txt: convert to ReST and update it
    usb/persist.txt: convert to ReST and add to driver-api book
    usb/hotplug.txt: convert to ReST and add to driver-api book
    ...

    Linus Torvalds
     

02 May, 2017

2 commits

  • Pul x86/process updates from Ingo Molnar:
    "The main change in this cycle was to add the ARCH_[GET|SET]_CPUID
    prctl() ABI extension to control the availability of the CPUID
    instruction, analogously to the existing PR_GET|SET_TSC ABI that
    controls RDTSC.

    Motivation: the 'rr' user-space record-and-replay execution debugger
    would like to trap and emulate the CPUID instruction - which
    instruction is normally unprivileged.

    Trapping CPUID is possible on IvyBridge and later Intel CPUs - expose
    this hardware capability"

    * 'x86-process-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/syscalls/32: Ignore arch_prctl for other architectures
    um/arch_prctl: Fix fallout from x86 arch_prctl() rework
    x86/arch_prctl: Add ARCH_[GET|SET]_CPUID
    x86/cpufeature: Detect CPUID faulting support
    x86/syscalls/32: Wire up arch_prctl on x86-32
    x86/arch_prctl: Add do_arch_prctl_common()
    x86/arch_prctl/64: Rename do_arch_prctl() to do_arch_prctl_64()
    x86/arch_prctl/64: Use SYSCALL_DEFINE2 to define sys_arch_prctl()
    x86/arch_prctl: Rename 'code' argument to 'option'
    x86/msr: Rename MISC_FEATURE_ENABLES to MISC_FEATURES_ENABLES
    x86/process: Optimize TIF_NOTSC switch
    x86/process: Correct and optimize TIF_BLOCKSTEP switch
    x86/process: Optimize TIF checks in __switch_to_xtra()

    Linus Torvalds
     
  • Pull AVR32 removal from Hans-Christian Noren Egtvedt:
    "This will remove support for AVR32 architecture from the kernel and
    clean away the most obvious architecture related parts. Removing dead
    code in drivers is the next step"

    Notes from previous discussion about this:
    "The AVR32 architecture is not keeping up with the development of the
    kernel, and since it shares so much of the drivers with Atmel ARM SoC,
    it is starting to hinder these drivers to develop swiftly.

    Also, all AVR32 AP7 SoC processors are end of lifed from Atmel (now
    Microchip).

    Finally, the GCC toolchain is stuck at version 4.2.x, and has not
    received any patches since the last release from Atmel;
    4.2.4-atmel.1.1.3.avr32linux.1.

    When building kernel v4.10, this toolchain is no longer able to
    properly link the network stack.

    Haavard and I have came to the conclusion that we feel keeping AVR32
    on life support offers more obstacles for Atmel ARMs, than it gives
    joy to AVR32 users. I also suspect there are very few AVR32 users left
    today, if anybody at all"

    That discussion was acked by Andy Shevchenko, Boris Brezillon, Nicolas
    Ferre, and Haavard Skinnemoen.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32:
    mm: remove AVR32 arch special handling in mm/Kconfig
    lib: remove check for AVR32 arch in test_user_copy
    lib: remove AVR32 entry in Kconfig.debug compile with frame pointers
    scripts: remove AVR32 support from checkstack.pl
    docs: remove all references to AVR32 architecture
    avr32: remove support for AVR32 architecture

    Linus Torvalds
     

01 May, 2017

1 commit


28 Apr, 2017

1 commit

  • The dtc compiler version that adds initial support was available
    in 4.11-rc1. Add the ability to set an additional dtc compiler
    flag is needed by overlays.

    Signed-off-by: Frank Rowand
    Acked-by: Masahiro Yamada
    Signed-off-by: Rob Herring

    Frank Rowand
     

25 Apr, 2017

1 commit