Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1931C433EF for ; Mon, 1 Nov 2021 06:15:56 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EFAD660F42 for ; Mon, 1 Nov 2021 06:15:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EFAD660F42 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 654C28352D; Mon, 1 Nov 2021 07:15:42 +0100 (CET) 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="Sd2+BVFT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3741483389; Mon, 1 Nov 2021 07:15:35 +0100 (CET) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 D84AD83323 for ; Mon, 1 Nov 2021 07:15:29 +0100 (CET) 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-pj1-x1030.google.com with SMTP id o6-20020a17090a0a0600b001a64b9a11aeso4427222pjo.3 for ; Sun, 31 Oct 2021 23:15:29 -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=xAxARSihCrVA/eJgJmfxVBv93fcw12OUo1BBBoSyC1A=; b=Sd2+BVFTSyvt/5307pcOOfpT9rAhFzlsXr5G7qU879BaQkAPlLSVn1r1bux/1YRbU3 OtxbUMGxoaMji97ilEzbmKqy1q2U8q0j6a6grOXDFUQQyBd81YEp5XgKkvF5S2tfs3/B hnH9kpzshw5eFjr2ByC8IQnerEg6H3aoaPVt8CmTWd09H/ubjkUUyyT2Fx0jE40Je7Gt r3OTLMCcT/PuG5aOblqruNYtilUZGdr4jfAKIzew1uKuin9izikzAbjWhkgiEbfiO4qm Im6YlYPJ8gWvZLCldHJM0e8Wdde78wKt9WgkR+52YaDQsiDFMcZJSHszHY3aBxIE8ksh lkjQ== 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=xAxARSihCrVA/eJgJmfxVBv93fcw12OUo1BBBoSyC1A=; b=bOjRIcDq1SMUCe/S4j7TGW4NBxvqOhQVUfQt+oTo+8LlNCvM953xKWIuocyrq6367N iRvAwvbPsbVRnmO5pCavD/SnPys3UFgaOlR+MV6YJQVxdGGc4Bnhx+AKczLrzMoPKAQ4 IdslAls++4xb+gHwfHwL5NyYwoXiDyLBXv1E0dtTSpmeF3wOHOj4fVvqdqL9DOxdd7U8 MuuQBLn/GK5OWjYCVwZgSlCM3TKe14EtN5Y1tIUeMU7X1pIHKFMPuxEVCi1SycWrPt8t NlzzPQ/zD0yGz09o/MxqLd19JiQrQE7+0RYyk1oPn++KCwNT408pgzWWA5vZ64lTh+oD /lLg== X-Gm-Message-State: AOAM5309zoDta11ff+8jWVOj7gqcyBqTpySn8qnQrRYcQJApzB9JbP7m jckRcxBVkguZGlceForleP7DSyycW6s= X-Google-Smtp-Source: ABdhPJxcBiHtnu+doe1SgVZx47Dh5PBduidIOBEQxYwB/YYSjvC1p/m2ZfuxvqZ8vPiYMbeZ5g0AGg== X-Received: by 2002:a17:90a:6b0b:: with SMTP id v11mr28053068pjj.178.1635747328247; Sun, 31 Oct 2021 23:15:28 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (unknown-176-192.windriver.com. [147.11.176.192]) by smtp.gmail.com with ESMTPSA id d15sm15430917pfu.12.2021.10.31.23.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Oct 2021 23:15:27 -0700 (PDT) From: Bin Meng To: u-boot@lists.denx.de Cc: Vladimir Oltean , Ramon Fried Subject: [PATCH v2 3/3] net: tsec: Make redundant_init() static Date: Mon, 1 Nov 2021 14:15:12 +0800 Message-Id: <20211101061512.3277805-3-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211101061512.3277805-1-bmeng.cn@gmail.com> References: <20211101061512.3277805-1-bmeng.cn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- (no changes since v1) 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 4354753cab..3dd00a4a40 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -443,7 +443,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; -- 2.25.1