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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AA5BECAAA1 for ; Tue, 6 Sep 2022 21:32:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 016C18D0005; Tue, 6 Sep 2022 17:32:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EE1D58D0002; Tue, 6 Sep 2022 17:32:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D5B808D0005; Tue, 6 Sep 2022 17:32:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C05F28D0002 for ; Tue, 6 Sep 2022 17:32:56 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8F430A064B for ; Tue, 6 Sep 2022 21:32:56 +0000 (UTC) X-FDA: 79882960752.08.9A2C356 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf08.hostedemail.com (Postfix) with ESMTP id 9397B160077 for ; Tue, 6 Sep 2022 21:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662499975; x=1694035975; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=CuoDcrs2Vw+wjzQOvGiGZauxes7VxOwBR32r39tWgc4=; b=WWnNOUrvLkpQKsltaNVspNultLZg6VhmVtZLTZGVII8rXdaTOt43/bo4 gydwmntGBw4GvwfhX1pn3thp3WzwlPmqsxwbnLW9hBOSBlzPaI4qkpVJU 0j2jGaOBfD2cY+VLfDkR8u+T0/kuSrO5Arvwh9UcByW0l1vHUGIBDqjjz qG832HKblTYz6OQVXX6kUIEkgNo6UQzV1uad4HmwOYspK2BtXb5sja0Gh LIf30HnyNxYqItG3ZT4FLvLzvd1WcuMml/kUAiVehGlY6mGjbuFY+5Q35 yu8ZTLB5H5MxrWtDAYyVYzpxte7p/wxQ/GwrAE6ASC/h62i/Qf2Um/1lw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="383008551" X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="383008551" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 14:32:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="591428027" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 06 Sep 2022 14:32:48 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oVgBb-0005et-16; Tue, 06 Sep 2022 21:32:47 +0000 Date: Wed, 7 Sep 2022 05:32:14 +0800 From: kernel test robot To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: kbuild-all@lists.01.org, Linux Memory Management List , Mark Brown Subject: [linux-next:master 4752/5667] sound/soc/codecs/tas2562.c:442:13: warning: variable 'ret' set but not used Message-ID: <202209070508.SsWVrSl0-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=WWnNOUrv; spf=softfail (imf08.hostedemail.com: 192.55.52.43 is neither permitted nor denied by domain of lkp@intel.com) smtp.mailfrom=lkp@intel.com; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662499976; a=rsa-sha256; cv=none; b=SyZ5RpE8tuxxnuQDI2b4BQeXPuyvFF4sSPffWGbzi7Fp68lmAjmDTIfRX4cfZEjvFc9ZtF 0gSlzpaVFm7X4QjVBMgrXbZDgjodIjZIPOicqbvwX+eaRkOerRU2pu0GOAP6+COd9j1taK xp+n26RPeYK/5dGnAVxf+dlg+oKdoUk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662499976; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=t2mi6+V9/1C7PmBa/T2VVUjeh8KSK26pyExHPWmN2Rc=; b=lhqLCxaacVqHGOqWsmQ4ppL029Dq4VgXyN5z/fNd9vueKS9meqeXWnLyaoMOSSEYjrY5xq PW7j1tZ2UU1+v8Mz5vDzG3T3rkybMcqXUD7MqNkplm2KemL2TaD8FfuBSMRENvzmobzrtt Z+NhGKc0bWtW7XrBrrbC4BLyzMlIAt0= Authentication-Results: imf08.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=WWnNOUrv; spf=softfail (imf08.hostedemail.com: 192.55.52.43 is neither permitted nor denied by domain of lkp@intel.com) smtp.mailfrom=lkp@intel.com; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none) X-Stat-Signature: 9cyaz5o8zgi85sudfespcjzpwcb7nmyc X-Rspamd-Queue-Id: 9397B160077 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1662499975-409430 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 840126e36e8ff272cb63158646433fa1324533d9 commit: 2848d34c3ba1fc6f1ece0736a4faa16c6277f4d3 [4752/5667] ASoC: tas2562: Fix mute/unmute config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220907/202209070508.SsWVrSl0-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 12.1.0 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2848d34c3ba1fc6f1ece0736a4faa16c6277f4d3 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2848d34c3ba1fc6f1ece0736a4faa16c6277f4d3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash sound/soc/codecs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): sound/soc/codecs/tas2562.c: In function 'tas2562_dac_event': >> sound/soc/codecs/tas2562.c:442:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 442 | int ret; | ^~~ vim +/ret +442 sound/soc/codecs/tas2562.c c173dba44c2d2e Dan Murphy 2019-10-08 429 c173dba44c2d2e Dan Murphy 2019-10-08 430 static SOC_ENUM_SINGLE_DECL(tas2562_ASI1_src_enum, TAS2562_TDM_CFG2, 4, c173dba44c2d2e Dan Murphy 2019-10-08 431 tas2562_ASI1_src); c173dba44c2d2e Dan Murphy 2019-10-08 432 c173dba44c2d2e Dan Murphy 2019-10-08 433 static const struct snd_kcontrol_new tas2562_asi1_mux = c173dba44c2d2e Dan Murphy 2019-10-08 434 SOC_DAPM_ENUM("ASI1 Source", tas2562_ASI1_src_enum); c173dba44c2d2e Dan Murphy 2019-10-08 435 c173dba44c2d2e Dan Murphy 2019-10-08 436 static int tas2562_dac_event(struct snd_soc_dapm_widget *w, c173dba44c2d2e Dan Murphy 2019-10-08 437 struct snd_kcontrol *kcontrol, int event) c173dba44c2d2e Dan Murphy 2019-10-08 438 { c173dba44c2d2e Dan Murphy 2019-10-08 439 struct snd_soc_component *component = c173dba44c2d2e Dan Murphy 2019-10-08 440 snd_soc_dapm_to_component(w->dapm); c173dba44c2d2e Dan Murphy 2019-10-08 441 struct tas2562_data *tas2562 = snd_soc_component_get_drvdata(component); 69e53129d01317 Dan Murphy 2020-02-19 @442 int ret; c173dba44c2d2e Dan Murphy 2019-10-08 443 c173dba44c2d2e Dan Murphy 2019-10-08 444 switch (event) { c173dba44c2d2e Dan Murphy 2019-10-08 445 case SND_SOC_DAPM_POST_PMU: 2848d34c3ba1fc Martin Povišer 2022-08-25 446 tas2562->dac_powered = true; 2848d34c3ba1fc Martin Povišer 2022-08-25 447 ret = tas2562_update_pwr_ctrl(tas2562); c173dba44c2d2e Dan Murphy 2019-10-08 448 break; c173dba44c2d2e Dan Murphy 2019-10-08 449 case SND_SOC_DAPM_PRE_PMD: 2848d34c3ba1fc Martin Povišer 2022-08-25 450 tas2562->dac_powered = false; 2848d34c3ba1fc Martin Povišer 2022-08-25 451 ret = tas2562_update_pwr_ctrl(tas2562); c173dba44c2d2e Dan Murphy 2019-10-08 452 break; c173dba44c2d2e Dan Murphy 2019-10-08 453 default: 69e53129d01317 Dan Murphy 2020-02-19 454 dev_err(tas2562->dev, "Not supported evevt\n"); 69e53129d01317 Dan Murphy 2020-02-19 455 return -EINVAL; c173dba44c2d2e Dan Murphy 2019-10-08 456 } c173dba44c2d2e Dan Murphy 2019-10-08 457 c173dba44c2d2e Dan Murphy 2019-10-08 458 return 0; c173dba44c2d2e Dan Murphy 2019-10-08 459 } c173dba44c2d2e Dan Murphy 2019-10-08 460 :::::: The code at line 442 was first introduced by commit :::::: 69e53129d01317d94e8b97ec11688880106a2f97 ASoC: tas2562: Add support for ISENSE and VSENSE :::::: TO: Dan Murphy :::::: CC: Mark Brown -- 0-DAY CI Kernel Test Service https://01.org/lkp