GCC 4.9.1: fix compile warnings

Conflicts:
	drivers/power/qpnp-bms.c

Change-Id: I0e8131dae0d7462f4cf11bb0e5bd85d6bcd22f41
cpufreq: interactive: fix compiling warnings

The gcc warns like:

  cpufreq_interactive.c:745:6: warning: operation on 'ret' may be
undefined [-Wsequence-point]

It was introduced by commit cf0fad49d17cb8273ce555dd5b7afab67d7923bf.

Since sprintf(...) just return 1 (one character) in this case, ret
should not changed.
Just discarding the result of sprintf(...) leads to the result that
the committer of cf0fad49d17cb8273ce555dd5b7afab67d7923bf wants.

Change-Id: Ifed1cef6d6a31c3ed23dad03a567b3b9eddf3a57
Signed-off-by: Chih-Wei Huang <cwhuang@android-x86.org>
Signed-off-by: Dave Daynard <nardholio@gmail.com>
Fix sizeof-pointer-memaccess warning with gcc 4.8

This patch fixes wrong memcpy size when copying ltk value to
HCI_OP_LE_LTK_REPLY command.

Change-Id: I44e5e3da15369d4b424581720ccd3bac820ef2e0
ARM: 7743/1: compressed/head.S: work around new binutils warning

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: stable@vger.kernel.org
Cc: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[ccross: cherry-picked to 3.4]
Change-Id: If1c4c1a9f3f721a45d9833f2a36f1b7ce58c5e9a
Signed-off-by: Colin Cross <ccross@android.com>
CwMcuSensor: clean up

* OMG this driver is gross...clean up whitespace
* Tidy up the sensor handling, we only want tap to wake at this point
  as gestures are useless without userspace handling

Change-Id: I163fb3c209d5025effb417852ce8d7de8001a7f7
CwMcuSensor: increase vibe time

* gives a little more indication to the user that it the gesture
  was received

Change-Id: Ifbe5ed412ab9f62844de4e8ce9ae2c0c4ea976e9
net: guard tcp_set_keepalive() to tcp sockets

Its possible to use RAW sockets to get a crash in
tcp_set_keepalive() / sk_reset_timer()

Fix is to make sure socket is a SOCK_STREAM one.

Change-Id: Ieeb498a3e623cfcb54e1c865a3c0229e4acf1e87
Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
CwMcuSensor: reset sensor gpio after gesture

Change-Id: I0f8d6d6c92115f58c21db000467cd33fcf70db8b
drivers: cm3629: Update CM3629 sensor driver

* HTC kernel package memul-3.4.0-gf8f27cb

Change-Id: I87fa708a69c06df243b1745f02bed3cd8d262ac6
usb: otg: Update HTC OTG stack

* HTC kernel package memul-3.4.0-g3ea4692

Change-Id: If6da0b10786da9920b17dea88887b4ab8c537b8d
msm: HTC: Add 8226 specific bits

* HTC kernel package memul-3.4.0-g3ea4692

Change-Id: I1d177f95f0878835429d1c04e673250146ececa4
msm: HTC: Import Desire 816 board files
drivers: leds: Update TPS61310 flashlight driver

* HTC kernel package memul-3.4.0-gf8f27cb

Change-Id: Ia77b3d4a503b14492648af17184593b81824a6af
drivers: tfa9887: Update TFA9887 AMP driver

* HTC kernel package memul-3.4.0-ga072f6c

Change-Id: I26f92fb9243e25d21f8952936db42969cf7e13e0
msm: HTC: Import One Mini 2 board files
ARM: dts: msm: Tune SMP block restriction for 8x26

To maximize availability of pipes for both 1080p and 1200p based
8x26 targets, reduce SMP block restriction from 4 to 3.

Change-Id: Ibb5a9d0016ea0d44b152d9c74d9f3a5cbd2acbd3
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
ASoC: msm: Allow DOLBY_DAP to be selected on MSM8226

Change-Id: Ib85d17d76ce39e8e405aa9cf1dd0dc225c183f05
drivers: touchscreen: Update Himax 825xD touchscreen driver

* HTC kernel package memul-3.4.0-gf8f27cb

Change-Id: Ib9a9f34ffc1cea576f508837582f1107c96b908f
msm: HTC: add LPM attribute module
a5: clean up and update DTS file

* HTC package version: a5ul-3.4.0-gfcd98b7

Change-Id: Ief4c12f47b81764126ad203133b0a5349744aa62