Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Neo Chang <YLCHANG2@nuvoton.com>
To: <broonie@kernel.org>, <lgirdwood@gmail.com>,
	<linux-sound@vger.kernel.org>
Cc: <perex@perex.cz>, <krzysztof.kozlowski@oss.qualcomm.com>,
	<linux-kernel@vger.kernel.org>, <alsa-devel@alsa-project.org>,
	<lkp@intel.com>, <neo.chang70@gmail.com>, <kchsu0@nuvoton.com>,
	Neo Chang <YLCHANG2@nuvoton.com>
Subject: [PATCH 1/2] ASoC: codecs: nau8360: Fix static declarations and endianness
Date: Thu, 3 Sep 2026 11:38:44 +0800	[thread overview]
Message-ID: <20260903033845.76540-1-YLCHANG2@nuvoton.com> (raw)

Fix warnings reported by the kernel test robot:
1. Make the 'nau8360_dsp_addr' array static to resolve namespace pollution.
2. Change the variable type to '__be16' to fix the incorrect type.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202609021121.a4mHPAyZ-lkp@intel.com/
Signed-off-by: Neo Chang <YLCHANG2@nuvoton.com>
---
 sound/soc/codecs/nau8360-dsp.c | 2 +-
 sound/soc/codecs/nau8360.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/nau8360-dsp.c b/sound/soc/codecs/nau8360-dsp.c
index 2d6bc2962229..41afccbea2c0 100644
--- a/sound/soc/codecs/nau8360-dsp.c
+++ b/sound/soc/codecs/nau8360-dsp.c
@@ -20,7 +20,7 @@
 #include "nau8360.h"
 
 #define NAU8360_DSP_IDLE_RETRY 10
-const unsigned short nau8360_dsp_addr[NAU8360_DSP_FW_NUM] = {
+static const unsigned short nau8360_dsp_addr[NAU8360_DSP_FW_NUM] = {
 	NAU8360_RF000_DSP_COMM, NAU8360_RF002_DSP_COMM };
 
 static int nau8360_dsp_chan_kcs_setup(struct snd_soc_component *cp,
diff --git a/sound/soc/codecs/nau8360.c b/sound/soc/codecs/nau8360.c
index d7af2dffb749..802806d92fc4 100644
--- a/sound/soc/codecs/nau8360.c
+++ b/sound/soc/codecs/nau8360.c
@@ -409,7 +409,7 @@ static int nau8360_peq_coeff_get(struct snd_kcontrol *kcontrol,
 	struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
 	struct soc_bytes_ext *params = (void *)kcontrol->private_value;
 	int i, value, reg, ret = 0;
-	u16 *val = (u16 *)ucontrol->value.bytes.data;
+	__be16 *val = (__be16 *)ucontrol->value.bytes.data;
 
 	/* Use the DAPM lock to prevent race conditions during DAPM power-up
 	 * state transitions, and check component active status to prohibit
-- 
2.25.1


             reply	other threads:[~2026-09-03  3:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03  3:38 Neo Chang [this message]
2026-09-03  3:38 ` [PATCH 2/2] ASoC: codecs: nau8360: Fix kernel-doc issues Neo Chang
2026-09-03 20:46 ` [PATCH 1/2] ASoC: codecs: nau8360: Fix static declarations and endianness Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260903033845.76540-1-YLCHANG2@nuvoton.com \
    --to=ylchang2@nuvoton.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=kchsu0@nuvoton.com \
    --cc=krzysztof.kozlowski@oss.qualcomm.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=neo.chang70@gmail.com \
    --cc=perex@perex.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox