Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12A4CC433E0 for ; Mon, 22 Mar 2021 20:40:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D4F0E619A8 for ; Mon, 22 Mar 2021 20:40:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbhCVUk1 (ORCPT ); Mon, 22 Mar 2021 16:40:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:39272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbhCVUkI (ORCPT ); Mon, 22 Mar 2021 16:40:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id D516961878; Mon, 22 Mar 2021 20:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616445607; bh=uOeMl8pGHKXuKl95ml116zP4b3bwod87xUannPmtFbo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=IhZarDGyPWKpokrFvuaSTUpEp8CMJ7ny8mTVePUmFj2cylNnz/44P2ZcRrAd3jJ96 IoD56R6OYTpp7vmp3FUag8PlnS3I2Ilxs0srKEY1RKBO7GcGwrGOmAH+qrlREVclK/ Izs/7crq0CQ5w9YHi4qo0OnE7wVLouEU/HSeB7g4XsOgLzPt8jJoSSO9G9AgUwp/2+ RLw6eyzlPK2Ce5mL7GcTqpppqJ3a8bSGR7tFx3t8NTSNMc4lQrQh2I3WK+I10JUGvI KciO8GcQhlqNY+VNQGUT6KP6X/CzOp76jWkmpLha1uZhHHMdW2WRq/m12yqypt34uN w1EfHLf07BgEA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] net: stmmac: platform: fix build error with !CONFIG_PM_SLEEP From: patchwork-bot+netdevbpf@kernel.org Message-Id: <161644560778.2928.15414100425036462948.git-patchwork-notify@kernel.org> Date: Mon, 22 Mar 2021 20:40:07 +0000 References: <20210322122359.2980197-1-weiyongjun1@huawei.com> In-Reply-To: <20210322122359.2980197-1-weiyongjun1@huawei.com> To: 'w00385741 Cc: peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, kuba@kernel.org, mcoquelin.stm32@gmail.com, p.zabel@pengutronix.de, linux@armlinux.org.uk, qiangqing.zhang@nxp.com, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, hulkci@huawei.com Precedence: bulk List-ID: X-Mailing-List: kernel-janitors@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 22 Mar 2021 12:23:59 +0000 you wrote: > From: Wei Yongjun > > Get rid of the CONFIG_PM_SLEEP ifdefery to fix the build error > and use __maybe_unused for the suspend()/resume() hooks to avoid > build warning: > > drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:769:21: > error: 'stmmac_runtime_suspend' undeclared here (not in a function); did you mean 'stmmac_suspend'? > 769 | SET_RUNTIME_PM_OPS(stmmac_runtime_suspend, stmmac_runtime_resume, NULL) > | ^~~~~~~~~~~~~~~~~~~~~~ > ./include/linux/pm.h:342:21: note: in definition of macro 'SET_RUNTIME_PM_OPS' > 342 | .runtime_suspend = suspend_fn, \ > | ^~~~~~~~~~ > drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:769:45: > error: 'stmmac_runtime_resume' undeclared here (not in a function) > 769 | SET_RUNTIME_PM_OPS(stmmac_runtime_suspend, stmmac_runtime_resume, NULL) > | ^~~~~~~~~~~~~~~~~~~~~ > ./include/linux/pm.h:343:20: note: in definition of macro 'SET_RUNTIME_PM_OPS' > 343 | .runtime_resume = resume_fn, \ > | ^~~~~~~~~ > > [...] Here is the summary with links: - [net-next] net: stmmac: platform: fix build error with !CONFIG_PM_SLEEP https://git.kernel.org/netdev/net-next/c/7ec05a603548 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html