[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aAnibPAln1kS+KHO@linaro.org>
Date: Thu, 24 Apr 2025 10:04:12 +0300
From: Abel Vesa <abel.vesa@...aro.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bjorn Andersson <bjorn.andersson@....qualcomm.com>,
Arnd Bergmann <arnd@...db.de>,
Johan Hovold <johan+linaro@...nel.org>,
Krishna Kurapati <quic_kriskura@...cinc.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>,
"Rob Herring (Arm)" <robh@...nel.org>,
linux-arm-msm@...r.kernel.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] usb: dwc3: qcom: use modern PM macros
On 25-04-23 18:26:09, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> The use of the old SET_SYSTEM_SLEEP_PM_OPS/SET_RUNTIME_PM_OPS macros
> without __maybe_unused annotations causes warnings when build testing
> without CONFIG_PM:
>
> drivers/usb/dwc3/dwc3-qcom.c:421:12: error: unused function 'dwc3_qcom_suspend' [-Werror,-Wunused-function]
> 421 | static int dwc3_qcom_suspend(struct dwc3_qcom *qcom, bool wakeup)
> | ^~~~~~~~~~~~~~~~~
> drivers/usb/dwc3/dwc3-qcom.c:457:12: error: unused function 'dwc3_qcom_resume' [-Werror,-Wunused-function]
> 457 | static int dwc3_qcom_resume(struct dwc3_qcom *qcom, bool wakeup)
>
> Change these to the modern SYSTEM_SLEEP_PM_OPS/RUNTIME_PM_OPS/pm_ptr
> macros, which avoids the warnings and improves readability at the same
> time.
>
> Fixes: 1881a32fe14d ("usb: dwc3: qcom: Transition to flattened model")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: Abel Vesa <abel.vesa@...aro.org>
Powered by blists - more mailing lists