Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp441250lqh; Tue, 7 May 2024 04:09:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVK6Eu7/JVBuw36P7boP4jw5QeVzEekRLfgrrz80qVw5zeL693O6nL4eGe6FFpj3+lVJrW0XCE5S/OG4xXWMAWdYskaWqgdZ7gzGcm11Q== X-Google-Smtp-Source: AGHT+IFKM+g3a1738O/yEDsANTyZ4rpYl69sJR9/tU71zDwy1GVocfxjuK7YJ/8KhU3jQvU28h0P X-Received: by 2002:ac2:58cc:0:b0:515:cfaf:737 with SMTP id u12-20020ac258cc000000b00515cfaf0737mr6577720lfo.9.1715080184587; Tue, 07 May 2024 04:09:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715080184; cv=pass; d=google.com; s=arc-20160816; b=UbHvqBver9ewMDoDW3WDCnkX4BHvkLfBroj3QM0FIsK3XXyYTbRApsUf73Ci9jMWbi NnU6a/u51wJWEw40KvibO3GYaxhzZHAkg7kHJ9Tvq7wH9tlvtSYm3MmjfTwbHX1UosV/ 3w0xk4hNj50ZgeeYONHQpf86ZZZpAHlDS4yUAeRO5zr7J/GJ9JzYYbi0/roTCLj5mEAJ oGbUt/vTD6lEfvVAiefsidNQviXRHeZ7sfBQPfY0A7t/ANGmsyrzbwzSdLMwjArAVnA5 D577rmUZ2twD96jaIt4GNcmz8RbHZlseBrYU2iW7jP2HoFuWDP8JPzCT5r3T+fVZ0r8j zQJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/5dO4hY1vQsPYntD9FIxJpB1Ehg3dtZEXRWIMeMjreM=; fh=B35uHokDAxq/ELtnaYN4Ii2oQ5P2FphpwP03Qk2tKOI=; b=vTILQRNh9onqiRVvwFZVR16RU4omq6VxWCM9AUN3ZWIqltqvrF9vOaelLKk8cUQnXk FtODcScs1dXfJtG2uHugPguBDeDn2NBwh2ucNnBiZmq0j2HxG2kRxG7WCEICRx/lthI7 0hcHBUdEFXhztLHmvZBswMR+uG2DMM4OkapHs4BFoYeKKRBVsZcA4V6Ep+VBxDAqXk52 5Cbp3Rp9KPGZwGRHLMhEjvYOOSujnWk25YXxuyREetwjDMws2T5ldv/Qv443/XS6IVIR qvmoDqNRw8ntTtRLz00gd336IjBPHUstjCxvQbQwk6YTytv3fOHG01h/3NaJOvyQu8o5 vYmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gbt4wUu9; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-171172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lx13-20020a170906af0d00b00a5986a02eb1si5198548ejb.582.2024.05.07.04.09.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 04:09:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gbt4wUu9; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-171172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4FE6F1F21526 for ; Tue, 7 May 2024 11:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A4A6152168; Tue, 7 May 2024 11:09:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gbt4wUu9" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9F731514C9; Tue, 7 May 2024 11:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080173; cv=none; b=Gvz5PfeqM4VAhH/OWuR/E3eRgKLdE4PYkxfiPbfxv2Aaonzp66oa/OUaOe/J/WFCLhpyULHQj8LRD3INhrZa9lhVr6bfn+KjzIl1OeBtcssjVJttqgFqafd90bag/dasDtUnDindeZLrfOTHpVEELLqPqpLVPe/B0S34eQEYXf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080173; c=relaxed/simple; bh=ZDHAJEmGPC34idg5wIvN/SlxRNOVp/+v3SFR/mFtXG4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sPzTRSO2JnRgy5GDT3H4geUZxj/j8bJ6ZZZnWYBWuFkYjWb6gDewebvWYsNjcy7hMmwickSM/UQaHIDyJ0QFcAOuqILzbMz35QfQoGEEDS76xZD49UmySvHwbB2imyVNofi1iExswD2Peai7i4XGKNMPFqTAzoA2RT8BsLB07G0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gbt4wUu9; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715080171; x=1746616171; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZDHAJEmGPC34idg5wIvN/SlxRNOVp/+v3SFR/mFtXG4=; b=gbt4wUu9LzLAIIEOtmSd0OewPeAARlHeqy1dc6K1QdU9rt8zushDLUXU Yz2CPCN9xkP8POk9J46cKcM6p/hKew5f3j+fP7IQ0slYx1aSIHyG9fEqL +hqeQlgPc2rIzYzzUl0iPkwzylItQ1uSvsT2AuGlqphUWp5SGwRtO0jmd q+vo11ut7RiUBU1AXG2ew94Pr5dcd9mycWnXS39M3qiz4R+CQM+A+430l heMmKd+gyHjRhcAV3owV6Vbd84BustJSEuul6++DXWBlzXbfQ+dkIxAuy MxWqoeB69SbVHS629dgFUq1xbys7UlglBRFE1OApDzu7sLGsrLgjY+nw0 w==; X-CSE-ConnectionGUID: YZK1mkJjT+iQigi+sDNIww== X-CSE-MsgGUID: TJxgrBpDQSKSemIi8SwFKw== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="10720744" X-IronPort-AV: E=Sophos;i="6.07,261,1708416000"; d="scan'208";a="10720744" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 04:09:31 -0700 X-CSE-ConnectionGUID: ZrOBaoG9Sdiqh7Rw7qH+sw== X-CSE-MsgGUID: 36gEx8TfSX+QnqxwlLRF2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,261,1708416000"; d="scan'208";a="51682325" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 07 May 2024 04:09:28 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s4IhJ-0001qH-35; Tue, 07 May 2024 11:09:25 +0000 Date: Tue, 7 May 2024 19:08:33 +0800 From: kernel test robot To: Michael Grzeschik , Thinh Nguyen , Greg Kroah-Hartman Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, michael.riesch@wolfvision.net, kernel@pengutronix.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Grzeschik Subject: Re: [PATCH] usb: dwc3: gadget: create per ep interrupts Message-ID: <202405071800.omy5Ou1D-lkp@intel.com> References: <20240507-dwc3_per_ep_irqthread-v1-1-f14dec6de19f@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240507-dwc3_per_ep_irqthread-v1-1-f14dec6de19f@pengutronix.de> Hi Michael, kernel test robot noticed the following build warnings: [auto build test WARNING on dd5a440a31fae6e459c0d6271dddd62825505361] url: https://github.com/intel-lab-lkp/linux/commits/Michael-Grzeschik/usb-dwc3-gadget-create-per-ep-interrupts/20240507-070804 base: dd5a440a31fae6e459c0d6271dddd62825505361 patch link: https://lore.kernel.org/r/20240507-dwc3_per_ep_irqthread-v1-1-f14dec6de19f%40pengutronix.de patch subject: [PATCH] usb: dwc3: gadget: create per ep interrupts config: x86_64-buildonly-randconfig-001-20240507 (https://download.01.org/0day-ci/archive/20240507/202405071800.omy5Ou1D-lkp@intel.com/config) compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240507/202405071800.omy5Ou1D-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/202405071800.omy5Ou1D-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/usb/dwc3/gadget.c:1068:6: warning: variable 'count_processed' set but not used [-Wunused-but-set-variable] 1068 | int count_processed = 0; | ^ 1 warning generated. vim +/count_processed +1068 drivers/usb/dwc3/gadget.c 1059 1060 static void dwc3_process_event_entry(struct dwc3 *dwc, 1061 const union dwc3_event *event); 1062 1063 static irqreturn_t dwc3_endpoint_thread_irq(int irq, void *_dep) 1064 { 1065 struct dwc3_ep *dep = _dep; 1066 struct dwc3 *dwc = dep->dwc; 1067 const union dwc3_event *event; > 1068 int count_processed = 0; 1069 u32 event_raw; 1070 unsigned long flags; 1071 1072 dep->givebacks_current_turn = 0; 1073 1074 spin_lock_irqsave(&dep->event_lock, flags); 1075 1076 if (dep->ep_event_flags & DWC3_EP_EVENT_OVERFLOW) { 1077 dev_err(dwc->dev, "ep%d: event buffer overflow\n", dep->number); 1078 dep->ep_event_flags &= ~DWC3_EP_EVENT_OVERFLOW; 1079 } 1080 1081 while (dep->ep_event_r_index != dep->ep_event_w_index) { 1082 1083 event_raw = dep->ep_event_buffer[dep->ep_event_r_index]; 1084 1085 /* 1086 * we have a copy of the event, so we can release the lock 1087 */ 1088 spin_unlock_irqrestore(&dep->event_lock, flags); 1089 1090 event = (const union dwc3_event *) &event_raw; 1091 1092 spin_lock(&dwc->lock); 1093 dwc3_process_event_entry(dwc, event); 1094 spin_unlock(&dwc->lock); 1095 1096 /* 1097 * we need to re-acquire the lock to update the read index 1098 */ 1099 spin_lock_irqsave(&dep->event_lock, flags); 1100 1101 dep->ep_event_r_index = (dep->ep_event_r_index + 1) % 1102 ARRAY_SIZE(dep->ep_event_buffer); 1103 1104 count_processed += 1; 1105 } 1106 1107 spin_unlock_irqrestore(&dep->event_lock, flags); 1108 1109 return IRQ_HANDLED; 1110 } 1111 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki