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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92FA5C61CE8 for ; Mon, 9 Jun 2025 22:53:55 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E7B33601F9; Tue, 10 Jun 2025 00:53:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E7B33601F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1749509632; bh=dtqVLHodWd2MyMx4kp2rSNOmUMwd734aSgLfp3td8EE=; h=Date:From:To:Cc:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=h/l+vN+JpMbNJQCyip+FR3errURK/qnyfnXIVma3Qh2oxLTjfwiZ0LFXUnEpXOXUP ZAorTekKqNKXkCY1/Vci0G9dMCqJ/oqCTzyr45NHIgu/lPnUaNV/UUETtZOBDEertt vR5cV9uUCcVtg4zOFHTn4KDDice0eQbvOR8McYsA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B1A8BF805C8; Tue, 10 Jun 2025 00:53:16 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8E7C4F8025F; Tue, 10 Jun 2025 00:53:16 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B50CDF804B2; Tue, 10 Jun 2025 00:53:13 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 41C13F801F7 for ; Tue, 10 Jun 2025 00:53:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 41C13F801F7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=k/ovpG8Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749509592; x=1781045592; h=date:from:to:cc:subject:message-id:mime-version; bh=dtqVLHodWd2MyMx4kp2rSNOmUMwd734aSgLfp3td8EE=; b=k/ovpG8YwdDUVZaV0yyT/zyLofxiV1ck+0mRuJURGsw0tYAZoJaK1UJ+ /b4DfvbFceOwyh8NQppVkTsoPHNvih+VSB0xDhyb/KXYAMwhi5Ki4FGJD BDrKwX2jC1sOY8/zqyF+UAoUIckk77pvMJ8MVymggqj6bA0+VILiicTfa xe+SvyxWf9U2eQisJGEGnFk2wZC5a5uwMOvpQUykSOQzk6/Q3bbx24xcr TwLIoJKLrKBP9CvxiGtsopLvMdrXfse2aeABdsvHhdU9vGRZoGLriq7wr L8dIXlxUMiROZFjvOvy/tEC4z9ohpCFRgjrde6obIBPFsTeZfP85Gurgu w==; X-CSE-ConnectionGUID: UIRHNlKbTCim1Cvrr21oMg== X-CSE-MsgGUID: pbQoMOrnRwCjZtGVexJ1Fg== X-IronPort-AV: E=McAfee;i="6800,10657,11459"; a="51512341" X-IronPort-AV: E=Sophos;i="6.16,223,1744095600"; d="scan'208";a="51512341" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2025 15:53:07 -0700 X-CSE-ConnectionGUID: rybRjhzLQZa7KA5ZM+mmUQ== X-CSE-MsgGUID: cpc7LG0IQhuQ2P+gdfT87g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,223,1744095600"; d="scan'208";a="146561811" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 09 Jun 2025 15:53:06 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uOlMW-0007U7-00; Mon, 09 Jun 2025 22:53:04 +0000 Date: Tue, 10 Jun 2025 06:52:14 +0800 From: kernel test robot To: Lucy Thrun Cc: oe-kbuild-all@lists.linux.dev, alsa-devel@alsa-project.org, Takashi Iwai Subject: [tiwai-sound:for-next 12/13] sound/pci/hda/patch_ca0132.c:4413:27: warning: '%s' directive writing up to 767 bytes into a region of size 44 Message-ID: <202506100642.95jpuMY1-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID-Hash: 76IKR4V6PUHN2DVZZLU4QWDD3YYALBK6 X-Message-ID-Hash: 76IKR4V6PUHN2DVZZLU4QWDD3YYALBK6 X-MailFrom: lkp@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next head: 92f59aeb13252265c20e7aef1379a8080c57e0a2 commit: ed57a3d5a3118b9681de607692608fe573c5959d [12/13] ALSA: hda/ca0132: Enable hardware band EQ for Sound Blaster Core3D config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20250610/202506100642.95jpuMY1-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250610/202506100642.95jpuMY1-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/202506100642.95jpuMY1-lkp@intel.com/ All warnings (new ones prefixed by >>): sound/pci/hda/patch_ca0132.c: In function 'ca0132_build_controls': >> sound/pci/hda/patch_ca0132.c:4413:27: warning: '%s' directive writing up to 767 bytes into a region of size 44 [-Wformat-overflow=] 4413 | sprintf(namestr, "%s %s Volume", name, dirstr[dir]); | ^~ In function 'add_tuning_control', inlined from 'add_tuning_ctls' at sound/pci/hda/patch_ca0132.c:4423:9, inlined from 'ca0132_build_controls' at sound/pci/hda/patch_ca0132.c:7195:2: sound/pci/hda/patch_ca0132.c:4413:9: note: 'sprintf' output 9 or more bytes (assuming 776) into a destination of size 44 4413 | sprintf(namestr, "%s %s Volume", name, dirstr[dir]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +4413 sound/pci/hda/patch_ca0132.c 44f0c9782cc6ab Ian Minett 2012-12-20 4376 44f0c9782cc6ab Ian Minett 2012-12-20 4377 static int add_tuning_control(struct hda_codec *codec, 44f0c9782cc6ab Ian Minett 2012-12-20 4378 hda_nid_t pnid, hda_nid_t nid, 44f0c9782cc6ab Ian Minett 2012-12-20 4379 const char *name, int dir) 44f0c9782cc6ab Ian Minett 2012-12-20 4380 { 975cc02a904ae3 Takashi Iwai 2013-06-28 4381 char namestr[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; 44f0c9782cc6ab Ian Minett 2012-12-20 4382 int type = dir ? HDA_INPUT : HDA_OUTPUT; 44f0c9782cc6ab Ian Minett 2012-12-20 4383 struct snd_kcontrol_new knew = 44f0c9782cc6ab Ian Minett 2012-12-20 4384 HDA_CODEC_VOLUME_MONO(namestr, nid, 1, 0, type); 44f0c9782cc6ab Ian Minett 2012-12-20 4385 44f0c9782cc6ab Ian Minett 2012-12-20 4386 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | 44f0c9782cc6ab Ian Minett 2012-12-20 4387 SNDRV_CTL_ELEM_ACCESS_TLV_READ; 44f0c9782cc6ab Ian Minett 2012-12-20 4388 knew.tlv.c = 0; 44f0c9782cc6ab Ian Minett 2012-12-20 4389 knew.tlv.p = 0; 44f0c9782cc6ab Ian Minett 2012-12-20 4390 switch (pnid) { 44f0c9782cc6ab Ian Minett 2012-12-20 4391 case VOICE_FOCUS: 44f0c9782cc6ab Ian Minett 2012-12-20 4392 knew.info = voice_focus_ctl_info; 44f0c9782cc6ab Ian Minett 2012-12-20 4393 knew.get = tuning_ctl_get; 44f0c9782cc6ab Ian Minett 2012-12-20 4394 knew.put = voice_focus_ctl_put; 44f0c9782cc6ab Ian Minett 2012-12-20 4395 knew.tlv.p = voice_focus_db_scale; 44f0c9782cc6ab Ian Minett 2012-12-20 4396 break; 44f0c9782cc6ab Ian Minett 2012-12-20 4397 case MIC_SVM: 44f0c9782cc6ab Ian Minett 2012-12-20 4398 knew.info = mic_svm_ctl_info; 44f0c9782cc6ab Ian Minett 2012-12-20 4399 knew.get = tuning_ctl_get; 44f0c9782cc6ab Ian Minett 2012-12-20 4400 knew.put = mic_svm_ctl_put; 44f0c9782cc6ab Ian Minett 2012-12-20 4401 break; 44f0c9782cc6ab Ian Minett 2012-12-20 4402 case EQUALIZER: 44f0c9782cc6ab Ian Minett 2012-12-20 4403 knew.info = equalizer_ctl_info; 44f0c9782cc6ab Ian Minett 2012-12-20 4404 knew.get = tuning_ctl_get; 44f0c9782cc6ab Ian Minett 2012-12-20 4405 knew.put = equalizer_ctl_put; 44f0c9782cc6ab Ian Minett 2012-12-20 4406 knew.tlv.p = eq_db_scale; 44f0c9782cc6ab Ian Minett 2012-12-20 4407 break; 44f0c9782cc6ab Ian Minett 2012-12-20 4408 default: 44f0c9782cc6ab Ian Minett 2012-12-20 4409 return 0; 44f0c9782cc6ab Ian Minett 2012-12-20 4410 } 44f0c9782cc6ab Ian Minett 2012-12-20 4411 knew.private_value = 44f0c9782cc6ab Ian Minett 2012-12-20 4412 HDA_COMPOSE_AMP_VAL(nid, 1, 0, type); 44f0c9782cc6ab Ian Minett 2012-12-20 @4413 sprintf(namestr, "%s %s Volume", name, dirstr[dir]); 44f0c9782cc6ab Ian Minett 2012-12-20 4414 return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); 44f0c9782cc6ab Ian Minett 2012-12-20 4415 } 44f0c9782cc6ab Ian Minett 2012-12-20 4416 :::::: The code at line 4413 was first introduced by commit :::::: 44f0c9782cc6ab71ea947f8f710a46f2078a151c ALSA: hda/ca0132: Add tuning controls :::::: TO: Ian Minett :::::: CC: Takashi Iwai -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki