From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753638AbdEQXDb (ORCPT ); Wed, 17 May 2017 19:03:31 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:34929 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbdEQXDa (ORCPT ); Wed, 17 May 2017 19:03:30 -0400 From: Matthias Kaehlcke To: Kishon Vijay Abraham I , Heiko Stuebner Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Douglas Anderson , Matthias Kaehlcke Subject: [PATCH] phy-rockchip-pcie: Mark phy_rd_cfg() as __maybe_unused Date: Wed, 17 May 2017 16:03:16 -0700 Message-Id: <20170517230316.191259-1-mka@chromium.org> X-Mailer: git-send-email 2.13.0.303.g4ebf302169-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function is not used, but is probably kept around for debugging and symmetry with phy_wr_cfg(). Adding the attribute fixes the following warning when building with clang: drivers/phy/phy-rockchip-pcie.c:102:19: error: unused function 'phy_rd_cfg' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- drivers/phy/phy-rockchip-pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-rockchip-pcie.c b/drivers/phy/phy-rockchip-pcie.c index 6904633cad68..f8c6846094c0 100644 --- a/drivers/phy/phy-rockchip-pcie.c +++ b/drivers/phy/phy-rockchip-pcie.c @@ -99,8 +99,8 @@ static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy, PHY_CFG_WR_SHIFT)); } -static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, - u32 addr) +static inline u32 __maybe_unused +phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, u32 addr) { u32 val; -- 2.13.0.303.g4ebf302169-goog