Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp69603lqc; Thu, 7 Mar 2024 10:31:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6E/KFWvbldKiVAWEa0QhhliLtze2FHr8f8atRGO1Vw30Wu/aSDv4Qkuw6UEOATbpATy2O/5IKUF/0j644/dbuGwAbwq+yFpFl7ZB4dQ== X-Google-Smtp-Source: AGHT+IFyc/u5wDYcbwUBbPOgi4xpUWU4WQNwTyFElBqCTfP4cAJxV7aSIuwf58UwN7nLuHN+yLOf X-Received: by 2002:a50:9f61:0:b0:565:bb25:bb7b with SMTP id b88-20020a509f61000000b00565bb25bb7bmr549462edf.6.1709836277493; Thu, 07 Mar 2024 10:31:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709836277; cv=pass; d=google.com; s=arc-20160816; b=by9SsEFhwRyVE4Z/RqStWRk9vfv2nWd3qHxji3utAHlX/p0NrtWr8s2J0Z8W4MiPqh W1EFnuRzEio7mLftqPkGgKPJPYs3g9rMsDlPP4Run9g7B/4eOAguRZv/rtzW1oKgmj75 x9fHGgTzj0lPqV7xKFWEBOAc+C6lYp5INR1VDLru5iryrAEpT9Obf1cEKwC0tatyr2zh uIZWABU4AbuUU2rLPV2OhwJsGbJ1PMI+/7xFx1yK/b+YsN1//XXZbi6Xi9IXsjpYWKPr w743b9twCC9JlRrtFuWuCSgGV109uDMt7RxE/eoLrD5+o+2ONOr6JAWuKbP9hY9FmtuW 90QQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=Mij3RQPCAn+GippXy+2ijVUe97tEFSo2xMOmS5GD77o=; fh=ALcfWtfzbWojM0kcF+oWIbD92JLJLyBkHL+ilxoAMuQ=; b=Koa/OxD1YWVQr4eONt1UWItZg9ynQD09uNenVCB1xznx+zxcA2pJWUQbFR5OR2EE5B oUYvRCuPjg3lykF6r05ln4ccL7My47xRRir9YzaBmauLZy2WmS70rUcf7lQPkzL20JtX 2Hs7nfU60On2nmFLtCENxMI+qH80pO7Ih2/QmtBjmkuulAcq6SRIV8DT5/z1VSCricZF NSsvu7/QL2QupD6VYszRQoM7XRfUMwlb/9vHz6n1PakUhQjYguYYUsEBRvLRuo/+kbGe Rr7E66Uuzej4IxGws1qMw5XhsO8E3rMum5eIkJQJ7BKmQcWVG3CyCw2Pi9OEpmSNsnH/ 0W+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-96016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f13-20020a0564021e8d00b005642ee620fasi7500174edf.114.2024.03.07.10.31.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 10:31:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-96016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu 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 38C911F23F40 for ; Thu, 7 Mar 2024 18:31:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65EBC12F377; Thu, 7 Mar 2024 18:31:11 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id CC1121F933 for ; Thu, 7 Mar 2024 18:31:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709836270; cv=none; b=VPKp9BG4CWW2hKjqwQE494Sr8eSHU5GhMphwn69oTL/zgXVWC4UvmWdebktPjrGo6kiqLYMC7Y9Qq+OQD8IFt7fgj+NlHCl9JCatwEAtwqak5CaRYjDZoeLlQ9JUAdbXIzXkFEVNtyd65uWA65ppjmaM/JwZkNZJgdY4SX2Mt7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709836270; c=relaxed/simple; bh=0ZoTdFgjgoaNOj1z3j65pqp/ccOZVO6NBa1Y6kLfHH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bzb12qRP65NeSJWbpbSaaHPjvHKEakDbQ3RPocYDTMVT4n7SwE5S32LIMXrMxkV5oOZRLclkyzpWdvJ4dNLp2xANiEhruR1qcwD43baXhL+Wf7KIDsngZrA2Po5bJgYKyzTBoAFyJiQgB109ey3JPGBpOK0Vc1GMzu1lqsHK/jA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 227973 invoked by uid 1000); 7 Mar 2024 13:31:07 -0500 Date: Thu, 7 Mar 2024 13:31:07 -0500 From: Alan Stern To: Colin Ian King Cc: Greg Kroah-Hartman , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Roy Huang , Ash Aziz , Mike Frysinger , Seth Levy , linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next][V2] usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin Message-ID: <668a1a8b-925f-4baa-a443-a84b9cd854c1@rowland.harvard.edu> References: <20240307181734.2034407-1-colin.i.king@gmail.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240307181734.2034407-1-colin.i.king@gmail.com> On Thu, Mar 07, 2024 at 06:17:34PM +0000, Colin Ian King wrote: > Currently the variable irqflags is being set but is not being used, > it appears it should be used in the call to net2272_probe_fin > rather than IRQF_TRIGGER_LOW being used. Kudos to Uwe Kleine-K?nig > for suggesting the fix. > > Cleans up clang scan build warning: > drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags' > set but not used [-Wunused-but-set-variable] > > Fixes: ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller") > > Signed-off-by: Colin Ian King Acked-by: Alan Stern > --- > > V2: don't remove irqflags but instead use it in the call to net2272_probe_fin > > --- > drivers/usb/gadget/udc/net2272.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c > index 12e76bb62c20..19bbc38f3d35 100644 > --- a/drivers/usb/gadget/udc/net2272.c > +++ b/drivers/usb/gadget/udc/net2272.c > @@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev) > goto err_req; > } > > - ret = net2272_probe_fin(dev, IRQF_TRIGGER_LOW); > + ret = net2272_probe_fin(dev, irqflags); > if (ret) > goto err_io; > > -- > 2.39.2 > >