1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: ensure flags constants have ULL suffix

The walk flags used by libdm-stats use the upper portion of a 64b
value: use the ULL suffix to ensure the compiler knows the expected
size.
This commit is contained in:
Bryn M. Reeves 2016-07-05 20:21:49 +01:00
parent 93034d0b69
commit f1dd0258f1

View File

@ -1010,11 +1010,11 @@ typedef enum {
* the resulting walk will visit instance of each type specified by * the resulting walk will visit instance of each type specified by
* the flag combination. * the flag combination.
*/ */
#define DM_STATS_WALK_AREA 0x1000000000000 #define DM_STATS_WALK_AREA 0x1000000000000ULL
#define DM_STATS_WALK_REGION 0x2000000000000 #define DM_STATS_WALK_REGION 0x2000000000000ULL
#define DM_STATS_WALK_GROUP 0x4000000000000 #define DM_STATS_WALK_GROUP 0x4000000000000ULL
#define DM_STATS_WALK_ALL 0x7000000000000 #define DM_STATS_WALK_ALL 0x7000000000000ULL
#define DM_STATS_WALK_DEFAULT (DM_STATS_WALK_AREA | DM_STATS_WALK_REGION) #define DM_STATS_WALK_DEFAULT (DM_STATS_WALK_AREA | DM_STATS_WALK_REGION)
/* /*
@ -1024,7 +1024,7 @@ typedef enum {
* suppress these duplicate entries during a dm_stats_walk_* with the * suppress these duplicate entries during a dm_stats_walk_* with the
* DM_STATS_WALK_REGION flag set. * DM_STATS_WALK_REGION flag set.
*/ */
#define DM_STATS_WALK_SKIP_SINGLE_AREA 0x8000000000000 #define DM_STATS_WALK_SKIP_SINGLE_AREA 0x8000000000000ULL
/* /*
* Initialise the cursor control of a dm_stats handle for the specified * Initialise the cursor control of a dm_stats handle for the specified