02 Jun, 2016

1 commit

  • commit c9c6837d39311b0cc14cdbe7c18e815ab44aefb1 upstream.

    gcc-6 started warning by default about variables that are not
    used anywhere and that are marked 'const', generating many
    false positives in an allmodconfig build, e.g.:

    arch/arm/mach-davinci/board-da830-evm.c:282:20: warning: 'da830_evm_emif25_pins' defined but not used [-Wunused-const-variable=]
    arch/arm/plat-omap/dmtimer.c:958:34: warning: 'omap_timer_match' defined but not used [-Wunused-const-variable=]
    drivers/bluetooth/hci_bcm.c:625:39: warning: 'acpi_bcm_default_gpios' defined but not used [-Wunused-const-variable=]
    drivers/char/hw_random/omap-rng.c:92:18: warning: 'reg_map_omap4' defined but not used [-Wunused-const-variable=]
    drivers/devfreq/exynos/exynos5_bus.c:381:32: warning: 'exynos5_busfreq_int_pm' defined but not used [-Wunused-const-variable=]
    drivers/dma/mv_xor.c:1139:34: warning: 'mv_xor_dt_ids' defined but not used [-Wunused-const-variable=]

    This is similar to the existing -Wunused-but-set-variable warning
    that was added in an earlier release and that we disable by default
    now and only enable when W=1 is set, so it makes sense to do
    the same here. Once we have eliminated the majority of the
    warnings for both, we can put them back into the default list.

    We probably want this in backport kernels as well, to allow building
    them with gcc-6 without introducing extra warnings.

    Signed-off-by: Arnd Bergmann
    Acked-by: Olof Johansson
    Acked-by: Lee Jones
    Signed-off-by: Michal Marek
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     

05 May, 2016

