Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4209272imw; Thu, 7 Jul 2022 14:46:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sOZQ+MOGq+NubuqAp0B1hBNHt2eaGuiQIGQHIS1cGKSuLSY5KkBk6WMxWdrct77pFYQiZS X-Received: by 2002:a05:6a00:2356:b0:525:7c6e:1dca with SMTP id j22-20020a056a00235600b005257c6e1dcamr127503pfj.28.1657230416547; Thu, 07 Jul 2022 14:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657230416; cv=none; d=google.com; s=arc-20160816; b=nNmFzEyv4w4rGfpIFaHP7aZJl3NU/QszBtDqawJSnfWc7H+gHjPhXbNjo0G+Z3jA4R 49CCKZgYhJuAYSo9jL3y6N8gJ86gI8CIL2I1Ynu1IypjNlltKfLp7Ha1P79FQcoF8Bkt /ro/WcilnkKXv6j19JMbzHlpFUPvzXSV2rUFJkl1jiGrVt3NUVCSgkCfkbLgiBE7Bf+V Yrqfj8TX8dEEtNdlmMumdU3ZUo6vEcIva5wGf9DQNK6inYlG/xCdl5r3giCdNUrMKBCC y7FLF72IyVdRcF5LXzwS22sB5Z0u+01musYQ/BqWUGC3c5cBXEF1OGMycwosomDz/reQ aU0w== 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=Ic0Nkx7LPukZdlJChxiZ4dHf1bAM7v0krpHGW8u6yHo=; b=BSpc3GxFip3XeIc93bcbp5+X9qh0jOlrnNlYePctNsXseFYYZXkwmqlcd4rPAithiw cYlk6bbRgvu7H/1xbvaOu12ArRyqjXWGtmWg0Ki275t7V5oyVHj5Cz/xONQDKSX+Udec c3GRuzVbS1o21WvjOZ6ljrxRV+EY9q0IUxE3iqvCX2LMf3de6BQ1AyvQM5DtFuVu2U5r L5PwWwEDPV6vs+sDGPxmEy9zOO8BiEfxJOczBffHe5vPGPefo7fHd8E49KZEKO0HHJOh gdkZ8MiE9KklU/PDLMjI7HjJ4Wj0U+6HaS8lvvA3o0cx+u0ev7PWDRx/HA5l1NVM1d5H AGyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KYhhMC0Z; 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 h8-20020a170902f54800b0016c192735f1si2827716plf.220.2022.07.07.14.46.35; Thu, 07 Jul 2022 14:46:56 -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=KYhhMC0Z; 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 S231383AbiGGVaL (ORCPT + 99 others); Thu, 7 Jul 2022 17:30:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbiGGVaJ (ORCPT ); Thu, 7 Jul 2022 17:30:09 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60E41C938 for ; Thu, 7 Jul 2022 14:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657229408; x=1688765408; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RR8nKcKkeUV/WR33JNvmdjCBx/wyCPnlG8A7Ckb1Pgs=; b=KYhhMC0ZA5ffzAUdFuZx2mhILYY4jWqIRIFkzh4m3FTQr/kek1EWGhjn 9k/HSaMPGxC7UXvZIjIPI8y4nNRol+xzWZPu3P1Sk2kHid2/kJseQ+5y7 XGsIA+IT1kWLyE4zWTjQY1lctkmoqZetHvBXszNeHfJwjWz4Y8KRLDC9/ 7eSakNAztpUyf0wVQnV2CJj5S7kW9q055SjsQGH1NwCnkEkAiJjqioSeI NZdcRgQW9hGLMIFDMCDXUpuQsQA2+weqJmEbvhJ6PO5wz+3U22z8ZkPRR GFGbJmOrl+c9FSsJAxxWx4umH2xWZNgMi9a35cdT6xEd21Q4CSt3PbPVT A==; X-IronPort-AV: E=McAfee;i="6400,9594,10401"; a="272922229" X-IronPort-AV: E=Sophos;i="5.92,253,1650956400"; d="scan'208";a="272922229" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 14:30:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,253,1650956400"; d="scan'208";a="736115138" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 07 Jul 2022 14:30:05 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o9Z4X-000MVK-6m; Thu, 07 Jul 2022 21:30:05 +0000 Date: Fri, 8 Jul 2022 05:29:35 +0800 From: kernel test robot To: Karthik Alapati , Johan Hovold , Alex Elder , Greg Kroah-Hartman Cc: kbuild-all@lists.01.org, Shuah Khan , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: don't use index pointer after iter Message-ID: <202207080535.tr2i6TxR-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.1 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, T_SCC_BODY_TEXT_LINE 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 Karthik, Thank you for the patch! Yet something to improve: [auto build test ERROR on v5.19-rc5] [also build test ERROR on linus/master] [cannot apply to staging/staging-testing next-20220707] [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/Karthik-Alapati/staging-greybus-don-t-use-index-pointer-after-iter/20220707-183311 base: 88084a3df1672e131ddc1b4e39eeacfd39864acf config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220708/202207080535.tr2i6TxR-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/bc295082ef055003c6018b57d3c56c5aefcb65c5 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Karthik-Alapati/staging-greybus-don-t-use-index-pointer-after-iter/20220707-183311 git checkout bc295082ef055003c6018b57d3c56c5aefcb65c5 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/staging/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/staging/greybus/audio_helper.c: In function 'gbaudio_dapm_free_controls': >> drivers/staging/greybus/audio_helper.c:128:32: error: expected ';' before 'for' 128 | w_found = false | ^ | ; drivers/staging/greybus/audio_helper.c:119:14: warning: variable 'w_found' set but not used [-Wunused-but-set-variable] 119 | bool w_found = false; | ^~~~~~~ drivers/staging/greybus/audio_helper.c:118:41: warning: unused variable 'next_w' [-Wunused-variable] 118 | struct snd_soc_dapm_widget *w, *next_w; | ^~~~~~ vim +128 drivers/staging/greybus/audio_helper.c 124 125 mutex_lock(&dapm->card->dapm_mutex); 126 for (i = 0; i < num; i++) { 127 /* below logic can be optimized to identify widget pointer */ > 128 w_found = false 129 list_for_each_entry_safe(w, next_w, &dapm->card->widgets, 130 list) { 131 if (w->dapm != dapm) 132 continue; 133 if (!strcmp(w->name, widget->name)) { 134 w_found = true; 135 break; 136 } 137 w = NULL; 138 } 139 if (!w_found) { 140 dev_err(dapm->dev, "%s: widget not found\n", 141 widget->name); 142 widget++; 143 continue; 144 } 145 widget++; 146 #ifdef CONFIG_DEBUG_FS 147 if (!parent) 148 debugfs_w = debugfs_lookup(w->name, parent); 149 debugfs_remove(debugfs_w); 150 debugfs_w = NULL; 151 #endif 152 gbaudio_dapm_free_widget(w); 153 } 154 mutex_unlock(&dapm->card->dapm_mutex); 155 return 0; 156 } 157 -- 0-DAY CI Kernel Test Service https://01.org/lkp