Message ID | 20210925130320.7824-2-sjg@chromium.org |
---|---|
State | Accepted |
Commit | c45b7920db21c8e0be89b15ea034ff3e9edb8e1d |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org 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=BwpDfHjh; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4HGpyD6Fmxz9t4b for <incoming@patchwork.ozlabs.org>; Sat, 25 Sep 2021 23:04:20 +1000 (AEST) 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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 <u-boot@lists.denx.de>; 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 <u-boot@lists.denx.de>; 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 <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Alexandru Gagniuc <mr.nuke.me@gmail.com>, Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
image: A partial series for the image clean-up
|
expand
|
On Sat, Sep 25, 2021 at 07:03:08AM -0600, Simon Glass wrote: > This function should have a comment explaining what it does. Add one. > > Signed-off-by: Simon Glass <sjg@chromium.org> Applied to u-boot/master, thanks!
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;
This function should have a comment explaining what it does. Add one. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v2) Changes in v2: - Correct 'hose' typo include/compiler.h | 5 +++++ 1 file changed, 5 insertions(+)