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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 61C0AC61DA4 for ; Wed, 22 Feb 2023 16:46:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A114985BB2; Wed, 22 Feb 2023 17:37:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="f5G4GkzL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 807C785B2C; Wed, 22 Feb 2023 17:36:16 +0100 (CET) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 AB12085B47 for ; Wed, 22 Feb 2023 17:35:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd33.google.com with SMTP id b16so2815598iof.11 for ; Wed, 22 Feb 2023 08:35:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GaluuO76YoQTuNq8hqDHjZjkRSspTDlTxmMvUc1v0Xw=; b=f5G4GkzLsIYpx46R0vYhmSCkfuhW2Y8xMYJVXYgQElTTv9reCb/gQbxPzaZbUnlUGB RoCthVHapKsVD8O0QFR1Ouaeml3NHANY/i3cePvb5qfJOF57VYn197HBT4KuRa5YpCZM lW+0Eu47tR4OSeFoN9cNQ9qjWwH7jqTP1E9/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GaluuO76YoQTuNq8hqDHjZjkRSspTDlTxmMvUc1v0Xw=; b=yemiH3TMwDJy6de6R7NJXGbN/TefYn3yfZb7psoRx7fEDYXj7TVIWNvuRK6Jo+e17Q 87w4jKUofsNRT6zTHtraFUrUFZQUOQUI8u8WeiWIpKd8LG58+KO92LsRXAkrkaT7aHQr 10U/0B7tKBarhjuK+2Emfj/8s5N588YCUwpkSWJdB81h49N1gRRHwRsPqqvINC9OMdjK fzoGGPM/zbvUZZTvmDhlBY4q8yLP6mBmOh7g3dPH8arfERzrJm8g3vlh0FMr8ajUvOfV EYdVqmVKf2anexv9ZQgbzCDz7tksk9HXVwpT4gm/PmjiBbcChI1eFAqNblWLo43HcAxE GAJA== X-Gm-Message-State: AO0yUKXKZKPdLaxwjb26p4+tet/NDOv/7qwIxCk1v8LlWxRbos7CIFu7 x6Niru/RND4JQyqdg0WR+8jbOjvqfnDTkI6L X-Google-Smtp-Source: AK7set/8sjYe7K1/DkVzQ4wvsS7ZME/uzvzXO1HpPhhWHCGghXAYMIZ24ZPUN5D6TwaoppnA6sZsdA== X-Received: by 2002:a6b:f210:0:b0:720:9442:e4c1 with SMTP id q16-20020a6bf210000000b007209442e4c1mr5196837ioh.16.1677083718163; Wed, 22 Feb 2023 08:35:18 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:35:17 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Tim Harvey Subject: [PATCH v5 43/44] venice: Simplify conditions for network init Date: Wed, 22 Feb 2023 09:34:24 -0700 Message-Id: <20230222163425.2043934-44-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean The conditions in this code do not align when doing an SPL build with split config. Use __maybe_unused to avoid needing to be so explicit. Of course a better solution would be to refactor all of this to avoid using #ifdef. Signed-off-by: Simon Glass --- (no changes since v1) board/gateworks/venice/venice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index c4d86c26a9b..e6fa7eb3d73 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -41,8 +41,7 @@ int board_fit_config_name_match(const char *name) return -1; } -#if (IS_ENABLED(CONFIG_NET)) -static int setup_fec(void) +static int __maybe_unused setup_fec(void) { struct iomuxc_gpr_base_regs *gpr = (struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR; @@ -58,7 +57,7 @@ static int setup_fec(void) return 0; } -static int setup_eqos(void) +static int __maybe_unused setup_eqos(void) { struct iomuxc_gpr_base_regs *gpr = (struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR; @@ -71,6 +70,7 @@ static int setup_eqos(void) return set_clk_eqos(ENET_125MHZ); } +#if (IS_ENABLED(CONFIG_NET)) int board_phy_config(struct phy_device *phydev) { unsigned short val; -- 2.39.2.637.g21b0678d19-goog