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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43CC0C433EF for ; Sat, 25 Sep 2021 13:04:11 +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 19A26610D1 for ; Sat, 25 Sep 2021 13:04:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 19A26610D1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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 A468A8350D; Sat, 25 Sep 2021 15:03:58 +0200 (CEST) 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="BwpDfHjh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CF28D8352B; Sat, 25 Sep 2021 15:03:49 +0200 (CEST) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (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 BA51E8350A for ; Sat, 25 Sep 2021 15:03:42 +0200 (CEST) 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-ot1-x334.google.com with SMTP id 77-20020a9d0ed3000000b00546e10e6699so17158268otj.2 for ; Sat, 25 Sep 2021 06:03:42 -0700 (PDT) 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=i9pOngEgo5LmCjN6/sp/EeI48L8eweK2DeUV55JVYvo=; b=BwpDfHjhfRb3XR+9mRC/tM+lRgYbc5N4RFJ+z0rwT7EWBMiQt7GsNjOHbUdQw7SLj9 LXHrEVv/GSYWYn5ecgs2SeOBl+bOVeqm9kOTwmZkIuowKLjBsD4SC2y8gLEUZ94SDwP2 rG5FFooAwq5vvudOsC7F6o645afTkRwNoYSeY= 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=i9pOngEgo5LmCjN6/sp/EeI48L8eweK2DeUV55JVYvo=; b=RjmVslQlz6LchP8ND9jpBV75DxDJB5ywL4mBzVFkzOqn4Ikv2FtennWx0kxebpEIOI EXUyufr26nKoWwF6ybQj2Y+Ihvbmz568OWoMKGbh2G7vf4ZWEcvQt6RsEhSCwdUpQ9gG LzdTgyqjReyOae4shAdit+ZXEd+Jnufyh1r5qaVgizQuk6iR47SCo1xd3ukMWZ0JyKOp v/KG2bwoTGSr/E+Fy5Cs/coZaeA2jUOAMHeQAjusqG/ovSVvtttx1zIlrNvZfwQrPO/z qV810r0ijfmCuBLsb9JwvPtD4IeoVc2I7RRA0qfe/fTZ6Z5g3Z6SKT3Jmvlr/uTgMRN1 yBSA== X-Gm-Message-State: AOAM533piQ1PZRiS7iCF3WeZDsOUb930+YThpX3bsVLBz0gnIY/N30sR FknKYajxvVhIzrq7AaONw+wNtV07cGHWJQ== X-Google-Smtp-Source: ABdhPJw2XzsKhW9MSVf69udrqe+59o/vtGwkklOQUhy/qL2Z/BibBD4NShsMVXrCu19ShJxgreVvjw== X-Received: by 2002:a05:6830:4089:: with SMTP id x9mr4024254ott.223.1632575021229; Sat, 25 Sep 2021 06:03:41 -0700 (PDT) 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 f61sm2770018otf.73.2021.09.25.06.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 06:03:40 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Alexandru Gagniuc , Bin Meng , Tom Rini , Simon Glass Subject: [PATCH v4 03/15] compiler: Add a comment to host_build() Date: Sat, 25 Sep 2021 07:03:08 -0600 Message-Id: <20210925130320.7824-2-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210925130320.7824-1-sjg@chromium.org> References: <20210925130320.7824-1-sjg@chromium.org> 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 This function should have a comment explaining what it does. Add one. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Correct 'hose' typo include/compiler.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/compiler.h b/include/compiler.h index 27b9843497a..67e52050b12 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -151,6 +151,11 @@ typedef unsigned long int uintptr_t; #define MEM_SUPPORT_64BIT_DATA 0 #endif +/** + * host_build() - check if we are building for the host + * + * @return true if building for the host, false if for a target + */ static inline bool host_build(void) { #ifdef USE_HOSTCC return true; -- 2.33.0.685.g46640cef36-goog