Message ID | 20230321122503.1783311-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1746796wrt; Tue, 21 Mar 2023 05:30:45 -0700 (PDT) X-Google-Smtp-Source: AK7set90HBI3f4pgLKPgP/CUsDRFWRKq6KxFdEp16oHn9daHS2GVarCLG+s2luKE1MZrmMKL0wQk X-Received: by 2002:a17:902:d50f:b0:19c:eaab:653d with SMTP id b15-20020a170902d50f00b0019ceaab653dmr18472406plg.15.1679401845635; Tue, 21 Mar 2023 05:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679401845; cv=none; d=google.com; s=arc-20160816; b=q/7epBj4BBw8HMlWuEg0xjmJ0HPB63ZuwEEDWe5lxhWo3UonZ8k/kq0oytgu00njst rxH4mYtcupNIRSON+xNPMy3T3ktNk/W64BPtHwzzuDEdCqGLD4bvEL+1QA2hx8TtCECx RALocbXyMN6vnaBSaJ/n9MlSPKnJXNJpVN9CHfbAH59rECLjcx3uyJb/vKAIj1kINRdo 14HlrtD03cFIe6kVLnVSe687I6AQJiyjf/6bLUxLkaPJcP99rpvHmdDF73qGWOl8vfNG dbUk1ZZqAvqm7hlU+AdOYVCrx/qzf/Fw2lv2CM5EdziIYj8jJtJ0JfRBs3KDOuRh/QYa b4nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DvleXWzKo7owjdbsJ/ezqbFS/5grOQZp7Yc6+zUXHrg=; b=mr22Y47NeR3C+phvZp8gd6ZKqrO9WNxTHGYa+xw046gXbNZ90g4jmAq9FRD3JVhf/q ZY6VwMDDNAjSpEuEQk5Rly55AgN2nulWjJLZ0uB03B27YrO76HZqTJa/rhK/PgPAwJMI a8St4puQSd06lOoOq32nTb7/DaKGC+CMGfLQY1e4cVBBVriWyBiP2Wrzlc1c2ypJeCPI LP7rWw5oNIfnvpk1kmQTl4XHN/2QmAPq0dnTxncmmEq6H19CFvGPnRE4vfI8CDLuJ8op F5FX/k0XD3XSKoUAoXujAumaT8K1XJEDWTEsrKVFIhTAj4rtmit7K8K+VDEwSnHUbmk/ jTsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KGlBCa8O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a170902e84a00b001a1abd9a0a1si11797792plg.313.2023.03.21.05.30.30; Tue, 21 Mar 2023 05:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KGlBCa8O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjCUM00 (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Tue, 21 Mar 2023 08:26:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbjCUM0O (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 08:26:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F8311150 for <linux-kernel@vger.kernel.org>; Tue, 21 Mar 2023 05:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679401509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DvleXWzKo7owjdbsJ/ezqbFS/5grOQZp7Yc6+zUXHrg=; b=KGlBCa8OPgPzMHttZyOgfjt3mVZE7IjmQbGQjzA/R+ad3aqyeHd8P/cOjSN/vdT9UYrnHn BmpVQESFBV8Iaas9g7rur9/eH68zFdX2lpnVMjecXFkPAU+4BdjrGBqgFbV92BsQFy3rAs ImTWsacUtdY7oCBwWH6a9gzXNJWoK4E= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-13-Cg4aVCmXMQ2EbOY7l-Lk3g-1; Tue, 21 Mar 2023 08:25:08 -0400 X-MC-Unique: Cg4aVCmXMQ2EbOY7l-Lk3g-1 Received: by mail-qv1-f71.google.com with SMTP id g14-20020ad457ae000000b005aab630eb8eso7546783qvx.13 for <linux-kernel@vger.kernel.org>; Tue, 21 Mar 2023 05:25:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679401508; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DvleXWzKo7owjdbsJ/ezqbFS/5grOQZp7Yc6+zUXHrg=; b=42+0AjQF1EWbG17e1wcxEiiTI8Sv1q6PhuPNJo4gTtrJzsXreE54XrMio+vo/UOi7T YiljGoF1aPa2cNHsi2aNp+MwQBk6JDV8tCtwJDJ6Fy3BxKAvygoXgJOcY2uRyc2XWq4b j86IvYPVxR9ivCN7iBeaMjKZZwIzy6oGKacUuvgNlCJ2HrZzXUFPiNdczUMH7i8xnB2r PDVDtpZ+AtnP8mEkFUFtcRfoNXcl0f0RJLM8imYrP7usckNOBLB0LJOk+5yMy9RyPBCo WIKPRXUrAIwQbtyXMgmSTB3GTIVf+S6f3TPpsTwOfS3V9n3eLrsubklfAxVHk/1rAtw3 Kkww== X-Gm-Message-State: AO0yUKUfPVOVRNQSOaMf4LLjpM2cRZuh3vq2YlFlyuAEil3msE4Wnq+J MpwF5DWAXeMaxtA+u1ZMKeYB4g9XZIGCd5ajp0mhZGoJLMZcBRra9TLTfsAwa8ZMM06/wsw55ok aktJtupEDkwjEV0+hT0y+j68a X-Received: by 2002:ad4:5bc8:0:b0:5ad:45f2:4307 with SMTP id t8-20020ad45bc8000000b005ad45f24307mr4916131qvt.11.1679401507832; Tue, 21 Mar 2023 05:25:07 -0700 (PDT) X-Received: by 2002:ad4:5bc8:0:b0:5ad:45f2:4307 with SMTP id t8-20020ad45bc8000000b005ad45f24307mr4916111qvt.11.1679401507571; Tue, 21 Mar 2023 05:25:07 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id d185-20020a37b4c2000000b007425ef4cbc2sm9192747qkf.100.2023.03.21.05.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 05:25:07 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: vkoul@kernel.org, kishon@kernel.org, heiko@sntech.de, nathan@kernel.org, ndesaulniers@google.com Cc: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] phy: rockchip-pcie: remove unused phy_rd_cfg function Date: Tue, 21 Mar 2023 08:25:03 -0400 Message-Id: <20230321122503.1783311-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760980469444027485?= X-GMAIL-MSGID: =?utf-8?q?1760980469444027485?= |
Series |
phy: rockchip-pcie: remove unused phy_rd_cfg function
|
|
Commit Message
Tom Rix
March 21, 2023, 12:25 p.m. UTC
clang with W=1 reports
drivers/phy/rockchip/phy-rockchip-pcie.c:122:19: error:
unused function 'phy_rd_cfg' [-Werror,-Wunused-function]
static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy,
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/phy/rockchip/phy-rockchip-pcie.c | 15 ---------------
1 file changed, 15 deletions(-)
Comments
On 21-03-23, 08:25, Tom Rix wrote: > clang with W=1 reports > drivers/phy/rockchip/phy-rockchip-pcie.c:122:19: error: > unused function 'phy_rd_cfg' [-Werror,-Wunused-function] > static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, > ^ > This function is not used, so remove it. Applied, thanks
diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 75216091d901..8234b83fdd88 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -119,21 +119,6 @@ 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) -{ - u32 val; - - regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, - HIWORD_UPDATE(addr, - PHY_CFG_RD_MASK, - PHY_CFG_ADDR_SHIFT)); - regmap_read(rk_phy->reg_base, - rk_phy->phy_data->pcie_status, - &val); - return val; -} - static int rockchip_pcie_phy_power_off(struct phy *phy) { struct phy_pcie_instance *inst = phy_get_drvdata(phy);