From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DB29C54791 for ; Wed, 13 Mar 2024 14:52:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B82AC80033; Wed, 13 Mar 2024 10:52:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B39F6940010; Wed, 13 Mar 2024 10:52:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D39E80033; Wed, 13 Mar 2024 10:52:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 867C8940010 for ; Wed, 13 Mar 2024 10:52:57 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5282DA15E5 for ; Wed, 13 Mar 2024 14:52:57 +0000 (UTC) X-FDA: 81892307994.02.F879BA6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf06.hostedemail.com (Postfix) with ESMTP id 84849180003 for ; Wed, 13 Mar 2024 14:52:55 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jkttZD5k; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710341575; a=rsa-sha256; cv=none; b=hiph/STUwhSHDakXDf3ZruHABKm40yOvul8RqX8ZnoEYAAsVHVLT8c21D+EBQz0Xerw9wg Ouq3Ji9N+nPqNh1YY/oZi9aY/a8GxqO4a/s7JvqXu8CCdS7Xt55jibYyib6Tjcc6QoAKAq G51hO5rbO3qIrqIFL2Twitc6gfsdzyI= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jkttZD5k; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710341575; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=K3N5VVXSAcQr+wiIK30MyL8r+RWKVF1WUAh4ECPffrw=; b=mIDI/rVL9fAHfLpMzI2yFfWbudxwIFjKE3vHJPQh1ckgvkM9cG/7Uds11NU4lSnOTaSueu mD9uVFDmWfCd2K05B5htTVA7+uOHXha7rwE9ZSHzcTC8/vsSxtIrXQcll1b5P5Kc+lHxWp TbhSCc6LgZXMasTto70KniAZaQWfChY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710341576; x=1741877576; h=date:from:to:cc:subject:message-id:mime-version; bh=VAbsEIw9P7uaafXLbUWjb1lbghGCAug0NPZc8Unb0qc=; b=jkttZD5kw+JKhiD3IdOqIFio+nim5oQiFoannRPaAzYUTykXn6uSdJU7 Cj3FEKWZsPJABZVLLGiH0NVYybFvntuJXCmi60HXyNT/CVT0yRh5EhEqm cWJXkNfz1DtAISti2gioYOmQy5IY7gOCkfVVeoG/7YUYaOWgc+O9b8FJh 6j5vux+O010M1xNWPTrNh0GnUBdWDpPYzPw+xmJ0mPMfMiURJnCC4A5wK zbbMPuHDdGZb4qZANictjkglMW4wk4vJHfA7s6tQfEyIPS8zB3kKoTgmt 88BBGE4oBEYQcw+Gwa7ltvp3UlTK7VNE8eaVonrBm/x0icuXkoGdzKZSl A==; X-IronPort-AV: E=McAfee;i="6600,9927,11011"; a="8052361" X-IronPort-AV: E=Sophos;i="6.07,122,1708416000"; d="scan'208";a="8052361" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 07:52:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,122,1708416000"; d="scan'208";a="16523659" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 13 Mar 2024 07:52:52 -0700 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rkPyL-000CT5-2g; Wed, 13 Mar 2024 14:52:49 +0000 Date: Wed, 13 Mar 2024 22:51:54 +0800 From: kernel test robot To: Johan Carlsson Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Takashi Iwai Subject: [linux-next:master 13138/13397] sound/usb/stream.c:306:34: error: 'chmaps' undeclared; did you mean 'chmap'? Message-ID: <202403132230.Ituid5qw-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 84849180003 X-Stat-Signature: ey8dm4ococ64qytgu645cjqaqnqznyry X-Rspam-User: X-HE-Tag: 1710341575-660149 X-HE-Meta: U2FsdGVkX194/OvBdZx2XJM02IdiBgXJ/WCtcs8M/ckuhhK6dKfUEmL5yhYxPwC86fkBSfXNKxsqvCt1I6wmjjDx7lRGi//TJ+a+Qjfj+meRDZ20A2ZJycPefw8hPualQgrOyAsz02MMtMqGvZqcMvf2lL8p5uOJeY8TTV9AlFrTS3HxahasPV78ktXyS1nXVbMiiWB0CWKp8ssP9ySoDFsXWU4kG0H1PK0jDxOVaSybr3pYcG56BrCYbmyLWcmJNofi2DeOdI/mvEqn+JEG6EXvFeaREePh1WF8aps8rGS5ltNdPTR887eibWHx80Ra6X8A4xOXQdaqVz/i2x9LPEQAG0QOdXTAVWpt1INvqwwOKa6e6lNv77Zyom0D+WKOFnEANix6Sqpd/LVmfoAOklI+Bqhcuz1IFDiENYcC/4TlO+FcFLvY1tzHwa5PkvUFVL8F6fX1GyfMu4ysGhexSzb+yato/To5QWIFPdrscotsVmeLE1jCHM7owekkI+ObQsGmKVl+h5xhuLd/RLQt0ZY2s7r11bMd3hHSfaNwYtqDw0Be6EwlIH8miRKir1eN7q5jAtllNeEhLOM4pxri/m8Dm978ZrOoYKBJL/k3BwjceHZUQUQS3W3TRIpLSECd1mb94LLfBbtOV8W6c3/sJbeJnq8+XFEkOuuOpq/jr1kjVq1OcpBiv0mEF8RiMDfSPZvnjOD09RyR9Vwjg05v5MPc5it+88l/euz34+jI6i+6A5Ytx6n/2WMlieRzSQlk9IzOmsOelnEv9pKs5E0xrkGIwiFEi+CHlCAZWvJ5CAfuyIa6ex1aMPIWdfvNrLaPgNgUtyPgtT6x+jhRvZJEoJrsV1F8RZ/JRfWNWodHaZk1r8NAdpkh3CPmAoIQZb9j/mNthkdZVJM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: dad309222e4c3fc7f88b20ce725ce1e0eea07cc7 commit: a94566ace3ca789747cd4cb26dd59474d135c7ac [13138/13397] ALSA: usb-audio: Stop parsing channels bits when all channels are found. config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20240313/202403132230.Ituid5qw-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240313/202403132230.Ituid5qw-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202403132230.Ituid5qw-lkp@intel.com/ Note: the linux-next/master HEAD dad309222e4c3fc7f88b20ce725ce1e0eea07cc7 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): sound/usb/stream.c: In function 'convert_chmap': >> sound/usb/stream.c:306:34: error: 'chmaps' undeclared (first use in this function); did you mean 'chmap'? 306 | if (c == chmaps->channels) | ^~~~~~ | chmap sound/usb/stream.c:306:34: note: each undeclared identifier is reported only once for each function it appears in vim +306 sound/usb/stream.c 237 238 /* convert from USB ChannelConfig bits to ALSA chmap element */ 239 static struct snd_pcm_chmap_elem *convert_chmap(int channels, unsigned int bits, 240 int protocol) 241 { 242 static const unsigned int uac1_maps[] = { 243 SNDRV_CHMAP_FL, /* left front */ 244 SNDRV_CHMAP_FR, /* right front */ 245 SNDRV_CHMAP_FC, /* center front */ 246 SNDRV_CHMAP_LFE, /* LFE */ 247 SNDRV_CHMAP_SL, /* left surround */ 248 SNDRV_CHMAP_SR, /* right surround */ 249 SNDRV_CHMAP_FLC, /* left of center */ 250 SNDRV_CHMAP_FRC, /* right of center */ 251 SNDRV_CHMAP_RC, /* surround */ 252 SNDRV_CHMAP_SL, /* side left */ 253 SNDRV_CHMAP_SR, /* side right */ 254 SNDRV_CHMAP_TC, /* top */ 255 0 /* terminator */ 256 }; 257 static const unsigned int uac2_maps[] = { 258 SNDRV_CHMAP_FL, /* front left */ 259 SNDRV_CHMAP_FR, /* front right */ 260 SNDRV_CHMAP_FC, /* front center */ 261 SNDRV_CHMAP_LFE, /* LFE */ 262 SNDRV_CHMAP_RL, /* back left */ 263 SNDRV_CHMAP_RR, /* back right */ 264 SNDRV_CHMAP_FLC, /* front left of center */ 265 SNDRV_CHMAP_FRC, /* front right of center */ 266 SNDRV_CHMAP_RC, /* back center */ 267 SNDRV_CHMAP_SL, /* side left */ 268 SNDRV_CHMAP_SR, /* side right */ 269 SNDRV_CHMAP_TC, /* top center */ 270 SNDRV_CHMAP_TFL, /* top front left */ 271 SNDRV_CHMAP_TFC, /* top front center */ 272 SNDRV_CHMAP_TFR, /* top front right */ 273 SNDRV_CHMAP_TRL, /* top back left */ 274 SNDRV_CHMAP_TRC, /* top back center */ 275 SNDRV_CHMAP_TRR, /* top back right */ 276 SNDRV_CHMAP_TFLC, /* top front left of center */ 277 SNDRV_CHMAP_TFRC, /* top front right of center */ 278 SNDRV_CHMAP_LLFE, /* left LFE */ 279 SNDRV_CHMAP_RLFE, /* right LFE */ 280 SNDRV_CHMAP_TSL, /* top side left */ 281 SNDRV_CHMAP_TSR, /* top side right */ 282 SNDRV_CHMAP_BC, /* bottom center */ 283 SNDRV_CHMAP_RLC, /* back left of center */ 284 SNDRV_CHMAP_RRC, /* back right of center */ 285 0 /* terminator */ 286 }; 287 struct snd_pcm_chmap_elem *chmap; 288 const unsigned int *maps; 289 int c; 290 291 if (channels > ARRAY_SIZE(chmap->map)) 292 return NULL; 293 294 chmap = kzalloc(sizeof(*chmap), GFP_KERNEL); 295 if (!chmap) 296 return NULL; 297 298 maps = protocol == UAC_VERSION_2 ? uac2_maps : uac1_maps; 299 chmap->channels = channels; 300 c = 0; 301 302 if (bits) { 303 for (; bits && *maps; maps++, bits >>= 1) { 304 if (bits & 1) 305 chmap->map[c++] = *maps; > 306 if (c == chmaps->channels) 307 break; 308 } 309 } else { 310 /* If we're missing wChannelConfig, then guess something 311 to make sure the channel map is not skipped entirely */ 312 if (channels == 1) 313 chmap->map[c++] = SNDRV_CHMAP_MONO; 314 else 315 for (; c < channels && *maps; maps++) 316 chmap->map[c++] = *maps; 317 } 318 319 for (; c < channels; c++) 320 chmap->map[c] = SNDRV_CHMAP_UNKNOWN; 321 322 return chmap; 323 } 324 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki