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: 9732011 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 EA1B1601BC for ; Wed, 17 May 2017 23:04:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92B2323F88 for ; Wed, 17 May 2017 23:04:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 840C3287F3; Wed, 17 May 2017 23:04:02 +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 31A3A23F88 for ; Wed, 17 May 2017 23:04:01 +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=QchEWTXrhwEK3RtzJnVa+MEB0Z2SqMdKrlqfVCAmH+4=; b=nQ0 KQ0UsPnI14hkCFTNliaY0IMkchryKaXp0GDgAJmToh3QqCf+tI4iAkWht/wn6px5LugeH7VInbGkj ilO/ScYsMTSi3fJthF4grzB8tSr5sUVXenuwq8Cdcta8oVjvsvX89huFo3VLB5l9WA4kRVxtEypNh 0nlZZbMDfjhfuh2OfODSZJazj+AWiHNjM0IUpPdGxDWGCG3SgiqImudIb1lG/GIMo3o89slx3lf49 sS7OuquEYXqRSG0J4HCzWfy+Ge3W8Zmpu3jRP+D1l+KKZd/XfUpMMo7ONtfFBU1FNKenQbmqBvQXs 0YyWVpLrkOqfACwR17e23PMXTMO+IDg==; 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 1dB7z5-00017A-O0; Wed, 17 May 2017 23:03:59 +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-00010x-5X for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 23:03:58 +0000 Received: by mail-pg0-f41.google.com with SMTP id u28so13666887pgn.1 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=MGfJqpySyITePu38nj4CdbMQTDNSg1upcNTrQrLtTFxI/rnMImpc/6tq5b/Dv0yOAv pGoL4Ix1yiwEOQ1pUxl4Fi86OHDNAgC/I+/0UEH2z28ZJymDcB3XwGPCAN2kDnYJGwmP c/o4oMJNxo8ZmdG+dBoRjLRSPHyV1Z1g6JhU0MPITTesNNka/ww7GWWTWsSK5gRXv0SY gZMKQ1u1D8hFxtgXJMyX6jbjQmaFu2U6nmpCaIszpPgvikdy0gYcoup++vDzRAgVbipm t71GLHfPVaMwocwSpgzzAA4wkIK5OM2rVlKXa9rxV7jW9zlUrKP9SPCiEgM3+cAq7Aiw SL9Q== X-Gm-Message-State: AODbwcBgvCXcJA18+pl2sycc9MvTPJCDHeUHLrCUR2UDfcS9nYOGF5WB IM1g3+uAK8GE11pS 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_374493_CCC56BB0 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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;