Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1169301rdh; Mon, 25 Sep 2023 05:28:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7LIsU69Y8lU0jCQx3y7glDaxGHehdALzZqBxLr5ANFElHBQsXzZQcsA2opHCAmLW+riYF X-Received: by 2002:a05:6808:6410:b0:3ad:ae0d:f845 with SMTP id fg16-20020a056808641000b003adae0df845mr7119463oib.5.1695644919818; Mon, 25 Sep 2023 05:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695644919; cv=none; d=google.com; s=arc-20160816; b=mgKNep3UA6ZlK6pc/9mDT9i1IS6FNwhx1qRbpcbTlfgGIL6YkJ3w18OtMKmifGBNqa H9eMxZbtWFY5IzCvT3D/Vu1tDXmhuXWNQoADQ9v6Mq0f3RQSfBl/3pl3OjGwfAmoYPx6 GDmzr5+dD3oPGqrpBN4GIz1JVgc+oBOjiGw6zah0mnBSAB9bkZRnqjpTbwGftX01SePb JeTDRNP/baFIqD1iXjlZ550ZiSUQU7Vsmd50ftd7Iwp2UH/3pSicqXV4o2czKeG8UPZ0 5OyJn3T9ESBKGo0ScBXKqMiY0B4Tw3vFQN9od176MH7DRv6D4IVKObEHnOfZpDZB1Tlc nyWQ== 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=uXvAFOr61BrqTNZhn9bdXGtvtyIjWrt8mPBcC9uNb4Y=; fh=8Ik7zDRjiOIOAoZwHpP0KbNnxymW6ydkuo/3ngRq2+U=; b=IiW/zKKCnvG73mJd0IHxVd3wFyjW5iPUiLXc7Fmt0w8L7HnDWdBoFp5QSqm4LtHM9R FQo0xvli9SKdF/clrsywhpMEH9GJzmdIRCF2FRIp6rkic7vMXKRD+J/oFxcjGMOJNn6h VwVwOX15tUUu4we8k35A/b/pe3xkrXlfWd+gpp9ag6mrz1HuV9h83niLuJmcUGetRiaR xYcN+RZYZaJWDItiablYoEY3N9+LOG+HF0RMFrbMZ+76hvlicZl6lQrmmNulp2QfA3Gt da+6huHcY/1c6lgsE3Q/thjCGM/7fgxhwSD5QhzvTu1W3GZrvHbsnswp+vJ4q+Q3L4jJ Smyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a6+WVnlG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cq18-20020a056a00331200b0068e486a14e1si10053877pfb.163.2023.09.25.05.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 05:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a6+WVnlG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 46B52822B2D2; Mon, 25 Sep 2023 04:53:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbjIYLxV (ORCPT + 99 others); Mon, 25 Sep 2023 07:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231284AbjIYLxR (ORCPT ); Mon, 25 Sep 2023 07:53:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B797D103 for ; Mon, 25 Sep 2023 04:53:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29217C433C8; Mon, 25 Sep 2023 11:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695642790; bh=YRhfpioOfX3S6JRC0rfosLAUExubXaO5w4Y65Hn0l3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a6+WVnlGezj+qtyUXIXhLe67qX3OJQ0fWbhw0S038ekCwzLpi1+NXHMKhdQ29V3dN 4167nqxFrnEgn32OxJsYLFgw3ZLa3EskOVouzXgoCTZ0bomEP9Ex3uKrO4HfONA0UC 2YikxQkceBk2dE0PiFOjpvUJKNUwPM34/92yujU5KTQOaJ9fGp6+1Sqn6cSKPP6rGj gxvYjvqLBagF8b4uUSyjQ3zhTe98iCSg90cezYi/0onijme4eTgeDETP9OXjzfyjxm cyHBdGCgOVJZARPG08VigXX7vVPioD7eZxY8BrLaZzYC1fy5J1a/RPGfWvf/oWWQ3K T+XBUulr4kvmQ== Date: Mon, 25 Sep 2023 19:53:00 +0800 From: Peter Chen To: Xiaolei Wang Cc: pawell@cadence.com, pavel@denx.de, rogerq@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] usb: cdns3: Modify the return value of cdns_set_active () to void when CONFIG_PM_SLEEP is disabled Message-ID: <20230925115300.GC2070044@nchen-desktop> References: <20230920144045.2165758-1-xiaolei.wang@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230920144045.2165758-1-xiaolei.wang@windriver.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 04:53:29 -0700 (PDT) On 23-09-20 22:40:45, Xiaolei Wang wrote: > The return type of cdns_set_active () is inconsistent > depending on whether CONFIG_PM_SLEEP is enabled, so the > return value is modified to void type. > > Reported-by: Pavel Machek > Closes: https://lore.kernel.org/all/ZP7lIKUzD68XA91j@duo.ucw.cz/ > Fixes: 2319b9c87fe2 ("usb: cdns3: Put the cdns set active part outside the spin lock") > Cc: stable@vger.kernel.org > Signed-off-by: Xiaolei Wang > Reviewed-by: Pavel Machek > Reviewed-by: Roger Quadros Acked-by: Peter Chen > --- > > Changes in v3: > - Add Cc: stable@vger.kernel.org > > --- > drivers/usb/cdns3/core.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/usb/cdns3/core.h b/drivers/usb/cdns3/core.h > index 4a4dbc2c1561..81a9c9d6be08 100644 > --- a/drivers/usb/cdns3/core.h > +++ b/drivers/usb/cdns3/core.h > @@ -131,8 +131,7 @@ void cdns_set_active(struct cdns *cdns, u8 set_active); > #else /* CONFIG_PM_SLEEP */ > static inline int cdns_resume(struct cdns *cdns) > { return 0; } > -static inline int cdns_set_active(struct cdns *cdns, u8 set_active) > -{ return 0; } > +static inline void cdns_set_active(struct cdns *cdns, u8 set_active) { } > static inline int cdns_suspend(struct cdns *cdns) > { return 0; } > #endif /* CONFIG_PM_SLEEP */ > -- > 2.25.1 > -- Thanks, Peter Chen