Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF31FC49EA5 for ; Sat, 26 Jun 2021 15:05:52 +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 282F761C3A for ; Sat, 26 Jun 2021 15:05:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 282F761C3A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5491482C45; Sat, 26 Jun 2021 17:05:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b="RiQf1Jr8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5569682C2B; Sat, 26 Jun 2021 16:59:20 +0200 (CEST) Received: from egress-ip33a.ess.de.barracuda.com (egress-ip33a.ess.de.barracuda.com [18.185.115.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9683082C24 for ; Sat, 26 Jun 2021 16:59:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sinthu.raja@mistralsolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx-outbound47-108.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 26 Jun 2021 14:59:16 +0000 Received: by mail-pf1-f200.google.com with SMTP id 197-20020a6219ce0000b029030a0d1ff0ffso1313905pfz.15 for ; Sat, 26 Jun 2021 07:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SoEKV1XAPPSahDUoGYLiQFs8/wf1wUu5Sz9YsGhnNOM=; b=RiQf1Jr8Nw6UOLJo7T/AQYW1NmMxIsK99Ii3z1ENkWPvz+GybF1oFsdkWqnBNlDaps uBGvz8RPQ8tysVGB2ZvtvLjl5RcN9pjEAeYFp/2eKUZbX9A6ThfaHwweEZlK3IIFdnJR R9SXQtA5yDBttxBTtRb7t3QXsPP9I4H9LRiUU= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=SoEKV1XAPPSahDUoGYLiQFs8/wf1wUu5Sz9YsGhnNOM=; b=VkawvK8NIJAXT7n1pq5CFRkBHH42SSvYBIzl4kgPbTeShib/muHscDCJgjr2nDzsC0 uq3qHA7wS97XmlcfiQyWVQlA2AnPV8+VfmLn+zfJ5NZt2sAJtquv2RjksOJfWDrArQY6 WvmWgjGCOT8Zy7wiD5rV/8nz8u6W8qpi/P2+5ACKPrLI+o2/IJ9Q5qr1TR2in3mVQhl7 7X0GcGY+Ex1ayNyXPyQMUZjbesnM1ybmW3BbSLgduyvk9hLXJpsZy+d1t18A1UqF4Sgl dlxcoLAoaPcgqG4Qd6/sSs0spr94mkomPJVgYnqKzSppcZoNZqQFQZ2ysQRQ0P4CBflG OoUQ== X-Gm-Message-State: AOAM530WsRfmfpn1jdrHiXLW7qMYCygRNqzRnmdmG9yi02AZRHRo1pl1 hNI9bhrMP/+s+/uISG3ePLLJLo4Mo4qlcbXZNKdUaklaZvOx1BVyLkC7NnhQCGjVRiDXMhChsES S7js3kLMsH9c1nbickrBqMpZGTwQ79rkGmOGHbdnBHVSG1Upx2g== X-Received: by 2002:a63:f19:: with SMTP id e25mr14564444pgl.278.1624719555361; Sat, 26 Jun 2021 07:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDCz+QXJtWToKn1vin5q2my+1VqafWNyjRY9zZ4o1Y72C5zk5Q7Bw7Aaqv8gqM/DuzRTld2w== X-Received: by 2002:a63:f19:: with SMTP id e25mr14564437pgl.278.1624719555176; Sat, 26 Jun 2021 07:59:15 -0700 (PDT) Received: from localhost.localdomain ([49.207.221.44]) by smtp.gmail.com with ESMTPSA id g18sm8769245pfi.199.2021.06.26.07.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 07:59:14 -0700 (PDT) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: u-boot@lists.denx.de Cc: Praneeth Bajjuri , Vutla Lokesh , Amarnath MB , Sinthu Raja Subject: [PATCH 04/17] board: ti: j721e: Guard functions with right #ifdef to avoid build warnings Date: Sat, 26 Jun 2021 20:25:49 +0530 Message-Id: <20210626145602.15702-5-sinthu.raja@ti.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210626145602.15702-1-sinthu.raja@ti.com> References: <20210626145602.15702-1-sinthu.raja@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1624719556-312140-3418-28679-1 X-BESS-VER: 2019.1_20210623.1648 X-BESS-Apparent-Source-IP: 209.85.210.200 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.233199 [from cloudscan11-203.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-Mailman-Approved-At: Sat, 26 Jun 2021 17:05:02 +0200 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 From: Amarnath MB board_late_init(), setup_board_eeprom_env() and setup_serial() is called only under CONFIG_BOARD_LATE_INIT, so guard these functions with the same. Signed-off-by: Amarnath MB Signed-off-by: Sinthu Raja --- board/ti/j721e/evm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index b9a9f19552..23e739bcd3 100644 --- a/board/ti/j721e/evm.c +++ b/board/ti/j721e/evm.c @@ -170,6 +170,7 @@ int checkboard(void) return 0; } +#ifdef CONFIG_BOARD_LATE_INIT static void setup_board_eeprom_env(void) { char *name = "j721e"; @@ -208,6 +209,7 @@ static void setup_serial(void) snprintf(serial_string, sizeof(serial_string), "%016lx", board_serial); env_set("serial#", serial_string); } +#endif /* * Declaration of daughtercards to probe. Note that when adding more @@ -384,6 +386,7 @@ static int probe_daughtercards(void) } #endif +#ifdef CONFIG_BOARD_LATE_INIT int board_late_init(void) { if (IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT)) { @@ -396,6 +399,7 @@ int board_late_init(void) return 0; } +#endif void spl_board_init(void) { -- 2.31.1