base: genlock: remove BIT macro usage
The BIT macro is not defined for !_KERNEL_ resulting in compile errors.
CRs-fixed: 356263
Change-Id: Ib2acd913033fccca63716d6585a51707c72debf0
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
diff --git a/include/linux/genlock.h b/include/linux/genlock.h
index 60bc84c..587c49d 100644
--- a/include/linux/genlock.h
+++ b/include/linux/genlock.h
@@ -1,8 +1,6 @@
#ifndef _GENLOCK_H_
#define _GENLOCK_H_
-#include <linux/bitops.h>
-
#ifdef __KERNEL__
struct genlock;
@@ -23,8 +21,8 @@
#define GENLOCK_WRLOCK 1
#define GENLOCK_RDLOCK 2
-#define GENLOCK_NOBLOCK BIT(0)
-#define GENLOCK_WRITE_TO_READ BIT(1)
+#define GENLOCK_NOBLOCK (1 << 0)
+#define GENLOCK_WRITE_TO_READ (1 << 1)
struct genlock_lock {
int fd;