Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp253921rwl; Sat, 25 Mar 2023 01:31:49 -0700 (PDT) X-Google-Smtp-Source: AKy350Zt+Q//N1BZfZ7ksoE7E7Nzrc4L4qnBKUL6960AwY7abM0Tubb8m2vtk30fotwYGjZ/Mua3 X-Received: by 2002:a17:907:3e1a:b0:932:853c:c958 with SMTP id hp26-20020a1709073e1a00b00932853cc958mr6744480ejc.25.1679733109348; Sat, 25 Mar 2023 01:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679733109; cv=none; d=google.com; s=arc-20160816; b=RfYBusoGL8O1yvSst4SUEWWKPXBLFsDwYIXcyK1rYVo5F7GcqX+7mvYtARWVOer8rS rnyM1oESuIHxlBjo2NWt9PSMBlUKOTqyD+fPAbE/at4rPdfrr9x4jP1T4tsg14xPZLue NulVMwTlK1Fs23pWqqfR3IJVmELpvsnWxxj9/dgEVM33uN7xDU+7AD4qwV4e6RTfZSaz zrc1095nPqSXgFSLfnbWJZSgyCpOE7yYSJFQOUmcZP9HgdEAygW3aE2MGZW/Up6nRrf9 8LPB3Jyf8q5te8J3WJyJRTPMAszxGhEvpFfkQjnLkl+BfdaQ/n8QxIORicb1VzMK3S2b vVSw== 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=/gL/FWRk/Yzyr/z6zkcLjQ2UoRlRNbbNWfXdq6uclWU=; b=PfU3Sq3Uqcf2Tj6l+KLpDL07rtaeuA1Cc97rIrXxfTKoKik+Qq30108sSKZvuoC9co Wm/13OpSkZLWuc/0daBn+oSMmV4qCQNDHw32BYwXZtntRnz4qZ+SkAjK+LWU+Mcyjo+m FomHtukXJPD8LiSZb2y4NDEGS/sROyirCfmmaKRYsrTk3b1yf3UXda+CUtFeUTcF65Ek 4kFWRgKEamorCrrSwH1zD1H+PO/dSOqaY1JmpgbVphm+xu1wPzrxYyElbjzaMjHUjWqd MQ8VqG7kLT9tPsRcimHrlytrZw5vZO7x0AkMW7nZpJ21UIQ+CepDpzcK+1uT0/JiipuL LmQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="j/Hj80eh"; 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 sb27-20020a1709076d9b00b009334edab100si3516733ejc.49.2023.03.25.01.31.25; Sat, 25 Mar 2023 01:31:49 -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="j/Hj80eh"; 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 S231917AbjCYISY (ORCPT + 99 others); Sat, 25 Mar 2023 04:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbjCYISO (ORCPT ); Sat, 25 Mar 2023 04:18:14 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75BAD2D66 for ; Sat, 25 Mar 2023 01:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679732278; x=1711268278; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vkGsebY+bi2zt68dIYP5n+JMfaG3q4r/7n81x+5v2jE=; b=j/Hj80ehPHYyugKDNO5zy4EUKGr5xvpyzmVxN9F7Oyb+nw7ZaiMGlJ3S CX1as+wkccUIeChcchj+FFqRQd2zQsg5tj99pJT9LQxQDVOiCqtLQonpU 7cwWoq3qta1judqNjDelpS6i1qZZvwqM7lCGQBNd846HV1dkNvSu4qozH lokNP8NL9pi4ykSulSV28Ga2vpw3vHjcIIJIy8eUHPD5IxGBouZD8Poel NfxIQUm8rRFI6+bpqTH/fmsjbSWHhvwIsUzEScD+jiE3ngJkvCmWAnFbt ovPtypJq9UQADRj/IDqpG7Kfn6lNxBaWZf5lbw3ACHOrlftfzvLOLo88M w==; X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="319603154" X-IronPort-AV: E=Sophos;i="5.98,290,1673942400"; d="scan'208";a="319603154" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2023 01:17:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="1012535901" X-IronPort-AV: E=Sophos;i="5.98,290,1673942400"; d="scan'208";a="1012535901" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 25 Mar 2023 01:17:54 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pfz62-000G6N-0Q; Sat, 25 Mar 2023 08:17:54 +0000 Date: Sat, 25 Mar 2023 16:16:58 +0800 From: kernel test robot To: Shenghao Ding <13916275206@139.com>, broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz, pierre-louis.bossart@linux.intel.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, kevin-lu@ti.com, shenghao-ding@ti.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, x1077012@ti.com, peeyush@ti.com, navada@ti.com, Shenghao Ding <13916275206@139.com> Subject: Re: [PATCH v6] ASoC: tas2781: Add tas2781 driver Message-ID: <202303251653.7HZjyxTf-lkp@intel.com> References: <20230324110755.27652-1-13916275206@139.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324110755.27652-1-13916275206@139.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=unavailable 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 Shenghao, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on broonie-sound/for-next] [also build test WARNING on linus/master v6.3-rc3 next-20230323] [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/Shenghao-Ding/ASoC-tas2781-Add-tas2781-driver/20230324-190955 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next patch link: https://lore.kernel.org/r/20230324110755.27652-1-13916275206%40139.com patch subject: [PATCH v6] ASoC: tas2781: Add tas2781 driver config: arm-randconfig-r021-20230322 (https://download.01.org/0day-ci/archive/20230325/202303251653.7HZjyxTf-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/ae727fb08bb90265d16859aa62c7c956e46841ee git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Shenghao-Ding/ASoC-tas2781-Add-tas2781-driver/20230324-190955 git checkout ae727fb08bb90265d16859aa62c7c956e46841ee # 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=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash sound/soc/codecs/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303251653.7HZjyxTf-lkp@intel.com/ All warnings (new ones prefixed by >>): >> sound/soc/codecs/tas2781-dsp.c:1357:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (in) { ^~ sound/soc/codecs/tas2781-dsp.c:1378:9: note: uninitialized use occurs here return ret; ^~~ sound/soc/codecs/tas2781-dsp.c:1357:2: note: remove the 'if' if its condition is always true if (in) { ^~~~~~~~ sound/soc/codecs/tas2781-dsp.c:1343:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 sound/soc/codecs/tas2781-dsp.c:1407:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (in) { ^~ sound/soc/codecs/tas2781-dsp.c:1444:9: note: uninitialized use occurs here return ret; ^~~ sound/soc/codecs/tas2781-dsp.c:1407:2: note: remove the 'if' if its condition is always true if (in) { ^~~~~~~~ sound/soc/codecs/tas2781-dsp.c:1388:9: note: initialize the variable 'ret' to silence this warning int ret, i; ^ = 0 2 warnings generated. vim +1357 sound/soc/codecs/tas2781-dsp.c 1336 1337 static int do_singlereg_checksum(struct tasdevice_priv *tasdevice, 1338 enum channel chl, unsigned char book, unsigned char page, 1339 unsigned char reg, unsigned char val) 1340 { 1341 struct tas_crc crc_data; 1342 unsigned int nData1; 1343 int ret; 1344 bool in; 1345 1346 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) 1347 && (page == TASDEVICE_PAGE_ID(TAS2781_SA_COEFF_SWAP_REG)) 1348 && (reg >= TASDEVICE_PAGE_REG(TAS2781_SA_COEFF_SWAP_REG)) 1349 && (reg <= (TASDEVICE_PAGE_REG( 1350 TAS2781_SA_COEFF_SWAP_REG) + 4))) { 1351 /*DSP swap command, pass */ 1352 ret = 0; 1353 goto end; 1354 } 1355 1356 in = check_yram(&crc_data, book, page, reg, 1); > 1357 if (in) { 1358 ret = tasdevice_dev_read(tasdevice, chl, 1359 TASDEVICE_REG(book, page, reg), &nData1); 1360 if (ret < 0) 1361 goto end; 1362 1363 if (nData1 != val) { 1364 dev_err(tasdevice->dev, 1365 "B[0x%x]P[0x%x]R[0x%x] W[0x%x], R[0x%x]\n", 1366 book, page, reg, 1367 val, nData1); 1368 tasdevice->tasdevice[chl].err_code |= 1369 ERROR_YRAM_CRCCHK; 1370 ret = -EAGAIN; 1371 goto end; 1372 } 1373 1374 ret = crc8(tasdevice->crc8_lkp_tbl, &val, 1, 0); 1375 } 1376 1377 end: 1378 return ret; 1379 } 1380 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests