Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp398037rdb; Mon, 18 Sep 2023 20:44:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEF3CvS/i/yZ45dSPonwihva/Wh8FIWW21iJgHzFA+c7nf7vDoLmMzG71+45l9s78NN273Y X-Received: by 2002:a17:90a:f417:b0:274:cf7e:f11c with SMTP id ch23-20020a17090af41700b00274cf7ef11cmr1724013pjb.19.1695095067302; Mon, 18 Sep 2023 20:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695095067; cv=none; d=google.com; s=arc-20160816; b=yhNJO3jxQXHMd2A4VUsxI/bxU6cN+5KPy3JDNQBTSxN1NTiKQalytepA5gaW6eY8SY LasDOqoSEa7HDbA5jetS7NfEbYkQgarhxCSgd/SM9zIOmI15/MuQqvWIShrE06Jl4QEs ctvBmyDQvp9RvIdwzrbXDVo3ZA8ps99kWALxbw2O6IjzXXR1BQYuHTBjEYdi+lh5tOlX mfwzgE5gIRaxNXxChEKd/gqssFtVBv/cIw8WVCxFk5GDHQ+vCzcAGYui1jWKIhm1hyxZ UR3PAYs7nU71gpbl9LmknzN7mrWpMVSSrLqd8GGOGyLn82lE8OeOeoX5n10im3vYNoA1 m8WQ== 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=XrWRur8hIwuLgEWwbMF+Du5kQ5XfMJSNA4xhCijHMTM=; fh=O0fuGHve8x0YtefeGy1nY/GAqmT///gNqm4YSteWG44=; b=FiimsdpBD70okr1s0cPhx1x+m8pusVT2v1M0EfQT6Kj9ys5niLDioUdJumkltBlGCI 7UKEz9/OzHn8eMwzuEnbm3MMy87O8Zsm7m9Jr/6HvdQ18sgZtUkDZThvncSa4WYptc8J HCq212058rmqRO4EbOydHPESpOSA970R/jK2rvipKBFV3I4kU0UAL8uEDoKLIGdFf4Dw D1hh5DTcCgWblRK06rEBRwxJ10pr2uNgVnNIwwIlGys6MEQXVpiXlvLZ6SE95cReSLWV C+TQUKjxHgbuOtLF7ZhG/CiN5Vh+bQiJKwjRJXsLQqf4aJGWbMiAoRlj+dqr5ToBlKRi MEiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="RqhWrp/9"; 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 kx8-20020a17090b228800b002765eee2b6bsi2903224pjb.46.2023.09.18.20.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 20:44:27 -0700 (PDT) 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="RqhWrp/9"; 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 C5B648131AB5; Mon, 18 Sep 2023 20:43:24 -0700 (PDT) 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 S231330AbjISDnY (ORCPT + 99 others); Mon, 18 Sep 2023 23:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbjISDnX (ORCPT ); Mon, 18 Sep 2023 23:43:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A6D95; Mon, 18 Sep 2023 20:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695094997; x=1726630997; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FmJ2Jkuktoi/4h8QlHnlZU4IWKrI2nLnMkgQEyEoozA=; b=RqhWrp/9dNhYQxPs+JjIM5v2fjJCau6NpoM38/djhy4/oQzDqo0xtgAu gNaciiJGdTwfmicDt2uj0r2GAnAwnaWQ3sFM8z+YBMzJ8uVv6UJlLryPj 2/kSRZBf+fUNTcoXo3s1Z12o+MlpAoMykX0Kdr0gFlvpvMYj3yqJneBr4 7GGtcEPPgenL5dg7TEdB8eyigi5esGbLKCN+L/sYK22eR8VFVcUuwqeUZ iC5SMBvq4PtfeF0EyUwqJtbM0N3gh0TBx1QOzKi3rYCsmn1Njy1DD5wq+ zjdAqHKT4tg69UMgIEzidGE1dq/XvRj192HVqyZXBDu+pPKDcExn7F8GL Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="382595211" X-IronPort-AV: E=Sophos;i="6.02,158,1688454000"; d="scan'208";a="382595211" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 20:43:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="781158134" X-IronPort-AV: E=Sophos;i="6.02,158,1688454000"; d="scan'208";a="781158134" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 18 Sep 2023 20:43:14 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qiRd3-0006qq-1S; Tue, 19 Sep 2023 03:43:02 +0000 Date: Tue, 19 Sep 2023 11:41:29 +0800 From: kernel test robot To: Ivan Orlov , perex@perex.cz, tiwai@suse.com, corbet@lwn.net Cc: 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: <202309191140.FdOk1qDx-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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]); Mon, 18 Sep 2023 20:43:25 -0700 (PDT) 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-rc2 next-20230918] [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: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20230919/202309191140.FdOk1qDx-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309191140.FdOk1qDx-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/202309191140.FdOk1qDx-lkp@intel.com/ All warnings (new ones prefixed by >>): sound/pci/marianm2.c: In function 'snd_marian_hw_params': >> sound/pci/marianm2.c:466:13: warning: variable 'buffer_frames' set but not used [-Wunused-but-set-variable] 466 | int buffer_frames; | ^~~~~~~~~~~~~ vim +/buffer_frames +466 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