1 commit

  • commit 6b87b70c5339f30e3c5b32085e69625906513dc2 upstream.

    Prior to 3.13 make allmodconfig KCONFIG_ALLCONFIG=/dev/null used
    to be equivalent to make allmodconfig; these days it hardwires MODULES to n.
    In fact, any KCONFIG_ALLCONFIG that doesn't set MODULES explicitly is
    treated as if it set it to n.

    Regression had been introduced by commit cfa98f ("kconfig: do not
    override symbols already set"); what happens is that conf_read_simple()
    does sym_calc_value(modules_sym) on exit, which leaves SYMBOL_VALID set and
    has conf_set_all_new_symbols() skip modules_sym.

    It's pretty easy to fix - simply move that call of sym_calc_value()
    into the callers, except for the ones in KCONFIG_ALLCONFIG handling.
    Objections?

    Signed-off-by: Al Viro
    Fixes: cfa98f2e0ae9 ("kconfig: do not override symbols already set")
    Signed-off-by: Michal Marek
    Signed-off-by: Greg Kroah-Hartman

    Al Viro
     

13 Apr, 2016

3 commits

  • commit c8b08ca558c0067bc9e15ce3f1e70af260410bb2 upstream.

    mkspec is copying built kernel to temporrary location

    /boot/vmlinuz-$KERNELRELEASE-rpm

    and runs installkernel on it. This however directly leads to grub2
    menuentry for this suffixed binary being generated as well during the run
    of installkernel script.

    Later in the process the temporary -rpm suffixed files are removed, and
    therefore we end up with spurious (and non-functional) grub2 menu entries
    for each installed kernel RPM.

    Fix that by using a different temporary name (prefixed by '.'), so that
    the binary is not recognized as an actual kernel binary and no menuentry
    is created for it.

    Signed-off-by: Jiri Kosina
    Fixes: 3c9c7a14b627 ("rpm-pkg: add %post section to create initramfs and grub hooks")
    Signed-off-by: Michal Marek
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • commit 42f9d3c6888bceef6dc7ba72c77acf47347dcf05 upstream.

    Documentation/Changes still lists this as the minimal required version,
    so it ought to remain usable for the time being.

    Fixes: d2036f30cf ("scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target")
    Signed-off-by: Jan Beulich
    Cc: Michael Ellerman
    Signed-off-by: Michal Marek
    Signed-off-by: Greg Kroah-Hartman

    Jan Beulich
     
  • commit 1b669e713f277a4d4b3cec84e13d16544ac8286d upstream.

    & is no longer allowed in column 0, since Coccinelle 1.0.4.

    Signed-off-by: Julia Lawall
    Tested-by: Nishanth Menon
    Signed-off-by: Michal Marek
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     

16 Mar, 2016

1 commit

  • commit 4b7b1ef2c2f83d702272555e8adb839a50ba0f8e upstream.

    The ld-version.sh script fails on some versions of awk with the
    following error, resulting in build failures for MIPS:

    awk: scripts/ld-version.sh: line 4: regular expression compile failed (missing '(')

    This is due to the regular expression ".*)", meant to strip off the
    beginning of the ld version string up to the close bracket, however
    brackets have a meaning in regular expressions, so lets escape it so
    that awk doesn't expect a corresponding open bracket.

    Fixes: ccbef1674a15 ("Kbuild, lto: add ld-version and ld-ifversion ...")
    Reported-by: Geert Uytterhoeven
    Signed-off-by: James Hogan
    Tested-by: Michael S. Tsirkin
    Acked-by: Michael S. Tsirkin
    Tested-by: Sudip Mukherjee
    Cc: Michal Marek
    Cc: Andi Kleen
    Cc: Geert Uytterhoeven
    Cc: linux-mips@linux-mips.org
    Cc: linux-kbuild@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/12838/
    Signed-off-by: Ralf Baechle
    Signed-off-by: Greg Kroah-Hartman

    James Hogan
     

04 Mar, 2016

1 commit

  • commit a7df4716d19594b7b3f106f0bc0ca1c548e508e6 upstream.

    Similarly to commit fb1770aa78a43530940d0c2dd161e77bc705bdac, with gcc 5
    on Ubuntu and CONFIG_STATIC_LINK=y I was seeing these linker errors:

    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librt.a(timer_create.o): In function `__timer_create_new':
    (.text+0xcd): undefined reference to `pthread_once'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librt.a(timer_create.o): In function `__timer_create_new':
    (.text+0x126): undefined reference to `pthread_attr_init'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librt.a(timer_create.o): In function `__timer_create_new':
    (.text+0x168): undefined reference to `pthread_attr_setdetachstate'
    [...]

    Obviously we also need -lpthread for librt.a.

    Signed-off-by: Vegard Nossum
    Signed-off-by: Richard Weinberger
    Signed-off-by: Greg Kroah-Hartman

    Vegard Nossum
     

26 Feb, 2016

1 commit

  • commit 72214a24a7677d4c7501eecc9517ed681b5f2db2 upstream.

    In Python3+ print is a function so the old syntax is not correct
    anymore:

    $ ./scripts/bloat-o-meter vmlinux.o vmlinux.o.old
    File "./scripts/bloat-o-meter", line 61
    print "add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \
    ^
    SyntaxError: invalid syntax

    Fix by calling print as a function.

    Tested on python 2.7.11, 3.5.1

    Signed-off-by: Sergey Senozhatsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Sergey Senozhatsky
     

01 Feb, 2016

1 commit

  • commit 2e50c4bef77511b42cc226865d6bc568fa7f8769 upstream.

    If a text section starts out with a data blob before the first
    function start label, disassembly parsing doing in recordmcount.pl
    gets confused on powerpc, leading to creation of corrupted module
    objects.

    This was not a problem so far since the compiler would never create
    such text sections. However, this has changed with a recent change
    in GCC 6 to support distances of > 2GB between a function and its
    assoicated TOC in the ELFv2 ABI, exposing this problem.

    There is already code in recordmcount.pl to handle such data blobs
    on the sparc64 platform. This patch uses the same method to handle
    those on powerpc as well.

    Acked-by: Steven Rostedt
    Signed-off-by: Ulrich Weigand
    Signed-off-by: Michael Ellerman
    Signed-off-by: Greg Kroah-Hartman

    Ulrich Weigand
     

05 Jan, 2016

1 commit

  • Fix build warning:

    scripts/recordmcount.c:589:4: warning: format not a string
    literal and no format arguments [-Wformat-security]
    sprintf("%s: failed\n", file);

    Fixes: a50bd43935586 ("ftrace/scripts: Have recordmcount copy the object file")
    Link: http://lkml.kernel.org/r/1451516801-16951-1-git-send-email-colin.king@canonical.com

    Cc: Li Bin
    Cc: Russell King
    Cc: Will Deacon
    Cc: stable@vger.kernel.org # 2.6.37+
    Signed-off-by: Colin Ian King
    Signed-off-by: Steven Rostedt

    Colin Ian King
     

17 Dec, 2015

1 commit

  • Russell King found that he had weird side effects when compiling the kernel
    with hard linked ccache. The reason was that recordmcount modified the
    kernel in place via mmap, and when a file gets modified twice by
    recordmcount, it will complain about it. To fix this issue, Russell wrote a
    patch that checked if the file was hard linked more than once and would
    unlink it if it was.

    Linus Torvalds was not happy with the fact that recordmcount does this in
    place modification. Instead of doing the unlink only if the file has two or
    more hard links, it does the unlink all the time. In otherwords, it always
    does a copy if it changed something. That is, it does the write out if a
    change was made.

    Cc: stable@vger.kernel.org # 2.6.37+
    Signed-off-by: Steven Rostedt

    Steven Rostedt (Red Hat)
     

16 Dec, 2015

1 commit

  • recordmcount edits the file in-place, which can cause problems when
    using ccache in hardlink mode. Arrange for recordmcount to break a
    hardlinked object.

    Link: http://lkml.kernel.org/r/E1a7MVT-0000et-62@rmk-PC.arm.linux.org.uk

    Cc: stable@vger.kernel.org # 2.6.37+
    Signed-off-by: Russell King
    Signed-off-by: Steven Rostedt

    Russell King
     

09 Dec, 2015

1 commit

  • On gcc Ubuntu 4.8.4-2ubuntu1~14.04, linking vmlinux fails with:

    arch/um/os-Linux/built-in.o: In function `os_timer_create':
    /android/kernel/android/arch/um/os-Linux/time.c:51: undefined reference to `timer_create'
    arch/um/os-Linux/built-in.o: In function `os_timer_set_interval':
    /android/kernel/android/arch/um/os-Linux/time.c:84: undefined reference to `timer_settime'
    arch/um/os-Linux/built-in.o: In function `os_timer_remain':
    /android/kernel/android/arch/um/os-Linux/time.c:109: undefined reference to `timer_gettime'
    arch/um/os-Linux/built-in.o: In function `os_timer_one_shot':
    /android/kernel/android/arch/um/os-Linux/time.c:132: undefined reference to `timer_settime'
    arch/um/os-Linux/built-in.o: In function `os_timer_disable':
    /android/kernel/android/arch/um/os-Linux/time.c:145: undefined reference to `timer_settime'

    This is because -lrt appears in the generated link commandline
    after arch/um/os-Linux/built-in.o. Fix this by removing -lrt from
    arch/um/Makefile and adding it to the UM-specific section of
    scripts/link-vmlinux.sh.

    Signed-off-by: Lorenzo Colitti
    Signed-off-by: Richard Weinberger

    Lorenzo Colitti
     

18 Nov, 2015

1 commit

  • Changeset 4d73270192ec('scripts/kernel-doc: Replacing highlights
    hash by an array') broke compatibility of the kernel-doc script with
    older versions of perl by using "keys ARRAY" syntax with is available
    only on Perl 5.12 or newer, according with:
    http://perldoc.perl.org/functions/keys.html

    Restore backward compatibility by replacing "foreach my $k (keys ARRAY)"
    by a C-like variant: "for (my $k = 0; $k < !ARRAY; $k++)"

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

11 Nov, 2015

2 commits

  • Pull misc kbuild updates from Michal Marek:
    "This is the non-critical part of kbuild:

    - several coccinelle updates
    - make deb-pkg creates an armhf package if CONFIG_VFP=y
    - make tags understands some more powerpc macros"

    * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    coccinelle: Improve checking for missing NULL terminators
    coccinelle: ifnullfree: handle various destroy functions
    coccinelle: ifnullfree: various cleanups
    cocinelle: iterators: semantic patch to delete unneeded of_node_put
    deb-pkg: Add automatic support for armhf architecture
    scripts/coccinelle: fix typos
    coccinelle: misc: remove "complex return code" warnings
    Coccinelle: fix incorrect -include option transformation
    coccinelle: tests: improve odd_ptr_err.cocci
    coccinelle: misc: move constants to the right
    scripts/tags.sh: Teach tags about some powerpc macros

    Linus Torvalds
     
  • Pull kconfig updates from Michal Marek:

    - 'make xconfig' ported to Qt5, dropping support for Qt3

    - merge_config.sh supports a single-input-file mode and also respects
    $KCONFIG_CONFIG

    - Fix for incorrect display of >= and > in dependency expressions

    * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: (44 commits)
    Add current selection check.
    Use pkg-config to find Qt 4 and 5 instead of direct qmake
    kconfig: Fix copy&paste error
    kconfig/merge_config.sh: Accept a single file
    kconfig/merge_config.sh: Support KCONFIG_CONFIG
    Update the buildsystem for KConfig finding Qt
    Port xconfig to Qt5 - Update copyright.
    Port xconfig to Qt5 - Fix goParent issue.
    Port xconfig to Qt5 - on Back clicked, deselect old item.
    Port xconfig to Qt5 - Add(back) one click checkbox toggle.
    Port xconfig to Qt5 - Add(back) lineedit editing.
    Port xconfig to Qt5 - Remove some commented code.
    Port xconfig to Qt5 - Source format.
    Port xconfig to Qt5 - Add horizontal scrollbar, and scroll per pixel.
    Port xconfig to Qt5 - Change ConfigItem constructor parent type.
    Port xconfig to Qt5 - Disable ConfigList soring
    Port xconfig to Qt5 - Remove ConfigList::updateMenuList template.
    Port xconfig to Qt5 - Add ConfigList::mode to initializer list.
    Port xconfig to Qt5 - Add ConfigItem::nextItem to initializer list.
    Port xconfig to Qt5 - Tree widget set column titles.
    ...

    Linus Torvalds
     

10 Nov, 2015

1 commit


08 Nov, 2015

1 commit

  • Merge second patch-bomb from Andrew Morton:

    - most of the rest of MM

    - procfs

    - lib/ updates

    - printk updates

    - bitops infrastructure tweaks

    - checkpatch updates

    - nilfs2 update

    - signals

    - various other misc bits: coredump, seqfile, kexec, pidns, zlib, ipc,
    dma-debug, dma-mapping, ...

    * emailed patches from Andrew Morton : (102 commits)
    ipc,msg: drop dst nil validation in copy_msg
    include/linux/zutil.h: fix usage example of zlib_adler32()
    panic: release stale console lock to always get the logbuf printed out
    dma-debug: check nents in dma_sync_sg*
    dma-mapping: tidy up dma_parms default handling
    pidns: fix set/getpriority and ioprio_set/get in PRIO_USER mode
    kexec: use file name as the output message prefix
    fs, seqfile: always allow oom killer
    seq_file: reuse string_escape_str()
    fs/seq_file: use seq_* helpers in seq_hex_dump()
    coredump: change zap_threads() and zap_process() to use for_each_thread()
    coredump: ensure all coredumping tasks have SIGNAL_GROUP_COREDUMP
    signal: remove jffs2_garbage_collect_thread()->allow_signal(SIGCONT)
    signal: introduce kernel_signal_stop() to fix jffs2_garbage_collect_thread()
    signal: turn dequeue_signal_lock() into kernel_dequeue_signal()
    signals: kill block_all_signals() and unblock_all_signals()
    nilfs2: fix gcc uninitialized-variable warnings in powerpc build
    nilfs2: fix gcc unused-but-set-variable warnings
    MAINTAINERS: nilfs2: add header file for tracing
    nilfs2: add tracepoints for analyzing reading and writing metadata files
    ...

    Linus Torvalds
     

07 Nov, 2015

9 commits

  • Global and static variables don't need to be initialized to 0.

    There is already a test for this but the output message doesn't
    mention booleans initialized to false.

    Improve the output message and the test by adding various forms
    with possible specific integer types and possible multiple zeros.

    Miscellanea:

    o Use a variable to hold the possible 0 test

    Signed-off-by: Joe Perches
    Signed-off-by: Shailendra Verma
    Tested-by: Shailendra Verma
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Including BUG and stack dumps in commit logs makes checkpatch produce some
    false positive warning messages.

    checkpatch has multiple types of false positives:

    o Commit message lines > 75 chars
    o Stack dump address are mistaken for git commit IDs
    o Link: and Fixes: lines are allowed to be > 75 chars.
    o Fixes: style doesn't require ("")
    parentheses and double quotes like other uses of
    git commit ID and description.

    Fix these.

    Miscellanea:

    o Move the test for checking $commit_log_possible_stack_dump
    above the test for a long line commit message
    o Add test for hex address surrounded by square or angle brackets

    Signed-off-by: Joe Perches
    Reported-by: Stephen Smalley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Reviewer output currently does not include the subsystem
    that matched. Add it.

    Miscellanea:

    o Add a get_subsystem_name routine to centralize this

    Signed-off-by: Joe Perches
    Tested-by: Krzysztof Kozlowski
    Cc: Lee Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • We don't consistenly document the default value next to the option
    listing, but we do have a list of defaults here, so let's keep it up to
    date.

    Signed-off-by: Brian Norris
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Norris
     
  • Many flag options are boolean and support both a positive and a negative
    invocation from the command line. Some of these are even mentioned by
    example (e.g., --nogit is mentioned as a default option), but they aren't
    explicitly mentioned in the list of options. It happens that some of
    these are pretty important, as they are default-on, and to turn them off,
    you have to know about the --no-foo version.

    Rather than clutter the whole help text with bracketed '--[no]foo', let's
    just mention the general rule, a la 'man gcc'.

    Signed-off-by: Brian Norris
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Norris
     
  • Though it appears that Perl's GetOptions will take either, the latter is
    not documented in the options listing.

    Signed-off-by: Brian Norris
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Norris
     
  • I really haven't used this option much myself, so feel free to improve on
    the documentation for it. I just noticed it while inspecting this script
    for undocumented features.

    Signed-off-by: Brian Norris
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Norris
     
  • Pull tracking updates from Steven Rostedt:
    "Most of the changes are clean ups and small fixes. Some of them have
    stable tags to them. I searched through my INBOX just as the merge
    window opened and found lots of patches to pull. I ran them through
    all my tests and they were in linux-next for a few days.

    Features added this release:
    ----------------------------

    - Module globbing. You can now filter function tracing to several
    modules. # echo '*:mod:*snd*' > set_ftrace_filter (Dmitry Safonov)

    - Tracer specific options are now visible even when the tracer is not
    active. It was rather annoying that you can only see and modify
    tracer options after enabling the tracer. Now they are in the
    options/ directory even when the tracer is not active. Although
    they are still only visible when the tracer is active in the
    trace_options file.

    - Trace options are now per instance (although some of the tracer
    specific options are global)

    - New tracefs file: set_event_pid. If any pid is added to this file,
    then all events in the instance will filter out events that are not
    part of this pid. sched_switch and sched_wakeup events handle next
    and the wakee pids"

    * tag 'trace-v4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (68 commits)
    tracefs: Fix refcount imbalance in start_creating()
    tracing: Put back comma for empty fields in boot string parsing
    tracing: Apply tracer specific options from kernel command line.
    tracing: Add some documentation about set_event_pid
    ring_buffer: Remove unneeded smp_wmb() before wakeup of reader benchmark
    tracing: Allow dumping traces without tracking trace started cpus
    ring_buffer: Fix more races when terminating the producer in the benchmark
    ring_buffer: Do no not complete benchmark reader too early
    tracing: Remove redundant TP_ARGS redefining
    tracing: Rename max_stack_lock to stack_trace_max_lock
    tracing: Allow arch-specific stack tracer
    recordmcount: arm64: Replace the ignored mcount call into nop
    recordmcount: Fix endianness handling bug for nop_mcount
    tracepoints: Fix documentation of RCU lockdep checks
    tracing: ftrace_event_is_function() can return boolean
    tracing: is_legal_op() can return boolean
    ring-buffer: rb_event_is_commit() can return boolean
    ring-buffer: rb_per_cpu_empty() can return boolean
    ring_buffer: ring_buffer_empty{cpu}() can return boolean
    ring-buffer: rb_is_reader_page() can return boolean
    ...

    Linus Torvalds
     
  • Pull sound updates from Takashi Iwai:
    "Here is the first batch of updates for sound system on 4.4-rc1.

    Again at this time, the update looks fairly calm; no big changes in
    either ALSA core or ASoC infrastructures, rather all small cleanups,
    in addition to the new stuff as usual.

    The biggest changes are about Firewire sound devices. It gained lots
    of new device support, and MIDI functionality. Also there are updates
    for a few still working-in-progress stuff (topology API and ASoC
    skylake), too. But overall, this update should give no big surprise.

    Some highlights are below:

    Core:
    - A few more Kconfig items for tinification; it's marked as EXPERT,
    so normal user should't be bothered :)
    - Refactoring with a new PCM hw_constraint helper
    - Removal of unused transfer_ack_{begin,end} PCM callbacks

    Firewire:
    - Restructuring of code subtree, lots of refactoring
    - Support AMDTP variants
    - New driver for Digidesign 002/003 family
    - Adds support for TASCAM FireOne to ALSA OXFW driver
    - Add MIDI support to TASCAM and Digi00x devices

    HD-Audio:
    - Automated modalias generation for codec drivers, finally
    - Improvement on heuristics for setting mixer name
    - A few fixes for longstanding bugs on Creative CA0132 cards
    - Addition of audio rate callback with i915 communication
    - Fix suspend issue on recent Dell XPS
    - Intel Lewisburg controller support

    ASoC:
    - Updates to the topology userspace interface
    - Big updates to the Renesas support (rcar)
    - More updates for supporting Intel Sky Lake systems
    - New drivers for Asahi Kasei Microdevices AK4613, Allwinnner A10,
    Cirrus Logic WM8998, Dialog DA7219, Nuvoton NAU8825, Rockchip
    S/PDIF, and Atmel class D amplifier

    USB-Audio:
    - A fix for newer Roland MIDI devices
    - Quirks and workarounds for Zoom R16/24 device

    Misc:
    - A few fixes for some old Cirrus CS46xx PCI sound boards
    - Yet another fixes for some old ESS Maestro3 PCI sound boards"

    * tag 'sound-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (330 commits)
    ALSA: hda - Add Intel Lewisburg device IDs Audio
    ALSA: hda - Apply pin fixup for HP ProBook 6550b
    ALSA: hda - Fix lost 4k BDL boundary workaround
    ALSA: maestro3: Fix Allegro mute until master volume/mute is touched
    ALSA: maestro3: Enable docking support for Dell Latitude C810
    ALSA: firewire-digi00x: add another rawmidi character device for MIDI control ports
    ALSA: firewire-digi00x: add MIDI operations for MIDI control port
    ALSA: firewire-digi00x: rename identifiers of MIDI operation for physical ports
    ALSA: cs46xx: Fix suspend for all channels
    ALSA: cs46xx: Fix Duplicate front for CS4294 and CS4298 codecs
    ALSA: DocBook: Add soc-ops.c and soc-compress.c
    ALSA: hda - Add / fix kernel doc comments
    ALSA: Constify ratden/ratnum constraints
    ALSA: hda - Disable 64bit address for Creative HDA controllers
    ALSA: hda/realtek - Dell XPS one ALC3260 speaker no sound after resume back
    ALSA: hda/ca0132 - Convert leftover pr_info() and pr_err()
    ASoC: fsl: Use #ifdef instead of #if for CONFIG_PM_SLEEP
    ASoC: rt5645: Sort the order for register bit defines
    ASoC: dwc: add check for master/slave format
    ASoC: rt5645: Add the HWEQ for the speaker output
    ...

    Linus Torvalds
     

06 Nov, 2015

4 commits

  • Pull powerpc updates from Michael Ellerman:

    - Kconfig: remove BE-only platforms from LE kernel build from Boqun
    Feng
    - Refresh ps3_defconfig from Geoff Levand
    - Emit GNU & SysV hashes for the vdso from Michael Ellerman
    - Define an enum for the bolted SLB indexes from Anshuman Khandual
    - Use a local to avoid multiple calls to get_slb_shadow() from Michael
    Ellerman
    - Add gettimeofday() benchmark from Michael Neuling
    - Avoid link stack corruption in __get_datapage() from Michael Neuling
    - Add virt_to_pfn and use this instead of opencoding from Aneesh Kumar
    K.V
    - Add ppc64le_defconfig from Michael Ellerman
    - pseries: extract of_helpers module from Andy Shevchenko
    - Correct string length in pseries_of_derive_parent() from Nathan
    Fontenot
    - Free the MSI bitmap if it was slab allocated from Denis Kirjanov
    - Shorten irq_chip name for the SIU from Christophe Leroy
    - Wait 1s for secondaries to enter OPAL during kexec from Samuel
    Mendoza-Jonas
    - Fix _ALIGN_* errors due to type difference, from Aneesh Kumar K.V
    - powerpc/pseries/hvcserver: don't memset pi_buff if it is null from
    Colin Ian King
    - Disable hugepd for 64K page size, from Aneesh Kumar K.V
    - Differentiate between hugetlb and THP during page walk from Aneesh
    Kumar K.V
    - Make PCI non-optional for pseries from Michael Ellerman
    - Individual System V IPC system calls from Sam bobroff
    - Add selftest of unmuxed IPC calls from Michael Ellerman
    - discard .exit.data at runtime from Stephen Rothwell
    - Delete old orphaned PrPMC 280/2800 DTS and boot file, from Paul
    Gortmaker
    - Use of_get_next_parent to simplify code from Christophe Jaillet
    - Paginate some xmon output from Sam bobroff
    - Add some more elements to the xmon PACA dump from Michael Ellerman
    - Allow the tm-syscall selftest to build with old headers from Michael
    Ellerman
    - Run EBB selftests only on POWER8 from Denis Kirjanov
    - Drop CONFIG_TUNE_CELL in favour of CONFIG_CELL_CPU from Michael
    Ellerman
    - Avoid reference to potentially freed memory in prom.c from Christophe
    Jaillet
    - Quieten boot wrapper output with run_cmd from Geoff Levand
    - EEH fixes and cleanups from Gavin Shan
    - Fix recursive fenced PHB on Broadcom shiner adapter from Gavin Shan
    - Use of_get_next_parent() in of_get_ibm_chip_id() from Michael
    Ellerman
    - Fix section mismatch warning in msi_bitmap_alloc() from Denis
    Kirjanov
    - Fix ps3-lpm white space from Rudhresh Kumar J
    - Fix ps3-vuart null dereference from Colin King
    - nvram: Add missing kfree in error path from Christophe Jaillet
    - nvram: Fix function name in some errors messages, from Christophe
    Jaillet
    - drivers/macintosh: adb: fix misleading Kconfig help text from Aaro
    Koskinen
    - agp/uninorth: fix a memleak in create_gatt_table from Denis Kirjanov
    - cxl: Free virtual PHB when removing from Andrew Donnellan
    - scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target from
    Michael Ellerman
    - scripts/kconfig/Makefile: Fix KBUILD_DEFCONFIG check when building
    with O= from Michael Ellerman
    - Freescale updates from Scott: Highlights include 64-bit book3e
    kexec/kdump support, a rework of the qoriq clock driver, device tree
    changes including qoriq fman nodes, support for a new 85xx board, and
    some fixes.
    - MPC5xxx updates from Anatolij: Highlights include a driver for
    MPC512x LocalPlus Bus FIFO with its device tree binding
    documentation, mpc512x device tree updates and some minor fixes.

    * tag 'powerpc-4.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (106 commits)
    powerpc/msi: Fix section mismatch warning in msi_bitmap_alloc()
    powerpc/prom: Use of_get_next_parent() in of_get_ibm_chip_id()
    powerpc/pseries: Correct string length in pseries_of_derive_parent()
    powerpc/e6500: hw tablewalk: make sure we invalidate and write to the same tlb entry
    powerpc/mpc85xx: Add FSL QorIQ DPAA FMan support to the SoC device tree(s)
    powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan
    powerpc/fsl: Add #clock-cells and clockgen label to clockgen nodes
    powerpc: handle error case in cpm_muram_alloc()
    powerpc: mpic: use IRQCHIP_SKIP_SET_WAKE instead of redundant mpic_irq_set_wake
    powerpc/book3e-64: Enable kexec
    powerpc/book3e-64/kexec: Set "r4 = 0" when entering spinloop
    powerpc/booke: Only use VIRT_PHYS_OFFSET on booke32
    powerpc/book3e-64/kexec: Enable SMP release
    powerpc/book3e-64/kexec: create an identity TLB mapping
    powerpc/book3e-64: Don't limit paca to 256 MiB
    powerpc/book3e/kdump: Enable crash_kexec_wait_realmode
    powerpc/book3e: support CONFIG_RELOCATABLE
    powerpc/booke64: Fix args to copy_and_flush
    powerpc/book3e-64: rename interrupt_end_book3e with __end_interrupts
    powerpc/e6500: kexec: Handle hardware threads
    ...

    Linus Torvalds
     
  • Pull documentation update from Jon Corbet:
    "There is a nice new document from Neil on how pathname lookups work
    and some new CAN driver documentation. Beyond that, we have
    kernel-doc fixes, a bit more work to support reproducible builds, and
    the usual collection of small fixes"

    * tag 'docs-for-linus' of git://git.lwn.net/linux: (34 commits)
    Documentation: add new description of path-name lookup.
    Documentation/vm/slub.txt: document slabinfo-gnuplot.sh
    Doc: ABI/stable: Fix typo in ABI/stable
    doc: Clarify that nmi_watchdog param is for hardlockups
    Typo correction for description in gpio document.
    DocBook: Fix kernel-doc to be case-insensitive for private:
    kernel-docs.txt: update kernelnewbies reference
    Doc:kvm: Fix typo in Doc/virtual/kvm
    Documentation/Changes: Add bc in "Current Minimal Requirements" section
    Documentation/email-clients.txt: remove trailing whitespace
    DocBook: Use a fixed encoding for output
    MAINTAINERS: The docs tree has moved
    Docs/kernel-parameters: Add earlycon devicetree usage
    SubmittingPatches: make Subject examples match the de facto standard
    Documentation: gpio: mention that -gpio has been deprecated
    Documentation: cgroups: just fix a few typos
    Documentation: Update kselftest.txt
    Documentation: DMA API: Be more explicit that nents is always the same
    Documentation: Update the default value of crashkernel low
    zram: update documentation
    ...

    Linus Torvalds
     
  • Pull security subsystem update from James Morris:
    "This is mostly maintenance updates across the subsystem, with a
    notable update for TPM 2.0, and addition of Jarkko Sakkinen as a
    maintainer of that"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (40 commits)
    apparmor: clarify CRYPTO dependency
    selinux: Use a kmem_cache for allocation struct file_security_struct
    selinux: ioctl_has_perm should be static
    selinux: use sprintf return value
    selinux: use kstrdup() in security_get_bools()
    selinux: use kmemdup in security_sid_to_context_core()
    selinux: remove pointless cast in selinux_inode_setsecurity()
    selinux: introduce security_context_str_to_sid
    selinux: do not check open perm on ftruncate call
    selinux: change CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE default
    KEYS: Merge the type-specific data with the payload data
    KEYS: Provide a script to extract a module signature
    KEYS: Provide a script to extract the sys cert list from a vmlinux file
    keys: Be more consistent in selection of union members used
    certs: add .gitignore to stop git nagging about x509_certificate_list
    KEYS: use kvfree() in add_key
    Smack: limited capability for changing process label
    TPM: remove unnecessary little endian conversion
    vTPM: support little endian guests
    char: Drop owner assignment from i2c_driver
    ...

    Linus Torvalds
     
  • Pull media updates from Mauro Carvalho Chehab:
    "Media updates, including:

    - Lots of improvements at the kABI documentation
    - Split of Videobuf2 into a common part and a V4L2 specific one
    - Split of the VB2 tracing events into a separate header file
    - s5p-mfc got support for Exynos 5433
    - v4l2 fixes for 64-bits alignment when running 32 bits userspace
    on ARM
    - Added support for SDR radio transmitter at core, vivid and hackrf
    drivers
    - Some y2038 fixups
    - Some improvements at V4L2 colorspace support
    - saa7164 converted to use the V4L2 core control framework
    - several new boards additions, cleanups and fixups

    PS: There are two patches for scripts/kernel-doc that are needed by
    the documentation patches on Media. Jon is OK on merging those via
    my tree"

    * tag 'media/v4.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (146 commits)
    [media] c8sectpfe: Remove select on CONFIG_FW_LOADER_USER_HELPER_FALLBACK
    [media] DocBook media: update copyright/version numbers
    [media] ivtv: Convert to get_user_pages_unlocked()
    [media] media/v4l2-ctrls: fix setting autocluster to manual with VIDIOC_S_CTRL
    [media] DocBook media: Fix a typo in encoder cmd
    [media] DocBook: add SDR specific info to G_MODULATOR / S_MODULATOR
    [media] DocBook: add SDR specific info to G_TUNER / S_TUNER
    [media] hackrf: do not set human readable name for formats
    [media] hackrf: add support for transmitter
    [media] hackrf: switch to single function which configures everything
    [media] hackrf: add control for RF amplifier
    [media] DocBook: add modulator type field
    [media] v4l: add type field to v4l2_modulator struct
    [media] DocBook: document SDR transmitter
    [media] v4l2: add support for SDR transmitter
    [media] DocBook: document tuner RF gain control
    [media] v4l2: add RF gain control
    [media] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR
    [media] media/vivid-osd: fix info leak in ioctl
    [media] media: videobuf2: Move v4l2-specific stuff to videobuf2-v4l2
    ...

    Linus Torvalds
     

05 Nov, 2015

2 commits

  • Pull char/misc driver updates from Greg KH:
    "Here is the big char/misc driver update for 4.4-rc1. Lots of
    different driver and subsystem updates, hwtracing being the largest
    with the addition of some new platforms that are now supported. Full
    details in the shortlog.

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

    * tag 'char-misc-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (181 commits)
    fpga: socfpga: Fix check of return value of devm_request_irq
    lkdtm: fix ACCESS_USERSPACE test
    mcb: Destroy IDA on module unload
    mcb: Do not return zero on error path in mcb_pci_probe()
    mei: bus: set the device name before running fixup
    mei: bus: use correct lock ordering
    mei: Fix debugfs filename in error output
    char: ipmi: ipmi_ssif: Replace timeval with timespec64
    fpga: zynq-fpga: Fix issue with drvdata being overwritten.
    fpga manager: remove unnecessary null pointer checks
    fpga manager: ensure lifetime with of_fpga_mgr_get
    fpga: zynq-fpga: Change fw format to handle bin instead of bit.
    fpga: zynq-fpga: Fix unbalanced clock handling
    misc: sram: partition base address belongs to __iomem space
    coresight: etm3x: adding documentation for sysFS's cpu interface
    vme: 8-bit status/id takes 256 values, not 255
    fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000
    ARM: zynq: dt: Updated devicetree for Zynq 7000 platform.
    ARM: dt: fpga: Added binding docs for Xilinx Zynq FPGA manager.
    ver_linux: proc/modules, limit text processing to 'sed'
    ...

    Linus Torvalds
     
  • Pull arm64 updates from Catalin Marinas:

    - "genirq: Introduce generic irq migration for cpu hotunplugged" patch
    merged from tip/irq/for-arm to allow the arm64-specific part to be
    upstreamed via the arm64 tree

    - CPU feature detection reworked to cope with heterogeneous systems
    where CPUs may not have exactly the same features. The features
    reported by the kernel via internal data structures or ELF_HWCAP are
    delayed until all the CPUs are up (and before user space starts)

    - Support for 16KB pages, with the additional bonus of a 36-bit VA
    space, though the latter only depending on EXPERT

    - Implement native {relaxed, acquire, release} atomics for arm64

    - New ASID allocation algorithm which avoids IPI on roll-over, together
    with TLB invalidation optimisations (using local vs global where
    feasible)

    - KASan support for arm64

    - EFI_STUB clean-up and isolation for the kernel proper (required by
    KASan)

    - copy_{to,from,in}_user optimisations (sharing the memcpy template)

    - perf: moving arm64 to the arm32/64 shared PMU framework

    - L1_CACHE_BYTES increased to 128 to accommodate Cavium hardware

    - Support for the contiguous PTE hint on kernel mapping (16 consecutive
    entries may be able to use a single TLB entry)

    - Generic CONFIG_HZ now used on arm64

    - defconfig updates

    * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (91 commits)
    arm64/efi: fix libstub build under CONFIG_MODVERSIONS
    ARM64: Enable multi-core scheduler support by default
    arm64/efi: move arm64 specific stub C code to libstub
    arm64: page-align sections for DEBUG_RODATA
    arm64: Fix build with CONFIG_ZONE_DMA=n
    arm64: Fix compat register mappings
    arm64: Increase the max granular size
    arm64: remove bogus TASK_SIZE_64 check
    arm64: make Timer Interrupt Frequency selectable
    arm64/mm: use PAGE_ALIGNED instead of IS_ALIGNED
    arm64: cachetype: fix definitions of ICACHEF_* flags
    arm64: cpufeature: declare enable_cpu_capabilities as static
    genirq: Make the cpuhotplug migration code less noisy
    arm64: Constify hwcap name string arrays
    arm64/kvm: Make use of the system wide safe values
    arm64/debug: Make use of the system wide safe value
    arm64: Move FP/ASIMD hwcap handling to common code
    arm64/HWCAP: Use system wide safe values
    arm64/capabilities: Make use of system wide safe value
    arm64: Delay cpu feature capability checks
    ...

    Linus Torvalds
     

03 Nov, 2015

5 commits

  • By now, the recordmcount only records the function that in
    following sections:
    .text/.ref.text/.sched.text/.spinlock.text/.irqentry.text/
    .kprobes.text/.text.unlikely

    For the function that not in these sections, the call mcount
    will be in place and not be replaced when kernel boot up. And
    it will bring performance overhead, such as do_mem_abort (in
    .exception.text section). This patch make the call mcount to
    nop for this case in recordmcount.

    Link: http://lkml.kernel.org/r/1446019445-14421-1-git-send-email-huawei.libin@huawei.com
    Link: http://lkml.kernel.org/r/1446193864-24593-4-git-send-email-huawei.libin@huawei.com

    Cc:
    Cc:
    Cc:
    Cc: # 3.18+
    Acked-by: Will Deacon
    Signed-off-by: Li Bin
    Signed-off-by: Steven Rostedt

    Li Bin
     
  • In nop_mcount, shdr->sh_offset and welp->r_offset should handle
    endianness properly, otherwise it will trigger Segmentation fault
    if the recordmcount main and file.o have different endianness.

    Link: http://lkml.kernel.org/r/563806C7.7070606@huawei.com

    Cc: # 3.0+
    Signed-off-by: Li Bin
    Signed-off-by: Steven Rostedt

    libin
     
  • Signed-off-by: Boris Barbulovski
    Signed-off-by: Thiago Macieira
    [mmarek: I missed it in the original Qt5 patch set, which caused a crash]
    Signed-off-by: Michal Marek

    Boris Barbulovski
     
  • The Qt Project recommendation is that there should always be a "qmake"
    binary and it should never be renamed. If it's necessary to handle
    multiple Qt versions, the Qt Project recommends using qtchooser.

    Unfortunately, some distros do not follow the recommendation, so we
    would need to check qmake-qt4, qmake-qt5, etc. So, instead, let's try
    pkg-config.

    Signed-off-by: Thiago Macieira
    Reported-by: Alexey Brodkin
    Acked-by: Alexey Brodkin
    Signed-off-by: Michal Marek

    Thiago Macieira
     
  • Although, the default value of rel_type_nop is zero, and the value
    of R_386_NONE/R_X86_64_NONE is zero too, but it should be assigned
    a meaningful value explicitly, otherwise it looks confused.

    Assign R_386_NONE to rel_type_nop for 386, assign R_X86_64_NONE
    to rel_type_nop for x86_64.

    Link: http://lkml.kernel.org/r/1446020606-16352-1-git-send-email-huawei.libin@huawei.com

    Signed-off-by: Li Bin
    Signed-off-by: Steven Rostedt

    Li Bin
     

27 Oct, 2015

2 commits