diff options
author | Dave Airlie <airlied@linux.ie> | 2004-07-31 08:38:39 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-07-31 08:38:39 +0000 |
commit | bd71ba642890856aff339482a9422ecea1ef55d1 (patch) | |
tree | bfae84c2df50adfb21784ae89fcc959136664250 | |
parent | cc4d03930ce753302a88fc9722473a5d9fac7b44 (diff) |
patch from RH xorg-x11 tree ported to drm.h
-rw-r--r-- | shared-core/drm.h | 4 | ||||
-rw-r--r-- | shared/drm.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h index feb9af15..249f8f26 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -98,8 +98,8 @@ #define DRM_MAX_ORDER 22 /**< Up to 2^22 bytes = 4MB */ #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */ -#define _DRM_LOCK_HELD 0x80000000 /**< Hardware lock is held */ -#define _DRM_LOCK_CONT 0x40000000 /**< Hardware lock is contended */ +#define _DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */ +#define _DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */ #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT)) diff --git a/shared/drm.h b/shared/drm.h index feb9af15..249f8f26 100644 --- a/shared/drm.h +++ b/shared/drm.h @@ -98,8 +98,8 @@ #define DRM_MAX_ORDER 22 /**< Up to 2^22 bytes = 4MB */ #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */ -#define _DRM_LOCK_HELD 0x80000000 /**< Hardware lock is held */ -#define _DRM_LOCK_CONT 0x40000000 /**< Hardware lock is contended */ +#define _DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */ +#define _DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */ #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT)) |