Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp787493rdf; Tue, 21 Nov 2023 17:25:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9hcsyN7Mdqi+a89L2UJpes7qwaJF7sdNws0nSJwCARaR9/fDMIQ4YkhJ0T9K7QTjcxx+v X-Received: by 2002:a17:903:188:b0:1ce:b83f:bd0c with SMTP id z8-20020a170903018800b001ceb83fbd0cmr6836264plg.7.1700616341793; Tue, 21 Nov 2023 17:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700616341; cv=none; d=google.com; s=arc-20160816; b=l9PHoht8eunDE4o9nixdzP6EJ62EqA+cWt853G9M7pfvl5F7P7nazWGyzOyvQyOV0Z HnfO73nmHoUs7yEWBaPByJ34phdap4pZ4Il4/R0XS4fXSVMzUFdckeZFPJD8mpIt3BVA 8HO+z+gL8Y4qmL2oKzXLgesr3hwBLhcqN2pzuur1VxQQERfoAC8gQiA8+BgYNaPMnG/s 5CcNf7+3OMPlS2YwDQpPZE6I4oNSO5tKNxqLk+P1gZAjJhFtpkYhAs3sylvA/o9PJ2wu uvvroFpAd4x4x29y11XoIfY+cFYxd17kb9+W8nEMeQf6VQV0nlCnfjzRmxUYhPvRImKu nmcg== 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=Pau/DXzMAOsu1I/jAB99EKJWy3301qku3Q62gfQHExk=; fh=p0SjpmabSdIqgBGQ3HRaM0VZF65rnj6g0BCmBfVqFC0=; b=Dt5f0t3bR9Z1bT1R4nkWzMuJRev12z/8PrFQUxEmvjmAnV5WW0/XE9j0FkVwb2T9Bo Xlvw5FJozRjtlj+Efx1KnD9UbtjD4Z3kDboH9Zg8lETjmCGCbuyqKYXOIlxY3j6TEfSp 3niDBS71eciVaS1VS1Xob28rjW4ilN6l+nKvPBdxfdwI5e0vtpq7IqWk0BT1pb7/kTgt vKPY9qtVIMEEdaVhIOAbf5tNEKcYP70IABfpbvyBs7zpNgC97wkWDg/I2kfZOqbMWneK 33tkyElfpgyClDMbFJMN4pvHaUNXu6O0dpIvr/u1MaFoHK7hl5FqwIosU8TCyLYkU53O iFsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gb0fzyw1; 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 bc1-20020a170902930100b001ce16902d39si10834829plb.449.2023.11.21.17.25.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 17:25:41 -0800 (PST) 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=gb0fzyw1; 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 C801581896DD; Tue, 21 Nov 2023 17:25:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234979AbjKVBZh (ORCPT + 99 others); Tue, 21 Nov 2023 20:25:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234922AbjKVBZf (ORCPT ); Tue, 21 Nov 2023 20:25:35 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D351A3; Tue, 21 Nov 2023 17:25:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700616331; x=1732152331; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=t8oT6RUsi73gqqA7YznCIrpliumT0ylzF6sXsPx7xLk=; b=gb0fzyw1SpfYez0a5WJQtg2x6KTxCkaUiE9YLB5IhJ/jsq8M1r8Lql4s cV7X1sY24EoxBtKnQbT1L0mNlNYq7FoxR1R3P4LN4EULb5DI5XNtLis4A l5c17LBfhtcNhlorL6JmhRhRL57HAVcd2NOw5CSRfu59kBSxM/0Mugmbz gXIzIcner2p8k+zgtqAt3LOxuWekVGTzPOKk8TbsHu6r+bMGY2Z0cv+in URnmWn38M0aVaQNEMj7p9t2iRau2b5ALFwCsCmSy5P94qw7cnrlQK8nLN pkNUN55bwmHYjObvRXlo6QzQesBxHRi4Au8RlJ35E3a0wbdO0V3fsehv0 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="382354354" X-IronPort-AV: E=Sophos;i="6.04,217,1695711600"; d="scan'208";a="382354354" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 17:25:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="766827289" X-IronPort-AV: E=Sophos;i="6.04,217,1695711600"; d="scan'208";a="766827289" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 21 Nov 2023 17:25:27 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r5bzH-0008UM-0y; Wed, 22 Nov 2023 01:25:24 +0000 Date: Wed, 22 Nov 2023 09:24:43 +0800 From: kernel test robot To: Sanath S , andreas.noever@gmail.com, michael.jamet@intel.com, mika.westerberg@linux.intel.com, YehezkelShB@gmail.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Sanath S , Mario Limonciello , stable@vger.kernel.org Subject: Re: [Patch] thunderbolt: Add quirk to reset downstream port Message-ID: <202311220931.2IqiKNXr-lkp@intel.com> References: <20231121174701.3922587-1-Sanath.S@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121174701.3922587-1-Sanath.S@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 17:25:40 -0800 (PST) Hi Sanath, kernel test robot noticed the following build warnings: [auto build test WARNING on westeri-thunderbolt/next] [also build test WARNING on linus/master v6.7-rc2 next-20231121] [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/Sanath-S/thunderbolt-Add-quirk-to-reset-downstream-port/20231122-014913 base: https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git next patch link: https://lore.kernel.org/r/20231121174701.3922587-1-Sanath.S%40amd.com patch subject: [Patch] thunderbolt: Add quirk to reset downstream port config: x86_64-buildonly-randconfig-003-20231122 (https://download.01.org/0day-ci/archive/20231122/202311220931.2IqiKNXr-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231122/202311220931.2IqiKNXr-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/202311220931.2IqiKNXr-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/thunderbolt/switch.c:1556:2: warning: variable 'ret' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] tb_switch_for_each_port(sw, port) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/thunderbolt/tb.h:821:7: note: expanded from macro 'tb_switch_for_each_port' (p) <= &(sw)->ports[(sw)->config.max_port_number]; (p)++) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/thunderbolt/switch.c:1564:9: note: uninitialized use occurs here return ret; ^~~ drivers/thunderbolt/switch.c:1556:2: note: remove the condition if it is always true tb_switch_for_each_port(sw, port) { ^ drivers/thunderbolt/tb.h:821:7: note: expanded from macro 'tb_switch_for_each_port' (p) <= &(sw)->ports[(sw)->config.max_port_number]; (p)++) ^ drivers/thunderbolt/switch.c:1554:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 1 warning generated. vim +1556 drivers/thunderbolt/switch.c 1549 1550 static int tb_switch_reset_downstream_port(struct tb_switch *sw) 1551 { 1552 struct tb_port *port; 1553 uint32_t val = 0; 1554 int ret; 1555 > 1556 tb_switch_for_each_port(sw, port) { 1557 if (port->config.type == TB_TYPE_PORT) { 1558 val = val | PORT_CS_19_DPR; 1559 ret = tb_port_write(port, &val, TB_CFG_PORT, 1560 port->cap_usb4 + PORT_CS_19, 1); 1561 break; 1562 } 1563 } 1564 return ret; 1565 } 1566 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki