From mboxrd@z Thu Jan 1 00:00:00 1970 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 21BD2C433EF for ; Mon, 28 Feb 2022 19:10:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0CB5C83B71; Mon, 28 Feb 2022 20:09:45 +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="FRtElc6F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5307083C59; Mon, 28 Feb 2022 20:09:18 +0100 (CET) Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) (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 9DEA983073 for ; Mon, 28 Feb 2022 20:09:06 +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-oo1-xc30.google.com with SMTP id j7-20020a4ad6c7000000b0031c690e4123so19937507oot.11 for ; Mon, 28 Feb 2022 11:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OsH05VQwwpiJsasjrWAnEMtyPebUeuxiC1zwnVFMFcs=; b=FRtElc6FeVT34F13xVkLOwd6Uel+LjLfLyKokl6cGQH1xXIRfKwPQIejOStyN9prvx Emk/zU93YET9odP0VDPQTmD/uCSahFKgsBANAEN2sZqnAXW7l3Wesxo5mnwFZZA6rDU8 mnMBcmx17pmmfpM81Gpcca4vt9yAPBDPtbER4= 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=OsH05VQwwpiJsasjrWAnEMtyPebUeuxiC1zwnVFMFcs=; b=llNa0yGsaEbEJsabnLfC4a9DhzMafXNr84ElK8I8jM2EVlMq5gYcmS3sXk18Ofj2Ap cNwNwO9BxJRij6H3m6X+VSf/3OP1vBL1VC10m78uGlgPHWxmIx9r/6d4JOpZQVnFNufO VINyJWtzabnWithpfvsmHC+KgabLNfTnZWc9UUdxKZxddRK0eeFjt9BokMS/OqxXBfNW sqIFwE1arQGOfIVmRur/mNLYX+oLbBjOhy0UhbElIe2yi5uUtjkVrqfn8xQarYFtgWW8 9J9RC1VJiq+pDHQugf4v5xkg8ePAubkBwODwybbIWLjL/cX6H0YGBA/wbWkUtEFZ+498 NkHA== X-Gm-Message-State: AOAM533GWLdv4+LUfBqZGikAbGSlCIQoIm+hM7P5XaaJgptELtjU/qPc hUSLFCOKVGH04FzgrRVEwA3QKC2nRVs3Rg== X-Google-Smtp-Source: ABdhPJxVxenADmkMffRztswYw/ZyAfx2wEQmT2ZS5OQE7lsTUzNczUzDDSEPVLLbU5j6VCzYhs0tOA== X-Received: by 2002:a05:6870:4292:b0:d7:1588:4d4f with SMTP id y18-20020a056870429200b000d715884d4fmr4609463oah.156.1646075345268; Mon, 28 Feb 2022 11:09:05 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id f188-20020a4a58c5000000b0031ccb8272f1sm5290577oob.33.2022.02.28.11.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:09:04 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Bin Meng , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH 04/18] errno: Avoid including strings in SPL Date: Mon, 28 Feb 2022 12:08:21 -0700 Message-Id: <20220228190835.1480772-5-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog In-Reply-To: <20220228190835.1480772-1-sjg@chromium.org> References: <20220228190835.1480772-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.5 at phobos.denx.de X-Virus-Status: Clean At present the header file defines this function in SPL but the file may not actually be built. This causes a build error if the option is enabled. Fix the condition in the header file. Signed-off-by: Simon Glass --- include/errno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/errno.h b/include/errno.h index 652ad67306..5a8816d0a1 100644 --- a/include/errno.h +++ b/include/errno.h @@ -25,7 +25,7 @@ extern int errno __errno_asm_label; * Return: string describing the error. If CONFIG_ERRNO_STR is not * defined an empty string is returned. */ -#ifdef CONFIG_ERRNO_STR +#if CONFIG_IS_ENABLED(ERRNO_STR) const char *errno_str(int errno); #else static const char error_message[] = ""; -- 2.35.1.574.g5d30c73bfb-goog