fs: aio.c: Update to Linux 3.13-rc1

Signed-off-by: Amperific <amperific@gmail.com>
ARM: 7743/1: compressed/head.S: work around new binutils warning

3.5.7.15 -stable review patch.  If anyone has any objections, please let me know.

------------------

From: Arnd Bergmann <arnd@arndb.de>

commit da94a829305f1c217cfdf6771cb1faca0917e3b9 upstream.

In August 2012, Matthew Gretton-Dann checked a change into binutils
labelled "Error on obsolete & warn on deprecated registers", apparently as
part of ARMv8 support. Apparently, this was supposed to emit the message
"Warning: This coprocessor register access is deprecated in ARMv8" when
using certain mcr/mrc instructions and building for ARMv8. Unfortunately,
the message that is actually emitted appears to be '(null)', which is
less helpful in comparison.

Even more unfortunately, this is biting us on every single kernel
build with a new gas, because arch/arm/boot/compressed/head.S and some
other files in that directory are built with -march=all since kernel
commit 80cec14a8 "[ARM] Add -march=all to assembly file build in
arch/arm/boot/compressed" back in v2.6.28.

This patch reverts Russell's nice solution and instead marks the head.S
file to be built for armv7-a, which fortunately lets us build all
instructions in that file without warnings even on the broken binutils.

Without this patch, building anything results in:

arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:565: Warning: (null)
arch/arm/boot/compressed/head.S:676: Warning: (null)
arch/arm/boot/compressed/head.S:698: Warning: (null)
arch/arm/boot/compressed/head.S:722: Warning: (null)
arch/arm/boot/compressed/head.S:726: Warning: (null)
arch/arm/boot/compressed/head.S:957: Warning: (null)
arch/arm/boot/compressed/head.S:996: Warning: (null)
arch/arm/boot/compressed/head.S:997: Warning: (null)
arch/arm/boot/compressed/head.S:1027: Warning: (null)
arch/arm/boot/compressed/head.S:1035: Warning: (null)
arch/arm/boot/compressed/head.S:1046: Warning: (null)
arch/arm/boot/compressed/head.S:1060: Warning: (null)
arch/arm/boot/compressed/head.S:1092: Warning: (null)
arch/arm/boot/compressed/head.S:1094: Warning: (null)
arch/arm/boot/compressed/head.S:1095: Warning: (null)
arch/arm/boot/compressed/head.S:1102: Warning: (null)
arch/arm/boot/compressed/head.S:1134: Warning: (null)

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[ luis: backport to 3.5:
  - adjusted asflags-y in Makefile ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
fixed DVFS_LOCK_TOKEN for gpu driver
disabled coresight
Revert "fixed DVFS_LOCK_TOKEN for gpu driver"

This reverts commit 725aa6bed16dd49c66c43bdd00d31d003dd569d4.
drivers: misc: update fsa9480 i2c driver power management

Actually this driver is using a legacy power management.
So, let's update it.

<4>[    2.576457] i2c-core: driver [fsa9480] using legacy suspend method
<4>[    2.576647] i2c-core: driver [fsa9480] using legacy resume method

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ic15a453e38ae37788a5b4bfe57b8f0440f28206a
drivers: input: misc: bma023: set correct ioctl pointer

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ic2da59494e311bbeb56ace70d9c5b01517168752
drivers: input: misc: bma023: fix gcc warnings

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ie0f47e7291eac3e336600c8cb9682a6fa1b14030
drivers: input: misc: yas529: update power management

<4>[    4.705498] i2c-core: driver [yas529] using legacy suspend method
<4>[    4.705695] i2c-core: driver [yas529] using legacy resume method

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I0453e913542a97292ccb6e625f4c9f446a364ea3
drivers: media: radio: si4709: set correct ioctl pointer

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ibe86aab415e21d6f1d458904e9c1c36dcafaa443
drivers: media: radio: si4709: update power management

<4>[    4.722171] i2c-core: driver [Si4709] using legacy suspend method
<4>[    4.722351] i2c-core: driver [Si4709] using legacy resume method

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I5e4a92bed7bb53f351985b9ef6c97ff7967e6de3
drivers: media: video: samsung: tv20: update ddc power management

<4>[    4.715451] i2c-core: driver [s5p_ddc] using legacy suspend method
<4>[    4.715643] i2c-core: driver [s5p_ddc] using legacy resume method

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ib9ddcef3f51ce7de6ff16431c3a445c2f7a8d543
Staging: android: binder: Fix crashes when sharing a binder file between processes

Opening the binder driver and sharing the file returned with
other processes (e.g. by calling fork) can crash the kernel.
Prevent these crashes with the following changes:
- Add a mutex to protect against two processes mmapping the
  same binder_proc.
- After locking mmap_sem, check that the vma we want to access
  (still) points to the same mm_struct.
- Use proc->tsk instead of current to get the files struct since
  this is where we get the rlimit from.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Staging:android: Change type for binder_debug_no_lock switch to bool

GCC warns that module_param_named() indirectly returns a bool type value
which is different from 'int' type binder_debug_no_lock declared. Change
it to bool because it is a internal switch for debugging.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Staging: android: binder: Fix use-after-free bug

binder_update_page_range could read freed memory if the vma of the
selected process was freed right before the check that the vma
belongs to the mm struct it just locked.

If the vm_mm pointer in that freed vma struct had also been rewritten
with a value that matched the locked mm struct, then the code would
proceed and possibly modify the freed vma.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers: staging: android: binder.c: fix printk macros

Change printk() messages to pr_* macros.

Signed-off-by: Sherwin Soltani <sherwin@wybc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Staging: android: binder: Make task_get_unused_fd_flags function static

Silence the following warning:
drivers/staging/android/binder.c:368:5: warning:
symbol 'task_get_unused_fd_flags' was not declared. Should it be static?

Cc: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
ping: prevent NULL pointer dereference on write to msg_name

A plain read() on a socket does set msg->msg_name to NULL. So check for
NULL pointer first.

[Backport of net-next cf970c002d270c36202bd5b9c2804d3097a52da0]

Bug: 12780426
Change-Id: I29d9cb95ef05ec76d37517e01317f4a29e60931c
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
include/linux/highmem.h: remove the second argument of k[un]map_atomic()

Signed-off-by: Cong Wang <amwang@redhat.com>
arm: remove the second argument of k[un]map_atomic()

Signed-off-by: Cong Wang <amwang@redhat.com>