From patchwork Sun Aug 1 21:00:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1512136 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=UmqzBRFA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GdD7d1Ybhz9sT6 for ; Mon, 2 Aug 2021 07:01:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D5A8832EF; Sun, 1 Aug 2021 23:00:52 +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="UmqzBRFA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 569DD832F8; Sun, 1 Aug 2021 23:00:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) (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 CD89E83239 for ; Sun, 1 Aug 2021 23:00:44 +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-oi1-x233.google.com with SMTP id z26so21724167oih.10 for ; Sun, 01 Aug 2021 14:00:44 -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=oFiavoD17Wmwfc77v3hzQfSXlc+XCZt2ludq00+ypfQ=; b=UmqzBRFAL5LwjqkuXilRh+yAppZDEQDBOi3e5gXVtia6K69ayXLiEqc+n6/JhS/+Mn 8nvPocGKTpt+d3Ojcoeybk3SD/QZbT2jZiw4EjbYcIbC3vTsVoSaDg1bF/BtgIAEiXpO iwr3Z9ZSoSYi8IbbOcLDU/Oc+oyNYdvKbMtQw= 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=oFiavoD17Wmwfc77v3hzQfSXlc+XCZt2ludq00+ypfQ=; b=p5R/X1OnsUKi5OyStHCeMm0j6INLPuTJvUsyyaLI0SqhSqIuzxBNbUSVbx8CvNrxZ/ 7WzxgB36ZQImtgGUGsQiftlXzH2fq2EGfMmoePfvqsdtrJZBI0zLeKZgQ/F3MJgcjya1 c0187Ih8rI5Q+CVdX40ojMKRKVHmyxnM9vcar0XXNfkyRQ15w/xlstEBMjZdbIaRurqj Txfod6fTzmsYEe3HohNRI7+jvZv+/30fLC3kh87BZiAz1vRp4uhr1fMBqvTux40qk0gi 7gEXPC0sreuQ3b/2Wmhm899FQ+PHC0FOwx5gm6KTDN8/kJIY6KEdyhC3dqovk11smono htyg== X-Gm-Message-State: AOAM532deFvnM5P8EqWCjWbiJTc/jAPo+/nqFv6ee4nP1jPUScGHLVtf V7j+MOIoLSBBL8WDbkwyKfmOnBR7uWlmJV84 X-Google-Smtp-Source: ABdhPJy08PP0JCi9MptAx8NTtugM0oP97w64XTZsLEpIXqIK+FU4E6uSpxnBoQHp2uVVcULQHe+pGA== X-Received: by 2002:aca:c402:: with SMTP id u2mr8332129oif.121.1627851643302; Sun, 01 Aug 2021 14:00:43 -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 s16sm1560707otg.51.2021.08.01.14.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 14:00:42 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Bin Meng , Tom Rini , Alexandru Gagniuc , Simon Glass Subject: [PATCH v3 03/15] compiler: Add a comment to host_build() Date: Sun, 1 Aug 2021 15:00:20 -0600 Message-Id: <20210801210032.2203104-2-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog In-Reply-To: <20210801210032.2203104-1-sjg@chromium.org> References: <20210801210032.2203104-1-sjg@chromium.org> MIME-Version: 1.0 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;