All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add an assembly guard around linux/bitops.h
@ 2020-07-27  2:27 Simon Glass
  0 siblings, 0 replies; only message in thread
From: Simon Glass @ 2020-07-27  2:27 UTC (permalink / raw)
  To: u-boot

This file can be included by any header but it include C code. Guard it
to avoid errors when compiling ASL, etc.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/linux/bitops.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index 6b509dce58..16f28993f5 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -1,7 +1,7 @@
 #ifndef _LINUX_BITOPS_H
 #define _LINUX_BITOPS_H
 
-#ifndef USE_HOSTCC
+#if !defined(USE_HOSTCC) && !defined(__ASSEMBLY__)
 
 #include <asm/types.h>
 #include <asm-generic/bitsperlong.h>
@@ -218,6 +218,6 @@ static inline void generic_clear_bit(int nr, volatile unsigned long *addr)
 	*p &= ~mask;
 }
 
-#endif /* !USE_HOSTCC */
+#endif /* !USE_HOSTCC && !__ASSEMBLY__ */
 
 #endif
-- 
2.28.0.rc0.142.g3c755180ce-goog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-27  2:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27  2:27 [PATCH] Add an assembly guard around linux/bitops.h Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.