From patchwork Wed Sep 29 05:50:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1534215 X-Patchwork-Delegate: rfried.dev@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=XIFynuOL; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HK58r5WFSz9shn for ; Wed, 29 Sep 2021 15:51:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF58383251; Wed, 29 Sep 2021 07:51:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XIFynuOL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E4EA883223; Wed, 29 Sep 2021 07:51:02 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (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 9E54D831FD for ; Wed, 29 Sep 2021 07:50:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pf1-x42a.google.com with SMTP id n23so1019043pfv.4 for ; Tue, 28 Sep 2021 22:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qUCu0YzS6FNV+x8wzBcJ0kxE815k/7IMB64mJA8YDdQ=; b=XIFynuOLMv4pOq1nagIwb3VIEVRF0PsYpR9aLs9PQGkI/qwAbQOdXBRqqzSbAD76Ac bXj2vOaHhSkvchjJLYrXF1qBkppiq+qvJOWSwy4ZsmMlQj2RjJo2sDXswlTe6bFQL1GK 94utHx5vR2y3BkHlOEERQLnTdEen+HApoScXKM9/F5RYTL2GKVNmgiRM5n8QeNL5oto3 S2B7KR5/Y+JqtDi/jrx23BlyRE3SUvUn5AfWV22MSj0l8o5GHQREVFdu+nw4f5R2HPzp Dn57Jjh18evTFJzf2fEvmu0aYCQLo3m0wZn1adgCreERyTtUu9woOHQOlZZMWts3W3pw 8qIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qUCu0YzS6FNV+x8wzBcJ0kxE815k/7IMB64mJA8YDdQ=; b=ojs8veFLfMM88/l2llnrhDkORKpEi0dgnR5YDOqayWUtpEMALpr4MOUV0xCwQNIuT+ GudpnDKdgueIeahmqGIsgPk/M7EQZ6xqe01U2OdednYYGUNHV2piYYWxO/0lQe85oUXy RHh+KD2V8vZopNO9UNVqDtgqd90DaHa/YZjCVvPfETEK3um+yKuJu9+qNStXz5DjOaeZ UXEBRtgYDkBK56/xoATclzTvjY5OXnNb22QrJLOQ4n0BqqkxKLrnfD+yQO8Fj5fKtDwo 3aeEN2odTXHdEKo7Zij5RwAYt0X72Jyjk5LGEXTgw/J8+QLFBa6pBqHICkfzfNIB1a3I RGug== X-Gm-Message-State: AOAM530BopTTR2dx45AKEHxE7QdrRnqAWEm00NGs7N6hCSZ8VqvEQclD /rhzzUR7E3gP5AbWbVfOH9o= X-Google-Smtp-Source: ABdhPJz8DkpPgDb/iJVULPqTEiQocWfAlNomyX72KVuGGlntM3iClzjKff/jGeLO2Q9TTuuZlGRxJg== X-Received: by 2002:a63:6981:: with SMTP id e123mr8123151pgc.419.1632894654972; Tue, 28 Sep 2021 22:50:54 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id r76sm981466pfc.2.2021.09.28.22.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 22:50:54 -0700 (PDT) From: Bin Meng To: Ramon Fried , u-boot@lists.denx.de Cc: Vladimir Oltean Subject: [PATCH 3/3] net: tsec: Make redundant_init() static Date: Wed, 29 Sep 2021 13:50:46 +0800 Message-Id: <20210929055046.4326-3-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210929055046.4326-1-bmeng.cn@gmail.com> References: <20210929055046.4326-1-bmeng.cn@gmail.com> MIME-Version: 1.0 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.103.2 at phobos.denx.de X-Virus-Status: Clean redundant_init() is only called in the tsec driver. Make it static. Signed-off-by: Bin Meng Reviewed-by: Vladimir Oltean Reviewed-by: Ramon Fried --- drivers/net/tsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index ee820aae15..b433e411bd 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -432,7 +432,7 @@ static void tsec_halt(struct udevice *dev) * of the eTSEC port initialization sequence, * the eTSEC Rx logic may not be properly initialized. */ -void redundant_init(struct tsec_private *priv) +static void redundant_init(struct tsec_private *priv) { struct tsec __iomem *regs = priv->regs; uint t, count = 0;