Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1751190rdf; Sun, 5 Nov 2023 12:45:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGB2lfpEle8gdQFCx0R8uZo7ZM63GvpMVfvq/EAiCvz+Y7MsiuM6trMOuDrjkzRXorRXGmW X-Received: by 2002:a17:90b:3107:b0:27d:348:94a8 with SMTP id gc7-20020a17090b310700b0027d034894a8mr25557285pjb.6.1699217108366; Sun, 05 Nov 2023 12:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699217108; cv=none; d=google.com; s=arc-20160816; b=QVHVxpLRF9INrMWFbyN9r2djdIAM5NRf1KUOfHSglzN+VLX5FqM0YpccptkKZutG3q 9ATqDBbhg+PhHvj2QQYY1i566+2jLwqA0TtM9DNW2L6ZYUdShaXLYJDToQpmeu3RNrvr KB97PGmmsRTe1qFxI+bk4lCnn3vK4t5daHo7/WXUcA16sUaD6fJpiByRsXb2EARb1RuS nrdKEcPDOY72YSqkxeJ4Q+u2se13LUwrXVKcNni8nsmjwTeR1xOHHLXu4qqs+Frp3lFq WJMJEKbi2PPHWrnZ21Vuuu47NypWhS9qv5c6giAY/3j5Q3X4MFQeIjkChGzN37fvs/Sv 1WLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KtHvtYNZGugsnV5Qu2VA5QEn2KUROaMMlM2wZX+vSko=; fh=FwPtOMJ0WlV+BrIOM33K+yg+HyyDSXcOnaLDmm7Z4t8=; b=lrsCOtZXjNQvG0P7Ccj59PWBNWXB5sOiVO1Qc3t1N0ewVPHAcnEmBAIMkaKG6Chr2+ tX1NZ6NHuz5B+BXqF0gDW29xnnXE45v8jO3U8GUSGqMD/8wGzXQAj5IhCFh8CFakXmZV TJZEDxIUw2hGc3Rv2fxh76E0xWAE97aItHGrjkA7Gr2bkVGwSQWvWg1ZLEQ8qQjiGEHz onvIICF1jc5B/vUTBscAxLbg+w1i+aIcyVMbZlYX7bCGWTxrG6QxCOuAUoafBBXGzPkB yR+aGp24bASY8P3mgEcdmfNEvED9w1MQhyLCib5fpMyAegz3Z0zxrHKadJNiHHbIAJxi k8Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fb+vDfL4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r201-20020a632bd2000000b005b884c4db36si6292193pgr.494.2023.11.05.12.45.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 12:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fb+vDfL4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 47B2780BBC7D; Sun, 5 Nov 2023 12:45:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229463AbjKEUpG (ORCPT + 99 others); Sun, 5 Nov 2023 15:45:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjKEUpF (ORCPT ); Sun, 5 Nov 2023 15:45:05 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE9C4DE; Sun, 5 Nov 2023 12:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699217101; x=1730753101; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DFEnBoAZfjHsPxHG7Pn6/C8BILMOVrXxGrVVO4Ir0M0=; b=Fb+vDfL4dSyy598e7jxzSTzSrb+hdzkbNc3MMqh7hjagl89tGRw9OICs 1wGOo30tSooNNyurk56ZtO3YyaAOI5NAgJBnthWYe8NG4ZCW/u17FOuMd CPbopggFsHlRFafp5gb4c8kwdxtviiPUAYM+oQLe4wLoQFvzPF1GKUiA+ Xr61q52a+XI4cfjT7N2A2gwavjqP8J3Sv2EV7ZNUqUm/TLfHptOclJhQz boj8Gb/7cOG3nj+1m175rpxy+OOhTU4nS18l+OC+fyMlSo5KTGjkpIF+V DcznTEVQ8pvIYjzyi9ANtg0cb7VaVZbTnxwoA+vOt/xe5+DAReQj8zkDZ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="388991518" X-IronPort-AV: E=Sophos;i="6.03,279,1694761200"; d="scan'208";a="388991518" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2023 12:45:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10885"; a="762133802" X-IronPort-AV: E=Sophos;i="6.03,279,1694761200"; d="scan'208";a="762133802" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 05 Nov 2023 12:44:58 -0800 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qzjzL-0005mC-32; Sun, 05 Nov 2023 20:44:55 +0000 Date: Mon, 6 Nov 2023 04:44:17 +0800 From: kernel test robot To: Ivan Orlov , perex@perex.cz, tiwai@suse.com, corbet@lwn.net Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ivan Orlov , alsa-devel@alsa-project.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH v2 2/2] ALSA: Add new driver for Marian M2 sound card Message-ID: <202311060403.591giMV8-lkp@intel.com> References: <20230918181044.7257-2-ivan.orlov0322@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230918181044.7257-2-ivan.orlov0322@gmail.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 05 Nov 2023 12:45:07 -0800 (PST) Hi Ivan, kernel test robot noticed the following build warnings: [auto build test WARNING on tiwai-sound/for-next] [also build test WARNING on tiwai-sound/for-linus linus/master v6.6 next-20231103] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ivan-Orlov/ALSA-Add-new-driver-for-Marian-M2-sound-card/20230919-021236 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next patch link: https://lore.kernel.org/r/20230918181044.7257-2-ivan.orlov0322%40gmail.com patch subject: [PATCH v2 2/2] ALSA: Add new driver for Marian M2 sound card config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20231106/202311060403.591giMV8-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231106/202311060403.591giMV8-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/202311060403.591giMV8-lkp@intel.com/ All warnings (new ones prefixed by >>): sound/pci/marianm2.c:466:6: warning: variable 'buffer_frames' set but not used [-Wunused-but-set-variable] int buffer_frames; ^ >> sound/pci/marianm2.c:472:11: warning: variable 'speedmode' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] else if (params_rate(params) < RATE_FAST) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sound/pci/marianm2.c:475:6: note: uninitialized use occurs here if (speedmode > marian->desc->speedmode_max) { ^~~~~~~~~ sound/pci/marianm2.c:472:7: note: remove the 'if' if its condition is always true else if (params_rate(params) < RATE_FAST) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sound/pci/marianm2.c:465:24: note: initialize the variable 'speedmode' to silence this warning unsigned int speedmode; ^ = 0 2 warnings generated. vim +472 sound/pci/marianm2.c 460 461 static int snd_marian_hw_params(struct snd_pcm_substream *substream, 462 struct snd_pcm_hw_params *params) 463 { 464 struct marian_card *marian = snd_pcm_substream_chip(substream); 465 unsigned int speedmode; > 466 int buffer_frames; 467 468 buffer_frames = SUBSTREAM_BUF_SIZE / M2_FRAME_SIZE; 469 470 if (params_rate(params) < RATE_SLOW) 471 speedmode = SPEEDMODE_SLOW; > 472 else if (params_rate(params) < RATE_FAST) 473 speedmode = SPEEDMODE_FAST; 474 475 if (speedmode > marian->desc->speedmode_max) { 476 dev_err(marian->card->dev, 477 "Requested rate (%u Hz) higher than card's maximum\n", 478 params_rate(params)); 479 _snd_pcm_hw_param_setempty(params, SNDRV_PCM_HW_PARAM_RATE); 480 return -EBUSY; 481 } 482 483 spin_lock(&marian->reglock); 484 if (marian->desc->set_speedmode) 485 marian->desc->set_speedmode(marian, speedmode); 486 else 487 marian_generic_set_speedmode(marian, speedmode); 488 489 marian->detune = 0; 490 491 marian_generic_set_dco(marian, params_rate(params), 0); 492 spin_unlock(&marian->reglock); 493 494 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 495 snd_pcm_set_runtime_buffer(substream, &marian->playback_buf); 496 else 497 snd_pcm_set_runtime_buffer(substream, &marian->capture_buf); 498 499 // apply optional card specific hw constraints 500 if (marian->desc->hw_constraints_func) 501 marian->desc->hw_constraints_func(marian, substream, params); 502 503 return 0; 504 } 505 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki