diff options
author | Xiaojun Sang <xsang@codeaurora.org> | 2016-08-30 14:21:57 +0800 |
---|---|---|
committer | Devin Kim <dojip.kim@lge.com> | 2016-11-17 18:59:04 -0800 |
commit | bc2587e848216c9db191027b07fee65895b9d45f (patch) | |
tree | 54166730f6fceb3b928e42f8797ff675cba25f53 | |
parent | 876adf80887c87b6ba2f29f7f4f9d5c1fb743a11 (diff) |
ASoC: soc: change audio drivers to use %pKandroid-wear-6.0.1_r0.108
Change all audio driver to use %pK instead
of %p. %pK hides addresses when the users doesn't
have kernel permissions. If address information
is needed echo 0 > /proc/sys/kernel/kptr_restrict.
Bug: 32983360
CRs-Fixed: 1052832
Change-Id: I9ff5cf06b019c566973eb609bf5d37969b98d31d
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Signed-off-by: Manjunatha Madana <mamanj@codeaurora.org>
-rw-r--r-- | sound/soc/codecs/msm8x16-wcd.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wcd9320.c | 4 | ||||
-rw-r--r-- | sound/soc/codecs/wcd9330.c | 10 | ||||
-rw-r--r-- | sound/soc/codecs/wcd9xxx-mbhc.c | 6 | ||||
-rw-r--r-- | sound/soc/codecs/wcd_cpe_core.c | 2 | ||||
-rw-r--r-- | sound/soc/msm/msm-cpe-lsm.c | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/sound/soc/codecs/msm8x16-wcd.c b/sound/soc/codecs/msm8x16-wcd.c index b3311ec05af7..fa3aab630ed1 100644 --- a/sound/soc/codecs/msm8x16-wcd.c +++ b/sound/soc/codecs/msm8x16-wcd.c @@ -3653,7 +3653,7 @@ static int msm8x16_wcd_spmi_probe(struct spmi_device *spmi) } - dev_dbg(&spmi->dev, "%s(%d):start addr = 0x%pa\n", + dev_dbg(&spmi->dev, "%s(%d):start addr = 0x%pK\n", __func__, __LINE__, &wcd_resource->start); if (wcd_resource->start != TOMBAK_CORE_0_SPMI_ADDR) diff --git a/sound/soc/codecs/wcd9320.c b/sound/soc/codecs/wcd9320.c index 8d339a195941..2472790721b3 100644 --- a/sound/soc/codecs/wcd9320.c +++ b/sound/soc/codecs/wcd9320.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2014, 2016 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -4659,7 +4659,7 @@ static int taiko_set_channel_map(struct snd_soc_dai *dai, struct taiko_priv *taiko = snd_soc_codec_get_drvdata(dai->codec); struct wcd9xxx *core = dev_get_drvdata(dai->codec->dev->parent); if (!tx_slot || !rx_slot) { - pr_err("%s: Invalid tx_slot=%p, rx_slot=%p\n", __func__, + pr_err("%s: Invalid tx_slot=%pK, rx_slot=%pK\n", __func__, tx_slot, rx_slot); return -EINVAL; } diff --git a/sound/soc/codecs/wcd9330.c b/sound/soc/codecs/wcd9330.c index ec0163ffef32..4f82dfb842c1 100644 --- a/sound/soc/codecs/wcd9330.c +++ b/sound/soc/codecs/wcd9330.c @@ -4848,7 +4848,7 @@ static int tomtom_set_channel_map(struct snd_soc_dai *dai, struct tomtom_priv *tomtom = snd_soc_codec_get_drvdata(dai->codec); struct wcd9xxx *core = dev_get_drvdata(dai->codec->dev->parent); if (!tx_slot || !rx_slot) { - pr_err("%s: Invalid tx_slot=%p, rx_slot=%p\n", + pr_err("%s: Invalid tx_slot=%pK, rx_slot=%pK\n", __func__, tx_slot, rx_slot); return -EINVAL; } @@ -4886,7 +4886,7 @@ static int tomtom_get_channel_map(struct snd_soc_dai *dai, case AIF2_PB: case AIF3_PB: if (!rx_slot || !rx_num) { - pr_err("%s: Invalid rx_slot %p or rx_num %p\n", + pr_err("%s: Invalid rx_slot %pK or rx_num %pK\n", __func__, rx_slot, rx_num); return -EINVAL; } @@ -4905,7 +4905,7 @@ static int tomtom_get_channel_map(struct snd_soc_dai *dai, case AIF4_VIFEED: case AIF4_MAD_TX: if (!tx_slot || !tx_num) { - pr_err("%s: Invalid tx_slot %p or tx_num %p\n", + pr_err("%s: Invalid tx_slot %pK or tx_num %pK\n", __func__, tx_slot, tx_num); return -EINVAL; } @@ -7373,7 +7373,7 @@ static void tomtom_compute_impedance(struct wcd9xxx_mbhc *mbhc, s16 *l, s16 *r, struct tomtom_priv *tomtom; if (!l || !r || !zl || !zr || !mbhc) { - pr_err("%s: Invalid parameters l = %p, r = %p zl = %p zr = %p, mbhc = %p\n", + pr_err("%s: Invalid parameters l = %pK, r = %pK zl = %pK zr = %pK, mbhc = %pK\n", __func__, l, r, zl, zr, mbhc); return; } @@ -7429,7 +7429,7 @@ static void tomtom_zdet_error_approx(struct wcd9xxx_mbhc *mbhc, uint32_t *zl, const int shift = TOMTOM_ZDET_ERROR_APPROX_SHIFT; if (!zl || !zr || !mbhc) { - pr_err("%s: Invalid parameters zl = %p zr = %p, mbhc = %p\n", + pr_err("%s: Invalid parameters zl = %pK zr = %pK, mbhc = %pK\n", __func__, zl, zr, mbhc); return; } diff --git a/sound/soc/codecs/wcd9xxx-mbhc.c b/sound/soc/codecs/wcd9xxx-mbhc.c index dafb77a67311..7964dabd89f4 100644 --- a/sound/soc/codecs/wcd9xxx-mbhc.c +++ b/sound/soc/codecs/wcd9xxx-mbhc.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2014, 2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -4474,7 +4474,7 @@ int wcd9xxx_mbhc_start(struct wcd9xxx_mbhc *mbhc, schedule_delayed_work(&mbhc->mbhc_firmware_dwork, usecs_to_jiffies(FW_READ_TIMEOUT)); else - pr_debug("%s: Skipping to read mbhc fw, 0x%p\n", + pr_debug("%s: Skipping to read mbhc fw, 0x%pK\n", __func__, mbhc->mbhc_fw); } @@ -4941,7 +4941,7 @@ static int wcd9xxx_remeasure_l_r_z_value(struct wcd9xxx_mbhc *mbhc, bool left, reg_array_size = ARRAY_SIZE(reg_set_mux_right); } else { dev_err(codec->dev, - "%s: Invalid parameters, left = %d, l = %p, right = %d, r = %p\n", + "%s: Invalid parameters, left = %d, l = %pK, right = %d, r = %pK\n", __func__, left, l, right, r); return -EINVAL; } diff --git a/sound/soc/codecs/wcd_cpe_core.c b/sound/soc/codecs/wcd_cpe_core.c index 99f59161f7d4..9a614ef9f593 100644 --- a/sound/soc/codecs/wcd_cpe_core.c +++ b/sound/soc/codecs/wcd_cpe_core.c @@ -292,7 +292,7 @@ static int wcd_cpe_load_fw(struct wcd_cpe_core *core) bool img_dload_fail = false; if (!core || !core->cpe_handle) { - pr_err("%s: Error CPE core %p\n", __func__, + pr_err("%s: Error CPE core %pK\n", __func__, core); return -EINVAL; } diff --git a/sound/soc/msm/msm-cpe-lsm.c b/sound/soc/msm/msm-cpe-lsm.c index 7b438d0f366a..b5a1e4cf0b02 100644 --- a/sound/soc/msm/msm-cpe-lsm.c +++ b/sound/soc/msm/msm-cpe-lsm.c @@ -1053,7 +1053,7 @@ static int msm_cpe_lsm_copy(struct snd_pcm_substream *substream, int a, if (lab_s->buf_idx >= (lab_s->hw_params.period_count)) lab_s->buf_idx = 0; pcm_buf = (lab_s->pcm_buf[lab_s->buf_idx].mem); - pr_debug("%s: Buf IDX = 0x%x pcm_buf %pa\n", + pr_debug("%s: Buf IDX = 0x%x pcm_buf %pK\n", __func__, lab_s->buf_idx, &(lab_s->pcm_buf[lab_s->buf_idx])); |