1. 04 Jun, 2014 40 commits
    • Fabian Frederick's avatar
      lib/debugobjects.c: add pr_fmt to logging · 719e4843
      Fabian Frederick authored
      Add ODEBUG: prefix to pr_fmt
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      719e4843
    • Fabian Frederick's avatar
      lib/debugobjects.c: convert printk to pr_foo() · d7ffef28
      Fabian Frederick authored
      Convert all printk to pr_foo() except KERN_DEBUG (see
      Documentation/CodingStyle Chapter 13)
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d7ffef28
    • Fabian Frederick's avatar
      fs/configfs: use pr_fmt · 1d88aa44
      Fabian Frederick authored
      Add pr_fmt based on module name.
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Cc: Joel Becker <jlbec@evilplan.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1d88aa44
    • Fabian Frederick's avatar
      fs/configfs: convert printk to pr_foo() · c6686931
      Fabian Frederick authored
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Cc: Joel Becker <jlbec@evilplan.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c6686931
    • Fabian Frederick's avatar
      fs/configs/item.c: kernel-doc fixes + clean-up · f6b1fe7c
      Fabian Frederick authored
      Fix function parameter documentation
      
      EXPORT_SYMBOLS moved after corresponding functions
      
      Small coding style and checkpatch warning fixes
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Acked-by: default avatarJoel Becker <jlbec@evilplan.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f6b1fe7c
    • Andrew Morton's avatar
      arch/unicore32/mm/ioremap.c: return NULL on invalid pfn · 2accff4e
      Andrew Morton authored
      __uc32_ioremap_pfn_caller() should return NULL when the pfn is found to be
      invalid.
      
      From a recommendation by Guan Xuetao.
      
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Cc: Fabian Frederick <fabf@skynet.be>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2accff4e
    • Fabian Frederick's avatar
      arch/unicore32/mm/ioremap.c: convert printk/warn_on to warn() · acc8a1c0
      Fabian Frederick authored
      Coalesce formats.
      
      [akpm@linux-foundation.org: undo crazy long line]
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      acc8a1c0
    • Fabian Frederick's avatar
      fs/squashfs/squashfs.h: replace pr_warning by pr_warn · 22010836
      Fabian Frederick authored
      Update the last pr_warning callsite in fs branch
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Cc: Phillip Lougher <phillip@squashfs.org.uk>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      22010836
    • Christoph Lameter's avatar
      sh: Replace __get_cpu_var uses · c473b2c6
      Christoph Lameter authored
      __get_cpu_var() is used for multiple purposes in the kernel source.  One
      of them is address calculation via the form &__get_cpu_var(x).  This
      calculates the address for the instance of the percpu variable of the
      current processor based on an offset.
      
      Other use cases are for storing and retrieving data from the current
      processors percpu area.  __get_cpu_var() can be used as an lvalue when
      writing data or on the right side of an assignment.
      
      __get_cpu_var() is defined as :
      
      #define __get_cpu_var(var) (*this_cpu_ptr(&(var)))
      
      __get_cpu_var() always only does an address determination.  However, store
      and retrieve operations could use a segment prefix (or global register on
      other platforms) to avoid the address calculation.
      
      this_cpu_write() and this_cpu_read() can directly take an offset into a
      percpu area and use optimized assembly code to read and write per cpu
      variables.
      
      This patch converts __get_cpu_var into either an explicit address
      calculation using this_cpu_ptr() or into a use of this_cpu operations that
      use the offset.  Thereby address calculations are avoided and less
      registers are used when code is generated.
      
      At the end of the patch set all uses of __get_cpu_var have been removed so
      the macro is removed too.
      
      The patch set includes passes over all arches as well.  Once these
      operations are used throughout then specialized macros can be defined in
      non -x86 arches as well in order to optimize per cpu access by f.e.  using
      a global register that may be set to the per cpu base.
      
      Transformations done to __get_cpu_var()
      
      1. Determine the address of the percpu instance of the current processor.
      
      	DEFINE_PER_CPU(int, y);
      	int *x = &__get_cpu_var(y);
      
          Converts to
      
      	int *x = this_cpu_ptr(&y);
      
      2. Same as #1 but this time an array structure is involved.
      
      	DEFINE_PER_CPU(int, y[20]);
      	int *x = __get_cpu_var(y);
      
          Converts to
      
      	int *x = this_cpu_ptr(y);
      
      3. Retrieve the content of the current processors instance of a per cpu
      variable.
      
      	DEFINE_PER_CPU(int, y);
      	int x = __get_cpu_var(y)
      
         Converts to
      
      	int x = __this_cpu_read(y);
      
      4. Retrieve the content of a percpu struct
      
      	DEFINE_PER_CPU(struct mystruct, y);
      	struct mystruct x = __get_cpu_var(y);
      
         Converts to
      
      	memcpy(&x, this_cpu_ptr(&y), sizeof(x));
      
      5. Assignment to a per cpu variable
      
      	DEFINE_PER_CPU(int, y)
      	__get_cpu_var(y) = x;
      
         Converts to
      
      	__this_cpu_write(y, x);
      
      6. Increment/Decrement etc of a per cpu variable
      
      	DEFINE_PER_CPU(int, y);
      	__get_cpu_var(y)++
      
         Converts to
      
      	__this_cpu_inc(y)
      Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
      Tested-by: Geert Uytterhoeven <geert@linux-m68k.org> [compilation only]
      Cc: Paul Mundt <lethal@linux-sh.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c473b2c6
    • Fabian Frederick's avatar
      ntfs: remove NULL value assignments · 504e0e2f
      Fabian Frederick authored
      Static values are automatically initialized to NULL.
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Acked-by: default avatarAnton Altaparmakov <anton@tuxera.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      504e0e2f
    • Heinrich Schuchardt's avatar
      fanotify: check file flags passed in fanotify_init · 48149e9d
      Heinrich Schuchardt authored
      Without this patch fanotify_init does not validate the value passed in
      event_f_flags.
      
      When a fanotify event is read from the fanotify file descriptor a new
      file descriptor is created where file.f_flags = event_f_flags.
      
      Internal and external open flags are stored together in field f_flags of
      struct file.  Hence, an application might create file descriptors with
      internal flags like FMODE_EXEC, FMODE_NOCMTIME set.
      
      Jan Kara and Eric Paris both aggreed that this is a bug and the value of
      event_f_flags should be checked:
        https://lkml.org/lkml/2014/4/29/522
        https://lkml.org/lkml/2014/4/29/539
      
      This updated patch version considers the comments by Michael Kerrisk in
        https://lkml.org/lkml/2014/5/4/10
      
      With the patch the value of event_f_flags is checked.
      When specifying an invalid value error EINVAL is returned.
      
      Internal flags are disallowed.
      
      File creation flags are disallowed:
      O_CREAT, O_DIRECTORY, O_EXCL, O_NOCTTY, O_NOFOLLOW, O_TRUNC, and O_TTY_INIT.
      
      Flags which do not make sense with fanotify are disallowed:
      __O_TMPFILE, O_PATH, FASYNC, and O_DIRECT.
      
      This leaves us with the following allowed values:
      
      O_RDONLY, O_WRONLY, O_RDWR are basic functionality. The are stored in the
      bits given by O_ACCMODE.
      
      O_APPEND is working as expected. The value might be useful in a logging
      application which appends the current status each time the log is opened.
      
      O_LARGEFILE is needed for files exceeding 4GB on 32bit systems.
      
      O_NONBLOCK may be useful when monitoring slow devices like tapes.
      
      O_NDELAY is equal to O_NONBLOCK except for platform parisc.
      To avoid code breaking on parisc either both flags should be
      allowed or none. The patch allows both.
      
      __O_SYNC and O_DSYNC may be used to avoid data loss on power disruption.
      
      O_NOATIME may be useful to reduce disk activity.
      
      O_CLOEXEC may be useful, if separate processes shall be used to scan files.
      
      Once this patch is accepted, the fanotify_init.2 manpage has to be updated.
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarJan Kara <jack@suse.cz>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      48149e9d
    • Heinrich Schuchardt's avatar
      fs/notify/fanotify/fanotify_user.c: fix FAN_MARK_FLUSH flag checking · cc299a98
      Heinrich Schuchardt authored
      If fanotify_mark is called with illegal value of arguments flags and
      marks it usually returns EINVAL.
      
      When fanotify_mark is called with FAN_MARK_FLUSH the argument flags is
      not checked for irrelevant flags like FAN_MARK_IGNORED_MASK.
      
      The patch removes this inconsistency.
      
      If an irrelevant flag is set error EINVAL is returned.
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Acked-by: default avatarMichael Kerrisk <mtk.manpages@gmail.com>
      Acked-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cc299a98
    • David Cohen's avatar
      fs/notify/mark.c: trivial cleanup · efa8f7e5
      David Cohen authored
      Do not initialize private_destroy_list twice.  list_replace_init()
      already takes care of initializing private_destroy_list.  We don't need
      to initialize it with LIST_HEAD() beforehand.
      Signed-off-by: default avatarDavid Cohen <david.a.cohen@linux.intel.com>
      Cc: Jan Kara <jack@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      efa8f7e5
    • Heinrich Schuchardt's avatar
      fanotify: create FAN_ACCESS event for readdir · d4c7cf6c
      Heinrich Schuchardt authored
      Before the patch, read creates FAN_ACCESS_PERM and FAN_ACCESS events,
      readdir creates only FAN_ACCESS_PERM events.
      
      This is inconsistent.
      
      After the patch, readdir creates FAN_ACCESS_PERM and FAN_ACCESS events.
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarJan Kara <jack@suse.cz>
      Cc: Eric Paris <eparis@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d4c7cf6c
    • Heinrich Schuchardt's avatar
      fanotify: FAN_MARK_FLUSH: avoid having to provide a fake/invalid fd and path · 0a8dd2db
      Heinrich Schuchardt authored
      Originally from Tvrtko Ursulin (https://lkml.org/lkml/2011/1/12/112)
      
      Avoid having to provide a fake/invalid fd and path when flushing marks
      
      Currently for a group to flush marks it has set it needs to provide a
      fake or invalid (but resolvable) file descriptor and path when calling
      fanotify_mark.  This patch pulls the flush handling a bit up so file
      descriptor and path are completely ignored when flushing.
      
      I reworked the patch to be applicable again (the signature of
      fanotify_mark has changed since Tvrtko's work).
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@onelan.co.uk>
      Reviewed-by: default avatarJan Kara <jack@suse.cz>
      Acked-by: default avatarEric Paris <eparis@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0a8dd2db
    • Fabian Frederick's avatar
      fs/fscache: replace seq_printf by seq_puts · 3185a88c
      Fabian Frederick authored
      Replace seq_printf where possible + coalesce formats from 2 existing
      seq_puts
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3185a88c
    • Fabian Frederick's avatar
      fs/fscache: convert printk to pr_foo() · 36dfd116
      Fabian Frederick authored
      All printk converted to pr_foo() except internal.h: printk(KERN_DEBUG
      
      Coalesce formats.
      
      Add pr_fmt
      Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      36dfd116
    • Tetsuo Handa's avatar
      kthread: fix return value of kthread_create() upon SIGKILL. · 8fe6929c
      Tetsuo Handa authored
      Commit 786235ee ("kthread: make kthread_create() killable") meant
      for allowing kthread_create() to abort as soon as killed by the
      OOM-killer.  But returning -ENOMEM is wrong if killed by SIGKILL from
      userspace.  Change kthread_create() to return -EINTR upon SIGKILL.
      Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Acked-by: default avatarDavid Rientjes <rientjes@google.com>
      Cc: <stable@vger.kernel.org> [3.13+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      8fe6929c
    • Naoya Horiguchi's avatar
      hugetlb: restrict hugepage_migration_support() to x86_64 · c177c81e
      Naoya Horiguchi authored
      Currently hugepage migration is available for all archs which support
      pmd-level hugepage, but testing is done only for x86_64 and there're
      bugs for other archs.  So to avoid breaking such archs, this patch
      limits the availability strictly to x86_64 until developers of other
      archs get interested in enabling this feature.
      
      Simply disabling hugepage migration on non-x86_64 archs is not enough to
      fix the reported problem where sys_move_pages() hits the BUG_ON() in
      follow_page(FOLL_GET), so let's fix this by checking if hugepage
      migration is supported in vma_migratable().
      Signed-off-by: default avatarNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
      Reported-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Tested-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Acked-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: David Miller <davem@davemloft.net>
      Cc: <stable@vger.kernel.org>	[3.12+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c177c81e
    • Hugh Dickins's avatar
      mm: fix sleeping function warning from __put_anon_vma · 7f39dda9
      Hugh Dickins authored
      Trinity reports BUG:
      
        sleeping function called from invalid context at kernel/locking/rwsem.c:47
        in_atomic(): 0, irqs_disabled(): 0, pid: 5787, name: trinity-c27
      
      __might_sleep < down_write < __put_anon_vma < page_get_anon_vma <
      migrate_pages < compact_zone < compact_zone_order < try_to_compact_pages ..
      
      Right, since conversion to mutex then rwsem, we should not put_anon_vma()
      from inside an rcu_read_lock()ed section: fix the two places that did so.
      And add might_sleep() to anon_vma_free(), as suggested by Peter Zijlstra.
      
      Fixes: 88c22088 ("mm: optimize page_lock_anon_vma() fast-path")
      Reported-by: default avatarDave Jones <davej@redhat.com>
      Signed-off-by: default avatarHugh Dickins <hughd@google.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7f39dda9
    • Andi Kleen's avatar
      MAINTAINERS: pass on hwpoison maintainership to Naoya Horiguchi · f9625c48
      Andi Kleen authored
      Horiguchi-san has done most of the work on hwpoison in the last years
      and he also does most of the reviewing.  So I'm passing on the hwpoison
      maintainership to him.
      Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
      Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f9625c48
    • Joe Perches's avatar
      MAINTAINERS: add Joe as the get_maintainer.pl maintainer · f8f1ec73
      Joe Perches authored
      Might as well be the get_maintainer maintainer...
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f8f1ec73
    • Konstantin Khlebnikov's avatar
      tools/vm/page-types.c: catch sigbus if raced with truncate · 1d46598b
      Konstantin Khlebnikov authored
      Recently added page-cache dumping is known to be a little bit racy.
      But after race with truncate it just dies due to unhandled SIGBUS
      when it tries to poke pages beyond the new end of file.
      This patch adds handler for SIGBUS which skips the rest of the file.
      Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
      Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1d46598b
    • Linus Torvalds's avatar
      Merge tag 'devicetree-for-3.16' of... · d2705064
      Linus Torvalds authored
      Merge tag 'devicetree-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux into next
      
      Pull DeviceTree updates from Rob Herring:
       - Another round of clean-up of FDT related code in architecture code.
         This removes knowledge of internal FDT details from most
         architectures except powerpc.
       - Conversion of kernel's custom FDT parsing code to use libfdt.
       - DT based initialization for generic serial earlycon.  The
         introduction of generic serial earlycon support went in through the
         tty tree.
       - Improve the platform device naming for DT probed devices to ensure
         unique naming and use parent names instead of a global index.
       - Fix a race condition in of_update_property.
       - Unify the various linker section OF match tables and fix several
         function prototype errors.
       - Update platform_get_irq_byname to work in deferred probe cases.
       - 2 binding doc updates
      
      * tag 'devicetree-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (58 commits)
        of: handle NULL node in next_child iterators
        of/irq: provide more wrappers for !CONFIG_OF
        devicetree: bindings: Document micrel vendor prefix
        dt: bindings: dwc2: fix required value for the phy-names property
        of_pci_irq: kill useless variable in of_irq_parse_pci()
        of/irq: do irq resolution in platform_get_irq_byname()
        of: Add a testcase for of_find_node_by_path()
        of: Make of_find_node_by_path() handle /aliases
        of: Create unlocked version of for_each_child_of_node()
        lib: add glibc style strchrnul() variant
        of: Handle memory@0 node on PPC32 only
        pci/of: Remove dead code
        of: fix race between search and remove in of_update_property()
        of: Use NULL for pointers
        of: Stop naming platform_device using dcr address
        of: Ensure unique names without sacrificing determinism
        tty/serial: pl011: add DT based earlycon support
        of/fdt: add FDT serial scanning for earlycon
        of/fdt: add FDT address translation support
        serial: earlycon: add DT support
        ...
      d2705064
    • Linus Torvalds's avatar
      Merge tag 'sound-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into next · b77279bc
      Linus Torvalds authored
      Pull sound updates from Takashi Iwai:
       "At this time, majority of changes come from ASoC world while we got a
        few new drivers in other places for FireWire and USB.  There have been
        lots of ASoC core cleanups / refactoring, but very little visible to
        external users.
      
        ASoC:
         - Support for specifying aux CODECs in DT
         - Removal of the deprecated mux and enum macros
         - More moves towards full componentisation
         - Removal of some unused I/O code
         - Lots of cleanups, fixes and enhancements to the davinci, Freescale,
           Haswell and Realtek drivers
         - Several drivers exposed directly in Kconfig for use with
           simple-card
         - GPIO descriptor support for jacks
         - More updates and fixes to the Freescale SSI, Intel and rsnd drivers
         - New drivers for Cirrus CS42L56, Realtek RT5639, RT5642 and RT5651
           and ST STA350, Analog Devices ADAU1361, ADAU1381, ADAU1761 and
           ADAU1781, and Realtek RT5677
      
        HD-audio:
         - Clean up Dell headset quirks
         - Noise fixes for Dell and Sony laptops
         - Thinkpad T440 dock fix
         - Realtek codec updates (ALC293,ALC233,ALC3235)
         - Tegra HD-audio HDMI support
      
        FireWire-audio:
         - FireWire audio stack enhancement (AMDTP, MIDI), support for
           incoming isochronous stream and duplex streams with timestamp
           synchronization
         - BeBoB-based devices support
         - Fireworks-based device support
      
        USB-audio:
         - Behringer BCD2000 USB device support
      
        Misc:
         - Clean up of a few old drivers, atmel, fm801, etc"
      
      * tag 'sound-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (480 commits)
        ASoC: Fix wrong argument for card remove callbacks
        ASoC: free jack GPIOs before the sound card is freed
        ALSA: firewire-lib: Remove a comment about restriction of asynchronous operation
        ASoC: cache: Fix error code when not using ASoC level cache
        ALSA: hda/realtek - Fix COEF widget NID for ALC260 replacer fixup
        ALSA: hda/realtek - Correction of fixup codes for PB V7900 laptop
        ALSA: firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio data
        ASoC: add RT5677 CODEC driver
        ASoC: intel: The Baytrail/MAX98090 driver depends on I2C
        ASoC: rt5640: Add the function "get_clk_info" to RL6231 shared support
        ASoC: rt5640: Add the function of the PLL clock calculation to RL6231 shared support
        ASoC: rt5640: Add RL6231 class device shared support for RT5640, RT5645 and RT5651
        ASoC: cache: Fix possible ZERO_SIZE_PTR pointer dereferencing error.
        ASoC: Add helper functions to cast from DAPM context to CODEC/platform
        ALSA: bebob: sizeof() vs ARRAY_SIZE() typo
        ASoC: wm9713: correct mono out PGA sources
        ALSA: synth: emux: soundfont.c: Cleaning up memory leak
        ASoC: fsl: Remove dependencies of boards for SND_SOC_EUKREA_TLV320
        ASoC: fsl-ssi: Use regmap
        ASoC: fsl-ssi: reorder and document fsl_ssi_private
        ...
      b77279bc
    • Linus Torvalds's avatar
      Merge tag 'fbdev-omap-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into next · 15b58830
      Linus Torvalds authored
      Pull omap fbdev changes from Tomi Valkeinen:
       - DT support for the panel drivers that were still missing it
       - TI AM43xx support
       - TI OMAP5 support
      
      * tag 'fbdev-omap-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (46 commits)
        OMAPDSS: move 'compatible' converter to omapdss driver
        OMAPDSS: HDMI: fix devm_ioremap_resource error checks
        OMAPDSS: HDMI: remove unused defines
        OMAPDSS: HDMI: cleanup WP ioremaps
        OMAPDSS: panel NEC-NL8048HL11 DT support
        Doc/DT: Add DT binding documentation for TPO td043mtea1 panel
        OMAPDSS: Panel TPO-TD043MTEA1 DT support
        Doc/DT: Add DT binding documentation for SHARP LS037V7DW01
        OMAPDSS: panel sharp-ls037v7dw01 DT support
        OMAPDSS: panel-sharp-ls037v7dw01: update to use gpiod
        Doc/DT: Add binding doc for lgphilips,lb035q02.txt
        OMAPDSS: panel-lgphilips-lb035q02: Add DT support
        OMAPDSS: panel-lgphilips-lb035q02: use gpiod for enable gpio
        OMAPDSS: hdmi5_core: Fix compilation with OMAP5_DSS_HDMI_AUDIO
        OMAPDSS: panel-dpi: enable-gpio
        OMAPDSS: Fix writes to DISPC_POL_FREQ
        Doc/DT: Add OMAP5 DSS DT bindings
        OMAPDSS: HDMI: cleanup ioremaps
        OMAPDSS: HDMI: Add OMAP5 HDMI support
        OMAPDSS: HDMI: PLL changes for OMAP5
        ...
      15b58830
    • Linus Torvalds's avatar
      Merge tag 'fbdev-main-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into next · d55696af
      Linus Torvalds authored
      Pull main fbdev changes from Tomi Valkeinen:
       "Mainly fixes and small improvements.  The biggest change seems to be
        backlight control support for mx3fb"
      
      * tag 'fbdev-main-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (31 commits)
        drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap
        video: fbdev: s3fb.c: Fix for possible null pointer dereference
        video: fbdev: grvga.c: Fix for possible null pointer dereference
        matroxfb: perform a dummy read of M_STATUS
        video: of: display_timing: fix default native-mode setting
        video: delete unneeded call to platform_get_drvdata
        video: mx3fb: Add backlight control support
        video: omap: delete support for early fbmem allocation
        video: of: display_timing: remove two unsafe error messages
        fbdev: fbmem: remove positive test on unsigned values
        fbcon: Fix memory leak in con2fb_release_oldinfo()
        video: Kconfig: Add a dependency to the Goldfish framebuffer driver
        video: exynos: Add a dependency to the menu
        video: mx3fb: Use devm_kzalloc
        video/nuc900: allow modular build
        video: atmel needs FB_BACKLIGHT
        video: export fb_prepare_logo
        video/mbx: fix building debugfs support
        video/omap: fix modular build
        video: clarify I2C dependencies
        ...
      d55696af
    • Linus Torvalds's avatar
      Merge tag 'pm+acpi-3.16-rc1' of... · 4dc4226f
      Linus Torvalds authored
      Merge tag 'pm+acpi-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm into next
      
      Pull ACPI and power management updates from Rafael Wysocki:
       "ACPICA is the leader this time (63 commits), followed by cpufreq (28
        commits), devfreq (15 commits), system suspend/hibernation (12
        commits), ACPI video and ACPI device enumeration (10 commits each).
      
        We have no major new features this time, but there are a few
        significant changes of how things work.  The most visible one will
        probably be that we are now going to create platform devices rather
        than PNP devices by default for ACPI device objects with _HID.  That
        was long overdue and will be really necessary to be able to use the
        same drivers for the same hardware blocks on ACPI and DT-based systems
        going forward.  We're not expecting fallout from this one (as usual),
        but it's something to watch nevertheless.
      
        The second change having a chance to be visible is that ACPI video
        will now default to using native backlight rather than the ACPI
        backlight interface which should generally help systems with broken
        Win8 BIOSes.  We're hoping that all problems with the native backlight
        handling that we had previously have been addressed and we are in a
        good enough shape to flip the default, but this change should be easy
        enough to revert if need be.
      
        In addition to that, the system suspend core has a new mechanism to
        allow runtime-suspended devices to stay suspended throughout system
        suspend/resume transitions if some extra conditions are met
        (generally, they are related to coordination within device hierarchy).
        However, enabling this feature requires cooperation from the bus type
        layer and for now it has only been implemented for the ACPI PM domain
        (used by ACPI-enumerated platform devices mostly today).
      
        Also, the acpidump utility that was previously shipped as a separate
        tool will now be provided by the upstream ACPICA along with the rest
        of ACPICA code, which will allow it to be more up to date and better
        supported, and we have one new cpuidle driver (ARM clps711x).
      
        The rest is improvements related to certain specific use cases,
        cleanups and fixes all over the place.
      
        Specifics:
      
         - ACPICA update to upstream version 20140424.  That includes a number
           of fixes and improvements related to things like GPE handling,
           table loading, headers, memory mapping and unmapping, DSDT/SSDT
           overriding, and the Unload() operator.  The acpidump utility from
           upstream ACPICA is included too.  From Bob Moore, Lv Zheng, David
           Box, David Binderman, and Colin Ian King.
      
         - Fixes and cleanups related to ACPI video and backlight interfaces
           from Hans de Goede.  That includes blacklist entries for some new
           machines and using native backlight by default.
      
         - ACPI device enumeration changes to create platform devices rather
           than PNP devices for ACPI device objects with _HID by default.  PNP
           devices will still be created for the ACPI device object with
           device IDs corresponding to real PNP devices, so that change should
           not break things left and right, and we're expecting to see more
           and more ACPI-enumerated platform devices in the future.  From
           Zhang Rui and Rafael J Wysocki.
      
         - Updates for the ACPI LPSS (Low-Power Subsystem) driver allowing it
           to handle system suspend/resume on Asus T100 correctly.  From
           Heikki Krogerus and Rafael J Wysocki.
      
         - PM core update introducing a mechanism to allow runtime-suspended
           devices to stay suspended over system suspend/resume transitions if
           certain additional conditions related to coordination within device
           hierarchy are met.  Related PM documentation update and ACPI PM
           domain support for the new feature.  From Rafael J Wysocki.
      
         - Fixes and improvements related to the "freeze" sleep state.  They
           affect several places including cpuidle, PM core, ACPI core, and
           the ACPI battery driver.  From Rafael J Wysocki and Zhang Rui.
      
         - Miscellaneous fixes and updates of the ACPI core from Aaron Lu,
           Bjørn Mork, Hanjun Guo, Lan Tianyu, and Rafael J Wysocki.
      
         - Fixes and cleanups for the ACPI processor and ACPI PAD (Processor
           Aggregator Device) drivers from Baoquan He, Manuel Schölling, Tony
           Camuso, and Toshi Kani.
      
         - System suspend/resume optimization in the ACPI battery driver from
           Lan Tianyu.
      
         - OPP (Operating Performance Points) subsystem updates from Chander
           Kashyap, Mark Brown, and Nishanth Menon.
      
         - cpufreq core fixes, updates and cleanups from Srivatsa S Bhat,
           Stratos Karafotis, and Viresh Kumar.
      
         - Updates, fixes and cleanups for the Tegra, powernow-k8, imx6q,
           s5pv210, nforce2, and powernv cpufreq drivers from Brian Norris,
           Jingoo Han, Paul Bolle, Philipp Zabel, Stratos Karafotis, and
           Viresh Kumar.
      
         - intel_pstate driver fixes and cleanups from Dirk Brandewie, Doug
           Smythies, and Stratos Karafotis.
      
         - Enabling the big.LITTLE cpufreq driver on arm64 from Mark Brown.
      
         - Fix for the cpuidle menu governor from Chander Kashyap.
      
         - New ARM clps711x cpuidle driver from Alexander Shiyan.
      
         - Hibernate core fixes and cleanups from Chen Gang, Dan Carpenter,
           Fabian Frederick, Pali Rohár, and Sebastian Capella.
      
         - Intel RAPL (Running Average Power Limit) driver updates from Jacob
           Pan.
      
         - PNP subsystem updates from Bjorn Helgaas and Fabian Frederick.
      
         - devfreq core updates from Chanwoo Choi and Paul Bolle.
      
         - devfreq updates for exynos4 and exynos5 from Chanwoo Choi and
           Bartlomiej Zolnierkiewicz.
      
         - turbostat tool fix from Jean Delvare.
      
         - cpupower tool updates from Prarit Bhargava, Ramkumar Ramachandra
           and Thomas Renninger.
      
         - New ACPI ec_access.c tool for poking at the EC in a safe way from
           Thomas Renninger"
      
      * tag 'pm+acpi-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (187 commits)
        ACPICA: Namespace: Remove _PRP method support.
        intel_pstate: Improve initial busy calculation
        intel_pstate: add sample time scaling
        intel_pstate: Correct rounding in busy calculation
        intel_pstate: Remove C0 tracking
        PM / hibernate: fixed typo in comment
        ACPI: Fix x86 regression related to early mapping size limitation
        ACPICA: Tables: Add mechanism to control early table checksum verification.
        ACPI / scan: use platform bus type by default for _HID enumeration
        ACPI / scan: always register ACPI LPSS scan handler
        ACPI / scan: always register memory hotplug scan handler
        ACPI / scan: always register container scan handler
        ACPI / scan: Change the meaning of missing .attach() in scan handlers
        ACPI / scan: introduce platform_id device PNP type flag
        ACPI / scan: drop unsupported serial IDs from PNP ACPI scan handler ID list
        ACPI / scan: drop IDs that do not comply with the ACPI PNP ID rule
        ACPI / PNP: use device ID list for PNPACPI device enumeration
        ACPI / scan: .match() callback for ACPI scan handlers
        ACPI / battery: wakeup the system only when necessary
        power_supply: allow power supply devices registered w/o wakeup source
        ...
      4dc4226f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid into next · d6b92c2c
      Linus Torvalds authored
      Pull HID patches from Jiri Kosina:
       - RMI driver for Synaptics touchpads, by Benjamin Tissoires, Andrew
         Duggan and Jiri Kosina
       - cleanup of hid-sony driver and improved support for Sixaxis and
         Dualshock 4, by Frank Praznik
       - other usual small fixes and support for new device IDs
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (29 commits)
        HID: thingm: thingm_fwinfo[] doesn't need to be global
        HID: core: add two new usages for digitizer
        HID: hid-sensor-hub: new device id and quirk for STM Sensor hub
        HID: usbhid: enable NO_INIT_REPORTS quirk for Semico USB Keykoard
        HID: hid-sensor-hub: Set report quirk for Microsoft Surface
        HID: debug: add labels for HID Sensor Usages
        HID: uhid: Use kmemdup instead of kmalloc + memcpy
        HID: rmi: do not handle touchscreens through hid-rmi
        HID: quirk for Saitek RAT7 and MMO7 mices' mode button
        HID: core: fix validation of report id 0
        HID: rmi: fix masks for x and w_x data
        HID: rmi: fix wrong struct field name
        HID: rmi: do not fetch more than 16 bytes in a query
        HID: rmi: check for the existence of some optional queries before reading query 12
        HID: i2c-hid: hid report descriptor retrieval changes
        HID: add missing hid usages
        HID: hid-sony - allow 3rd party INTEC controller to turn off all leds
        HID: sony: Add blink support to the Sixaxis and DualShock 4 LEDs
        HID: sony: Initialize the controller LEDs with a device ID value
        HID: sony: Use the controller Bluetooth MAC address as the unique value in the battery name string
        ...
      d6b92c2c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial into next · 1aacb90e
      Linus Torvalds authored
      Pull trivial tree changes from Jiri Kosina:
       "Usual pile of patches from trivial tree that make the world go round"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits)
        staging: go7007: remove reference to CONFIG_KMOD
        aic7xxx: Remove obsolete preprocessor define
        of: dma: doc fixes
        doc: fix incorrect formula to calculate CommitLimit value
        doc: Note need of bc in the kernel build from 3.10 onwards
        mm: Fix printk typo in dmapool.c
        modpost: Fix comment typo "Modules.symvers"
        Kconfig.debug: Grammar s/addition/additional/
        wimax: Spelling s/than/that/, wording s/destinatary/recipient/
        aic7xxx: Spelling s/termnation/termination/
        arm64: mm: Remove superfluous "the" in comment
        of: Spelling s/anonymouns/anonymous/
        dma: imx-sdma: Spelling s/determnine/determine/
        ath10k: Improve grammar in comments
        ath6kl: Spelling s/determnine/determine/
        of: Improve grammar for of_alias_get_id() documentation
        drm/exynos: Spelling s/contro/control/
        radio-bcm2048.c: fix wrong overflow check
        doc: printk-formats: do not mention casts for u64/s64
        doc: spelling error changes
        ...
      1aacb90e
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm into next · b05d59df
      Linus Torvalds authored
      Pull KVM updates from Paolo Bonzini:
       "At over 200 commits, covering almost all supported architectures, this
        was a pretty active cycle for KVM.  Changes include:
      
         - a lot of s390 changes: optimizations, support for migration, GDB
           support and more
      
         - ARM changes are pretty small: support for the PSCI 0.2 hypercall
           interface on both the guest and the host (the latter acked by
           Catalin)
      
         - initial POWER8 and little-endian host support
      
         - support for running u-boot on embedded POWER targets
      
         - pretty large changes to MIPS too, completing the userspace
           interface and improving the handling of virtualized timer hardware
      
         - for x86, a larger set of changes is scheduled for 3.17.  Still, we
           have a few emulator bugfixes and support for running nested
           fully-virtualized Xen guests (para-virtualized Xen guests have
           always worked).  And some optimizations too.
      
        The only missing architecture here is ia64.  It's not a coincidence
        that support for KVM on ia64 is scheduled for removal in 3.17"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (203 commits)
        KVM: add missing cleanup_srcu_struct
        KVM: PPC: Book3S PR: Rework SLB switching code
        KVM: PPC: Book3S PR: Use SLB entry 0
        KVM: PPC: Book3S HV: Fix machine check delivery to guest
        KVM: PPC: Book3S HV: Work around POWER8 performance monitor bugs
        KVM: PPC: Book3S HV: Make sure we don't miss dirty pages
        KVM: PPC: Book3S HV: Fix dirty map for hugepages
        KVM: PPC: Book3S HV: Put huge-page HPTEs in rmap chain for base address
        KVM: PPC: Book3S HV: Fix check for running inside guest in global_invalidates()
        KVM: PPC: Book3S: Move KVM_REG_PPC_WORT to an unused register number
        KVM: PPC: Book3S: Add ONE_REG register names that were missed
        KVM: PPC: Add CAP to indicate hcall fixes
        KVM: PPC: MPIC: Reset IRQ source private members
        KVM: PPC: Graciously fail broken LE hypercalls
        PPC: ePAPR: Fix hypercall on LE guest
        KVM: PPC: BOOK3S: Remove open coded make_dsisr in alignment handler
        KVM: PPC: BOOK3S: Always use the saved DAR value
        PPC: KVM: Make NX bit available with magic page
        KVM: PPC: Disable NX for old magic page using guests
        KVM: PPC: BOOK3S: HV: Add mixed page-size support for guest
        ...
      b05d59df
    • Linus Torvalds's avatar
      Merge tag 'jfs-3.16' of git://github.com/kleikamp/linux-shaggy into next · daf342af
      Linus Torvalds authored
      Pull jfs changes from Dave Kleikamp.
      
      * tag 'jfs-3.16' of git://github.com/kleikamp/linux-shaggy:
        fs/jfs/super.c: convert simple_str to kstr
        fs/jfs/jfs_dmap.c: replace min/casting by min_t
        fs/jfs/super.c: remove 0 assignment to static + code clean-up
        fs/jfs/jfs_logmgr.c: remove NULL assignment on static
        JFS: Check for NULL before calling posix_acl_equiv_mode()
        fs/jfs/jfs_inode.c: atomically set inode->i_flags
      daf342af
    • Linus Torvalds's avatar
      Merge tag 'gfs2-merge-window' of... · ba1bdefe
      Linus Torvalds authored
      Merge tag 'gfs2-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw into next
      
      Pull gfs2 updates from Steven Whitehouse:
       "This must be about the smallest merge window patch set ever for GFS2.
        It is probably also the first one without a single patch from me.
        That is down to a combination of factors, and I have some things in
        the works that are not quite ready yet, that I hope to put in next
        time around.
      
        Returning to what is here this time...  we have 3 patches which fix
        various warnings.  Two are bug fixes (for quotas and also a rare
        recovery race condition).  The final patch, from Ben Marzinski, is an
        important change in the freeze code which has been in progress for
        some time.  This removes the need to take and drop the transaction
        lock for every single transaction, when the only time it was used, was
        at file system freeze time.  Ben's patch integrates the freeze
        operation into the journal flush code as an alternative with lower
        overheads and also lands up resolving some difficult to fix races at
        the same time"
      
      * tag 'gfs2-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw:
        GFS2: Prevent recovery before the local journal is set
        GFS2: fs/gfs2/file.c: kernel-doc warning fixes
        GFS2: fs/gfs2/bmap.c: kernel-doc warning fixes
        GFS2: remove transaction glock
        GFS2: lops.c: replace 0 by NULL for pointers
        GFS2: quotas not being refreshed in gfs2_adjust_quota
      ba1bdefe
    • Linus Torvalds's avatar
      Merge tag 'locks-v3.16' of git://git.samba.org/jlayton/linux into next · 74efa045
      Linus Torvalds authored
      Pull file locking changes from Jeff Layton:
       "Pretty quiet on the file-locking related front this cycle.  Just some
        small cleanups and the addition of some tracepoints in the lease
        handling code"
      
      * tag 'locks-v3.16' of git://git.samba.org/jlayton/linux:
        locks: add some tracepoints in the lease handling code
        fs/locks.c: replace seq_printf by seq_puts
        locks: ensure that fl_owner is always initialized properly in flock and lease codepaths
      74efa045
    • Linus Torvalds's avatar
      Merge tag 'firewire-updates' of... · 1b363609
      Linus Torvalds authored
      Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394 into next
      
      Pull firewire updates from Stefan Richter:
       "IEEE 1394 (FireWire) subsystem changes: One optimization for some VIA
        controllers, one fix, one kconfig brushup"
      
      * tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
        firewire: ohci: enable MSI for VIA VT6315 rev 1, drop cycle timer quirk
        firewire: Use COMPILE_TEST for build testing
        firewire: net: fix NULL derefencing in fwnet_probe()
      1b363609
    • Thomas Gleixner's avatar
      clocksource: versatile: Use sched_clock_register() · 1605abff
      Thomas Gleixner authored
      The newly merged versatile sched clock support uses a deprecated
      interface.  Of course that patch got routed through the ARM tree instead
      of going through the relevant maintainer tree.
      
      Use the proper interface so we can get rid of the cruft.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1605abff
    • Jiri Kosina's avatar
      Merge branches 'for-3.16/i2c-hid', 'for-3.16/rmi4', 'for-3.16/sony' and... · beea3f4a
      Jiri Kosina authored
      Merge branches 'for-3.16/i2c-hid', 'for-3.16/rmi4', 'for-3.16/sony' and 'for-3.16/thingm' into for-linus
      beea3f4a
    • Jiri Kosina's avatar
      Merge branches 'for-3.15/upstream-fixes' and 'for-3.16/upstream' into for-linus · af5666e0
      Jiri Kosina authored
      Conflicts:
      	drivers/hid/hid-sensor-hub.c
      af5666e0
    • Florian Fainelli's avatar
      of: handle NULL node in next_child iterators · 43cb4367
      Florian Fainelli authored
      Add an early check for the node argument in __of_get_next_child and
      of_get_next_available_child() to avoid dereferencing a NULL node pointer
      a few lines after.
      
      CC: Daniel Mack <zonque@gmail.com>
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      43cb4367
    • Arnd Bergmann's avatar
      of/irq: provide more wrappers for !CONFIG_OF · 64c5c759
      Arnd Bergmann authored
      The pci-rcar driver is enabled for compile tests, and this has
      now shown that the driver cannot build without CONFIG_OF,
      following the inclusion of f8f2fe73 "PCI: rcar: Use new OF
      interrupt mapping when possible":
      
      drivers/built-in.o: In function `rcar_pci_map_irq':
      :(.text+0x1cc7c): undefined reference to `of_irq_parse_and_map_pci'
      pci/host/pcie-rcar.c: In function 'pci_dma_range_parser_init':
      pci/host/pcie-rcar.c:875:2: error: implicit declaration of function 'of_n_addr_cells' [-Werror=implicit-function-declaration]
      
      As pointed out by Ben Dooks and Geert Uytterhoeven, this is actually
      supposed to build fine, which we can achieve if we make the
      declaration of of_irq_parse_and_map_pci conditional on CONFIG_OF
      and provide an empty inline function otherwise, as we do for
      a lot of other of interfaces.
      
      This lets us build the rcar_pci driver again without CONFIG_OF
      for build testing. All platforms using this driver select OF,
      so this doesn't change anything for the users.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: devicetree@vger.kernel.org
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Lucas Stach <l.stach@pengutronix.de>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Magnus Damm <damm@opensource.se>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Ben Dooks <ben.dooks@codethink.co.uk>
      Cc: linux-pci@vger.kernel.org
      Cc: linux-sh@vger.kernel.org
      [robh: drop wrappers for of_n_addr_cells and of_n_size_cells which are
      low-level functions that should not be used for !OF]
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      64c5c759