All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: add BIT_ULL
@ 2015-12-17 12:49 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2015-12-17 12:49 UTC (permalink / raw)
  To: backports; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

Add BIT_ULL() to bitops.h, this is only available since 3.13.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/linux/bitops.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/backport-include/linux/bitops.h b/backport/backport-include/linux/bitops.h
index b0e9283e93c7..1e831c766030 100644
--- a/backport/backport-include/linux/bitops.h
+++ b/backport/backport-include/linux/bitops.h
@@ -16,4 +16,8 @@
 
 #endif
 
+#ifndef BIT_ULL
+#define BIT_ULL (1ULL << (nr))
+#endif
+
 #endif /* __BACKPORT_BITOPS_H */
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in

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

only message in thread, other threads:[~2015-12-17 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-17 12:49 [PATCH] backports: add BIT_ULL Johannes Berg

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.