Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1148882rdh; Mon, 25 Sep 2023 04:59:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhhPWnufOWesSAq0ke7Ik/pessTFsI0ySP/NrYscJw2S8wzGoKzXMpW6cmtUrMMLgHAl02 X-Received: by 2002:a17:902:748c:b0:1c6:25c3:13d3 with SMTP id h12-20020a170902748c00b001c625c313d3mr642698pll.6.1695643148716; Mon, 25 Sep 2023 04:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695643148; cv=none; d=google.com; s=arc-20160816; b=zNY8PNnIou3Lc4QUSOxus5F1V4rBMR78lqeIvoTiPUPeDNvpDTrsakIQ8AmfqL+GCx a6Tc5PdqkQiRZ8lYkqOPLmIbsxmUzKJnDr9bMkCwSm3CvuTUAh1cRdbx1Dfdu6QoQhFr 85cIXFeUcCaXgeSb6n0A1KZxawpqahg4IdZ5mIulitioqj65AXtwXy9uxFFcauGPWTx5 Hzw5QLk3I+VtOxg94NW6vioEOTuC4lEoNHJCfhvwmuIGfrI6p/JGKj1gUavEcSRR+pF5 jf7z9Cb2qjCRGHmqg64WuTSRKND/olsh0vxdvCIihGYl5xGL4dIru6Oeez55RbXI4Ypn nQqw== 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=IBf4xPm96EUzGJRCCOvJeCv1IaOjo2s1DiH7fYGPKgw=; fh=8Ik7zDRjiOIOAoZwHpP0KbNnxymW6ydkuo/3ngRq2+U=; b=nWFRCDp2n+yr3f/HDkL+uUKNwYWfFu3UBz/HV1nr43yDeS8+defviTJV7kfnHF+0JX i7cDEbcCOZalOWfEKSBn/6gWt9cyZEsnvOXpMMFjwlFfvp8sA5tedMW2zbzz73UZeIv/ SHnAbbEdfNLK5coVOFIrcT/YH9SWe9G1ZrPAl3j/pDRZ3ZVPoHsjg0wBhlOk9AI/p9qx tF61QoR27x+mPE54pSnkJv7rfolQqeJtl9ZWBlhx0QHCOc+N2KjqgDplBqs2eno+ebFV 4llEN7Lbsh4w/NqG/TgGpVLbBberr8YJwwKmVDFE1/aFSZj2CwHsRmqcFs9VYaME/hoU EUvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T2+C6At+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q7-20020a170902dac700b001bc650255b6si2422040plx.390.2023.09.25.04.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T2+C6At+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id CFF7280947DA; Mon, 25 Sep 2023 04:58:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230337AbjIYL6V (ORCPT + 99 others); Mon, 25 Sep 2023 07:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjIYL6U (ORCPT ); Mon, 25 Sep 2023 07:58:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C1FAA9 for ; Mon, 25 Sep 2023 04:58:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D001AC433C9; Mon, 25 Sep 2023 11:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695643093; bh=fnrScfrKmcUIyzu4ZV2T/hRDgwvbstyPfcJB+K3Mt+E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T2+C6At+KWCOneZdF9ndelbxD6lIlwEqLD5B4GkLJVvPLAugbJF8PLgU/BjUeBdo5 cgcVcJLgJrZ1DRyBNc4dy5vsGnQ4z381cE68hRpDY1CFhHHGl81GpaRPzqjnmiQ4rU OiLAys6htFg9zDX3e/XxSGLwRwakQQbhf14KxSVafObTTeKY6yjLw15m8UvpsJNZGA slYjF1U0+VbCdXV8JqrjgI/daRFJFKbQ1s3+uHG5Zv8saXDZzbbnIzNeNmpD8e6dkV TeTyhnrONUryeHgjgFn3fJ7Rh8SCcCyV9TjK4KlpCPcbiQAp2KB5y8FeeNECF2jvkS xyJspr24HZCXw== Date: Mon, 25 Sep 2023 19:58:03 +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: <20230925115803.GD2070044@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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 25 Sep 2023 04:58:30 -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 > --- > > Changes in v3: > - Add Cc: stable@vger.kernel.org > > --- Above "---" doesn't need. Peter > 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