Add a common stub config for rhine

* Add stubs CONFIG_MACH_RHINE and
  selected if any of their devices are selected.

Change-Id: I315a9599c8430da18a70ac2154798e5f30089525
ignore arch/arm/mach-msm/smd_rpc_sym.c
persistent_ram: Fix buffer size clamping during writes

commit 484dd30e016eb425b0de871357fff2c9bb93be45 upstream.

This is a longstanding bug, almost unnoticeable when calling
persistent_ram_write() for small buffers.

But when called for large data buffers, the write routine behaves
incorrectly, as the size may never update: instead of clamping
the size to the maximum buffer size, buffer_size_add_clamp() returns
an error (which is never checked by the write routine, btw).

To fix this, we now use buffer_size_add() that actually clamps the
size to the max value.

Also remove buffer_size_add_clamp(), it is no longer needed.

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Colin Cross <ccross@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Revert "staging: android: ram_console: honor dmesg_restrict"

This reverts commit dd09979346813357200adf71b07003fc0a778089.
board: add sirius (XZ2)

patch created from 17.1.F.0.60 release

TODO: move rhine ifdef on clock-8974.c to rhine platform patch
Add a common stub config for shinano

* Add stubs CONFIG_MACH_SHINANO,
  selected if any of their devices are selected.
* Much cleaner ifdefs in {clock,board}-8974.c now.

Change-Id: I315a9599c8430da18a70ac2154798e5f30089525
update power supply and chrg driver

from 17.1.F.0.60 release
implement ramdump_tags and last_kmsg
ASoC: replace sirius ifdefs with shinano

Change-Id: I81e358b6706e1344de98272374b76a889f9879e2
update mmc driver

from 17.1.F.0.60 release
Merge pull request #5 from Kali-/aosp/LNX.LA.3.5.1-01110-8x74.0

sirius merge, display still need to be fixed