From nobody Fri Apr 3 03:02:32 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EF3A279329; Wed, 25 Mar 2026 02:28:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774405697; cv=none; b=Z2WSHI7n/bWVxKymgq4EY3OJyUez3BDLEQTE+GY46UPHN056In+9aVMmr9MDXZdDk+ypc7L6EYuAjJitWInzkefwRp/EKEOgsY9EvHNPWV7OxvDztL1HcRVckUXLUIFnOGjsjeBM1QOKtUEjfaLFjOmy26rSlWWfBQjug/M7/N0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774405697; c=relaxed/simple; bh=X3UaCLEIWTBFYtFkmOkCX5zIBt57E4WCoZ7CvGVLmjU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IDIWUglbV+/nX/jS0Yhb0v0X0rbov4Vsc5U0TT4eKade9G0RDsioWnNulbfAxBxUHR8xazN05E0wKJaI5wwE71BXWpPEF1S/b5dAIlaFkvxYnJLeey7Op01tnEdQvliYblMkKnOXzE6Hk9dpr4LwqwF869s+hmLSswk4pXYrlxo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 4311b37c27f211f1a21c59e7364eecb8-20260325 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.11,REQID:228b2906-bf44-4bc2-a4f3-ec98362880a2,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:89c9d04,CLOUDID:48d5c763bac5c9f040fdbb7461d94733,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:81|82|102|850|898,TC:nil,Content:0|15|50 ,EDM:-3,IP:nil,URL:99|1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI: 0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 4311b37c27f211f1a21c59e7364eecb8-20260325 X-User: songxiebing@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 924974107; Wed, 25 Mar 2026 10:28:08 +0800 From: songxiebing To: tiwai@suse.com, broonie@kernel.org, perex@perex.cz Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, songxiebing@kylinos.cn, kernel test robot Subject: [PATCH v2] ASoC: renesas: Fix non-static global variable Date: Wed, 25 Mar 2026 10:28:04 +0800 Message-Id: <20260325022804.253353-1-songxiebing@kylinos.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260323014108.118094-1-songxiebing@kylinos.cn> References: <20260323014108.118094-1-songxiebing@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When using global variables in a .c file only,it is necessary to add the keyword "static", so here fix the warning. sparse warnings: (new ones prefixed by >>) >> sound/soc/renesas/dma-sh7760.c:62:3: sparse: sparse: symbol 'cam_pcm_data' was not declared. Should it be static? Signed-off-by: songxiebing Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202412171210.7a4vH3Ew-lkp@int= el.com/ --- v2: - Modify title description --- sound/soc/renesas/dma-sh7760.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/renesas/dma-sh7760.c b/sound/soc/renesas/dma-sh7760.c index c53539482c20..c96907e708ee 100644 --- a/sound/soc/renesas/dma-sh7760.c +++ b/sound/soc/renesas/dma-sh7760.c @@ -58,8 +58,9 @@ struct camelot_pcm { struct snd_pcm_substream *rx_ss; unsigned long rx_period_size; unsigned int rx_period; +}; =20 -} cam_pcm_data[2] =3D { +static struct camelot_pcm cam_pcm_data[2] =3D { { .mmio =3D 0xFE3C0040, .txid =3D DMABRGIRQ_A0TXF, --=20 2.25.1