02 Mar, 2017

1 commit

  • The '__unreachable' and '__func_stack_frame_non_standard' sections are
    only used at compile time. They're discarded for vmlinux but they
    should also be discarded for modules.

    Since this is a recurring pattern, prefix the section names with
    ".discard.". It's a nice convention and vmlinux.lds.h already discards
    such sections.

    Also remove the 'a' (allocatable) flag from the __unreachable section
    since it doesn't make sense for a discarded section.

    Suggested-by: Linus Torvalds
    Signed-off-by: Josh Poimboeuf
    Cc: Jessica Yu
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Fixes: d1091c7fa3d5 ("objtool: Improve detection of BUG() and other dead ends")
    Link: http://lkml.kernel.org/r/20170301180444.lhd53c5tibc4ns77@treble
    Signed-off-by: Ingo Molnar

    Josh Poimboeuf
     

28 Feb, 2017

29 commits

  • vsnprintf extension %Z is non-standard C. Suggest the use of %z
    instead.

    Miscellanea:

    - Correct the misuse of type string PRINTF_0xDECIMAL type strings are
    supposed to be uppercase only. Fix this and add tr/[a-z]/[A-Z] to the
    type check in case I forget this again sometime in the future.

    - Improve the mechanism to find these defects so all 3 current checks
    are done on the format string

    [joe@perches.com: correct the misuse of type string PRINTF_0xDECIMAL, improve the mechanism to find these defects]
    Link: http://lkml.kernel.org/r/4e3ad74b0c9dc229b06018a2d79655308ddbbebd.1484014173.git.joe@perches.com
    Link: http://lkml.kernel.org/r/20170109235955.GA6787@avx2
    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • I wrote a simple script to find new typo not in spelling.txt.
    (https://github.com/jinb-park/find-linux-kernel-typo)

    and get following result:

    [ rank ]
    63 paramaters
    18 alignement
    9 strucuture
    ....

    The number means how many files include the typo.
    This patch adds these common typo.

    Link: http://lkml.kernel.org/r/20170112113452.GA7042@pjb1027-Latitude-E5410
    Signed-off-by: Jinbum Park
    Acked-by: Kees Cook
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jinbum Park
     
  • Fix typos and add the following to the scripts/spelling.txt:

    followings||following

    While we are here, add a missing colon in the boilerplate in DT binding
    documents. The "you SoC" in allwinner,sunxi-pinctrl.txt was fixed as
    well.

    I reworded "as the followings:" to "as follows:" for
    drivers/usb/gadget/udc/renesas_usb3.c.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    therfore||therefore

    Besides, tidy up comment blocks for 80-col wrapping.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    overwrien||overwritten

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    overwritting||overwriting

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    deintializing||deinitializing
    deintialize||deinitialize
    deintialized||deinitialized

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    disassocation||disassociation

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    omited||omitted
    omiting||omitting

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    explictely||explicitly

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    applys||applies

    The "applyes" in drivers/video/fbdev/aty/radeon_monitor.c is a different
    pattern but it was fixed in this commit. The "This functions" in the
    same line was fixed as well.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    configuartion||configuration

    While we are here, fix the "ouput" as well in the touched hunk in
    drivers/media/dvb-frontends/drx39xyj/drx_driver.h.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    overrided||overridden

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    comsume||consume
    comsumer||consumer
    comsuming||consuming

    I see some variable names with this pattern, but this commit is only
    touching comment blocks to avoid unexpected impact.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    initialiazation||initialization

    While we are here, fix the "overriden" in the touched line in
    drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    intialization||initialization

    The "inintialization" in drivers/acpi/spcr.c is a different pattern but
    I fixed it as well in this commit.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    unneded||unneeded

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    neded||needed

    While we are here, fix the "overriden", "wont", and "etc" in the same
    hunk in drivers/media/usb/tm6000/tm6000-input.c.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    againt||against

    While we are here, fix the "capabilites" as well in the touched hunk in
    drivers/gpu/drm/drm_probe_helper.c.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    embeded||embedded

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    varible||variable

    While we are here, tidy up the comment blocks that fit in a single line
    for drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c and
    net/sctp/transport.c.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    efective||effective

    While we are here, fix the "addres" as well in the touched line in
    arch/openrisc/kernel/entry.S.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    algined||aligned

    While we are here, fix the "appplication" in the touched line in
    drivers/block/loop.c. Also, fix the "may not naturally ..." to
    "may not be naturally ..." in the touched line in mm/page_alloc.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    aligment||alignment

    I did not touch the "N_BYTE_ALIGMENT" macro in
    drivers/net/wireless/realtek/rtlwifi/wifi.h to avoid unpredictable
    impact.

    I fixed "_aligment_handler" in arch/openrisc/kernel/entry.S because
    it is surrounded by #if 0 ... #endif. It is surely safe and I
    confirmed "_alignment_handler" is correct.

    I also fixed the "controler" I found in the same hunk in
    arch/openrisc/kernel/head.S.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    an one||a one

    I dropped the "an" before "one or more" in
    drivers/net/ethernet/sfc/mcdi_pcol.h.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    an union||a union

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    an user||a user
    an userspace||a userspace

    I also added "userspace" to the list since it is a common word in Linux.
    I found some instances for "an userfaultfd", but I did not add it to the
    list. I felt it is endless to find words that start with "user" such as
    "userland" etc., so must draw a line somewhere.

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    swithc||switch
    swithced||switched
    swithcing||switching

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

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    swith||switch
    swithable||switchable
    swithed||switched
    swithing||switching

    While we are here, fix the "update" to "updates" in the touched hunk in
    drivers/net/wireless/marvell/mwifiex/wmm.c.

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

    Masahiro Yamada
     

26 Feb, 2017

1 commit

  • 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 : (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
    ...

    Linus Torvalds
     

25 Feb, 2017

8 commits

  • 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
    ...

    Linus Torvalds
     
  • 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.org
    Signed-off-by: Sven Eckelmann
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sven Eckelmann
     
  • Patches that add or modify code like

    } else

    or
    else {

    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.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • 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.org
    Signed-off-by: Matthew Wilcox
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     
  • 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.com
    Signed-off-by: Miles Chen
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miles Chen
     
  • 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.com
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • 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.com
    Signed-off-by: Joe Perches
    Acked-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Openrisc stack pointer is managed by decrementing r1. Add regexes to
    recognize this.

    Signed-off-by: Stafford Horne

    Stafford Horne
     

23 Feb, 2017

1 commit

  • Merge updates from Andrew Morton:
    "142 patches:

    - DAX updates

    - various misc bits

    - OCFS2 updates

    - most of MM"

    * emailed patches from Andrew Morton : (142 commits)
    mm/z3fold.c: limit first_num to the actual range of possible buddy indexes
    mm: fix stray kernel-doc notation
    zram: remove obsolete sysfs attrs
    mm/memblock.c: remove unnecessary log and clean up
    oom-reaper: use madvise_dontneed() logic to decide if unmap the VMA
    mm: drop unused argument of zap_page_range()
    mm: drop zap_details::check_swap_entries
    mm: drop zap_details::ignore_dirty
    mm, page_alloc: warn_alloc nodemask is NULL when cpusets are disabled
    mm: help __GFP_NOFAIL allocations which do not trigger OOM killer
    mm, oom: do not enforce OOM killer for __GFP_NOFAIL automatically
    mm: consolidate GFP_NOFAIL checks in the allocator slowpath
    lib/show_mem.c: teach show_mem to work with the given nodemask
    arch, mm: remove arch specific show_mem
    mm, page_alloc: warn_alloc print nodemask
    mm, page_alloc: do not report all nodes in show_mem
    Revert "mm: bail out in shrink_inactive_list()"
    mm, vmscan: consider eligible zones in get_scan_count
    mm, vmscan: cleanup lru size claculations
    mm, vmscan: do not count freed pages as PGDEACTIVATE
    ...

    Linus Torvalds