diff mbox series

[v4,03/15] compiler: Add a comment to host_build()

Message ID 20210925130320.7824-2-sjg@chromium.org
State Accepted
Commit c45b7920db21c8e0be89b15ea034ff3e9edb8e1d
Delegated to: Tom Rini
Headers show
Series image: A partial series for the image clean-up | expand

Commit Message

Simon Glass Sept. 25, 2021, 1:03 p.m. UTC
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(+)

Comments

Tom Rini Oct. 9, 2021, 1:38 a.m. UTC | #1
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 mbox series

Patch

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;