Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1769998rwn; Thu, 15 Sep 2022 23:53:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63qNTIvBTFoJYzmoNCaq1dPn+p/qvp/UL8tvzr9j5aDDprfmNagV7fy+yUeNWQCxeohdfR X-Received: by 2002:a05:6402:e96:b0:443:a086:e3e8 with SMTP id h22-20020a0564020e9600b00443a086e3e8mr2796005eda.330.1663311208279; Thu, 15 Sep 2022 23:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663311208; cv=none; d=google.com; s=arc-20160816; b=mkFjbVA7e/5924++aTwY+PV5EgixGpG/tr6wmGZ5/m10Z9hDcuzPeXs63osT6KJcCc UV1y08Cyl6cR6cdvia8iTvE+kNNC/Yj0BHjjSsgKn2XDYaPm6jsUr12JVjFIAeVzLqn+ 6Vmi9JeoeIpFzkgGEDoj0Y3PVmpXncV8kGD5BMtErgXR64N1XXD8GY03sAWhVZ6jPzr4 NEkIpr8mlU9mza3v8AWEUKZxGYa1Negyfd1r6EwED9Og7vv7CRGvC4R/z0Xh6GC73gvN lV7jaAGhK2DmllEYllJVIcbe9S04hNGRS7/+fnSYmumWweAQK7RlKp2SinPEtCHWO8VB bYgg== 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=ltMqI7sp/iFyfWb3upZpQb5QK5FLR8zUi5dvo7aI/yY=; b=vgwTf3h6aQMrIu2kgNAh8jFxoLPSzol/QXVq5bwzOpOqa0dKvKUFe7rVETc5CVSZjM U0CQgiC1IQ8sr5EQdjSrbKmfVzeAZx21K7I0ASQ18k69/5/F0tG6VYAImtxdVA00NggA 11Yed0X2GNvO6+UjR7hH2SxXTM+cJ1H9sFpNcc0pcr/EJB9cN8F1o/RAm/a/t9ikFmiN jrIIPcYGuvKkEkg0T8J0URDmE2Aeriflnl/M8zCU1dICfsQPIdeWOGsZhCHRxBtKiycI Pd/LNfkxMC/g+Cpcxwrc4tJuMOp2eZ3dA95EM0IwidYXfr91VeIgtxLY430+wLaIlxWb ylCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="C/nr44rD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr11-20020a170907720b00b0073d5b609447si16225068ejc.324.2022.09.15.23.53.01; Thu, 15 Sep 2022 23:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="C/nr44rD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229994AbiIPGdq (ORCPT + 99 others); Fri, 16 Sep 2022 02:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiIPGdo (ORCPT ); Fri, 16 Sep 2022 02:33:44 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E89A2846; Thu, 15 Sep 2022 23:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663310023; x=1694846023; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CcQtu7M5Hwg3j2Hj9+QAZNEeLiOmSxNdcPQCjhrtlmw=; b=C/nr44rDxSY8TLMxndng+5csUbBgoxp23MLz29r4Cb8D94Z5sZvrgqhz 22QgpiPpHKQO8ROKUeSAFBpK2vpkMLSKidO4sWBh3H++u9f+9haDVI5oY H8R45nvxMVqV5/NC/l3rDCsntu1Sal2Ih0fTqUJPSVyH7YFdiLh1FneEI u7IVoZcjsVyCIewTBKX1wn6rwsc3QWS36DoDdOCWNfxWWtLriymliBQiG 2fzz1iK98p5AlYXOzcQf4GjZFI/fsJAnDcCSwd4p3z6JGDp7jjR/annwP 3qSa+MDmnmf4ir9akZ0Q6uLzHaayUMUQNcBkjNb7FceBTS9o6aXkrCtd4 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="298918993" X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="298918993" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 23:33:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="568728749" Received: from lkp-server02.sh.intel.com (HELO 41300c7200ea) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 15 Sep 2022 23:33:40 -0700 Received: from kbuild by 41300c7200ea with local (Exim 4.96) (envelope-from ) id 1oZ4ux-0001Vq-0z; Fri, 16 Sep 2022 06:33:39 +0000 Date: Fri, 16 Sep 2022 14:32:57 +0800 From: kernel test robot To: Srinivas Kandagatla , broonie@kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, lgirdwood@gmail.com, bgoswami@quicinc.com, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: Re: [PATCH 7/9] ASoC: qdsp6: audioreach: add support to enable SAL Module Message-ID: <202209161405.8VjleAAg-lkp@intel.com> References: <20220915123837.11591-8-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220915123837.11591-8-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hi Srinivas, I love your patch! Perhaps something to improve: [auto build test WARNING on broonie-sound/for-next] [also build test WARNING on tiwai-sound/for-next linus/master v6.0-rc5 next-20220915] [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/Srinivas-Kandagatla/ASoC-qdsp6-audioreach-add-multi-port-SAL-and-MFC-support/20220915-204217 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: hexagon-randconfig-r021-20220915 (https://download.01.org/0day-ci/archive/20220916/202209161405.8VjleAAg-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 405b19bb679e3371abd9cd02dc1484213a4ebb88) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/deea0cb75db349cdcece853a658b68f4424da861 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Srinivas-Kandagatla/ASoC-qdsp6-audioreach-add-multi-port-SAL-and-MFC-support/20220915-204217 git checkout deea0cb75db349cdcece853a658b68f4424da861 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash sound/soc/qcom/qdsp6/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): sound/soc/qcom/qdsp6/audioreach.c:434:6: warning: variable 'graph_id' set but not used [-Wunused-but-set-variable] int graph_id; ^ >> sound/soc/qcom/qdsp6/audioreach.c:1050:7: warning: variable 'rc' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case MODULE_ID_SAL: ^~~~~~~~~~~~~ sound/soc/qcom/qdsp6/audioreach.h:18:25: note: expanded from macro 'MODULE_ID_SAL' #define MODULE_ID_SAL 0x07001010 ^~~~~~~~~~ sound/soc/qcom/qdsp6/audioreach.c:1059:9: note: uninitialized use occurs here return rc; ^~ sound/soc/qcom/qdsp6/audioreach.c:1025:8: note: initialize the variable 'rc' to silence this warning int rc; ^ = 0 2 warnings generated. vim +/rc +1050 sound/soc/qcom/qdsp6/audioreach.c 1021 1022 int audioreach_set_media_format(struct q6apm_graph *graph, struct audioreach_module *module, 1023 struct audioreach_module_config *cfg) 1024 { 1025 int rc; 1026 1027 switch (module->module_id) { 1028 case MODULE_ID_DATA_LOGGING: 1029 rc = audioreach_logging_set_media_format(graph, module); 1030 break; 1031 case MODULE_ID_PCM_DEC: 1032 case MODULE_ID_PCM_ENC: 1033 case MODULE_ID_PCM_CNV: 1034 rc = audioreach_pcm_set_media_format(graph, module, cfg); 1035 break; 1036 case MODULE_ID_I2S_SOURCE: 1037 case MODULE_ID_I2S_SINK: 1038 rc = audioreach_i2s_set_media_format(graph, module, cfg); 1039 break; 1040 case MODULE_ID_WR_SHARED_MEM_EP: 1041 rc = audioreach_shmem_set_media_format(graph, module, cfg); 1042 break; 1043 case MODULE_ID_GAIN: 1044 rc = audioreach_gain_set(graph, module); 1045 break; 1046 case MODULE_ID_CODEC_DMA_SINK: 1047 case MODULE_ID_CODEC_DMA_SOURCE: 1048 rc = audioreach_codec_dma_set_media_format(graph, module, cfg); 1049 break; > 1050 case MODULE_ID_SAL: 1051 audioreach_sal_set_media_format(graph, module, cfg); 1052 audioreach_sal_limiter_enable(graph, module, true); 1053 break; 1054 1055 default: 1056 rc = 0; 1057 } 1058 1059 return rc; 1060 } 1061 EXPORT_SYMBOL_GPL(audioreach_set_media_format); 1062 -- 0-DAY CI Kernel Test Service https://01.org/lkp