From patchwork Wed May 17 23:03:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 9732013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D69BC601BC for ; Wed, 17 May 2017 23:04:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80A0923F88 for ; Wed, 17 May 2017 23:04:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 753CC287F3; Wed, 17 May 2017 23:04:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12EA423F88 for ; Wed, 17 May 2017 23:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=C9tIw005/eHoYWqJYOYLUvivqqpgZQAbD+Dsif56jHw=; b=pe7 IEYiqwikTP2qMJSFYAFqAUM2Ksz5c0NOx2Mp6EWvnOgj+GCod1ykB9sOc0QPs6QqGzUMTHwi7e1sS 9oxTCNBcVVedSJsrKZWfGwzKOU3IUmVsBcGwikZOElzYd2a7j4j00xPx5zDTiZEaEK/+Q3uOoeUOY /zK3sPKtg0BgYNmOvPqCrrStMQGNssl1gmKHIwBUOEEg36HJwL0UYSckEhe/dmCxuvg7j+T2Ipcqs 05kwT9VTXxHdfj3aLa1519zMG7yAD1WrFVQNLxXJLh7KJTLuFA0in0l2xUzpJtUQShJgfP4LV6c3S eDqlUgg3R1M0AG38/Mzxh82yjkIPx/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dB7zI-0001JR-8H; Wed, 17 May 2017 23:04:12 +0000 Received: from mail-pg0-f41.google.com ([74.125.83.41]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dB7yx-00010y-78 for linux-rockchip@lists.infradead.org; Wed, 17 May 2017 23:03:58 +0000 Received: by mail-pg0-f41.google.com with SMTP id q125so13631129pgq.2 for ; Wed, 17 May 2017 16:03:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=C7yLHV24jbcKUWAxsy2kVfyrYIdceNWUQOKBJs6B5DY=; b=ueD43xHsPFNfIR87WeeMcacJnCxaV9ebMvVMrsUj8sJyjSJOs3mxkjtlLND54caJ0y ZHZWSW4TgsULpsyORrTD1kzag48FYW4rZlUq/n6giYvzOa5vz9G4QUwy7hnFhojowRSI xgZU0KdbeWjiX1dqR6sLqMqCg47/8VsSphvGqgOfeip1qRLGlPRxbAB5II9ncorLuq9u Qvh9cs2gs/rym/30GmRqC9CHQ/osHvGrK3QzNGtjWoXt7cuZNpzxmTkNz4f2OL9idPwo /uXXioQnrU0d69O5RozrpIKOMtWzlb/t8V2+vZZ6StagdfqEYGNxEIyPVBIU0hel9lA+ srog== X-Gm-Message-State: AODbwcAZgE5LkN8ivcQQzeiarpE2az9ULAaWXxFgBgWKPGoUJ6hrY3ju G86InnBw/i5lcRKh X-Received: by 10.84.130.35 with SMTP id 32mr1118281plc.24.1495062209760; Wed, 17 May 2017 16:03:29 -0700 (PDT) Received: from mka.mtv.corp.google.com ([172.22.64.162]) by smtp.gmail.com with ESMTPSA id q4sm5459973pgf.9.2017.05.17.16.03.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 16:03:28 -0700 (PDT) From: Matthias Kaehlcke To: Kishon Vijay Abraham I , Heiko Stuebner 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_160351_291729_45C6B9FD X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Matthias Kaehlcke , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Douglas Anderson MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Shawn Lin --- 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;