From patchwork Wed Jul 1 15:47:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1321105 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=konsulko.com Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49yB5q1k79z9sR4 for ; Thu, 2 Jul 2020 18:26:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C63D181C2B; Thu, 2 Jul 2020 10:19:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 14EE581A2A; Wed, 1 Jul 2020 17:48:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 495888006D for ; Wed, 1 Jul 2020 17:47:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f193.google.com with SMTP id c139so22565856qkg.12 for ; Wed, 01 Jul 2020 08:47:58 -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=p7GZjeS0O4ZacC2s8UyTofafYdYvgZ5OItNkKHU2yhU=; b=Mwfq1y2vkgrqhLMyvJjvjQ9A1Ka/j5MnolYy53f2H2livX2Af/SwPkt9NAus/atCyS Ay4q+mh9oAbvDUpnjRVqtvgwFk/iCIHv3drDzVZXwfLC4puEU/FkHZkdgK+xc7zdmSfD zYZQ8noOzdc/zlpegn+GFPcAvS/wy460CpnvPqyZHk46jaZS9HSQFrhEo/wGvnlND3vF Mm97txfM4dV6RB+yRRBNyfR5/DY/4BUNXLySJyyNehJ30c5AFdNUqg9bndJrVBN567nD lidmLDul3cBEZbfu94EzrIl/DX1qDGdhY1Jm0ik4mb48zhDdFlr7sUn95g41EI0kcKeK ZTOA== X-Gm-Message-State: AOAM532KYqQiZ+eVYc+QZLxOcHwfPwXQIi6Y82scb757gADIQt8b84Sn b86XuOZpwYkh7FCYWp441vcX5r0= X-Google-Smtp-Source: ABdhPJyDfrYR4Pwm4GdS0tn3eT4C5jjr/HUfCNgEnPq7kGtGAJTHF3MMRGilfP5eflDRh661+RT5rg== X-Received: by 2002:a37:de19:: with SMTP id h25mr22405722qkj.354.1593618476610; Wed, 01 Jul 2020 08:47:56 -0700 (PDT) Received: from bill-the-cat.local (2606-a000-1401-8080-ec0a-caad-63a9-299e.inf6.spectrum.com. [2606:a000:1401:8080:ec0a:caad:63a9:299e]) by smtp.gmail.com with ESMTPSA id n28sm6429526qtf.8.2020.07.01.08.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 08:47:55 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Jagan Teki , Kever Yang Subject: [PATCH] pci: rockchip: Mark inline functions as static inline Date: Wed, 1 Jul 2020 11:47:52 -0400 Message-Id: <20200701154752.12805-1-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Unless we mark the function as 'static inline' it may end up being non-inlined by the compiled and result in duplicate functions. Cc: Jagan Teki Cc: Kever Yang Signed-off-by: Tom Rini Reviewed-by: Philipp Tomsich Reviewed-by: Kever Yang --- drivers/pci/pcie_rockchip.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pcie_rockchip.h b/drivers/pci/pcie_rockchip.h index c3a0a2846d45..845d5059e111 100644 --- a/drivers/pci/pcie_rockchip.h +++ b/drivers/pci/pcie_rockchip.h @@ -130,13 +130,12 @@ struct rockchip_pcie { int rockchip_pcie_phy_get(struct udevice *dev); -inline struct rockchip_pcie_phy *pcie_get_phy(struct rockchip_pcie *pcie) +static inline struct rockchip_pcie_phy *pcie_get_phy(struct rockchip_pcie *pcie) { return pcie->phy; } -inline -struct rockchip_pcie_phy_ops *phy_get_ops(struct rockchip_pcie_phy *phy) +static inline struct rockchip_pcie_phy_ops *phy_get_ops(struct rockchip_pcie_phy *phy) { return (struct rockchip_pcie_phy_ops *)phy->ops; }