Avoids unconventional use of 'static const' and enum in headers.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
* is more efficient. Both types of chapter index are implemented with a delta index.
*/
-enum {
- /* The value returned when no entry is found in the chapter index. */
- NO_CHAPTER_INDEX_ENTRY = U16_MAX,
-};
+/* The value returned when no entry is found in the chapter index. */
+#define NO_CHAPTER_INDEX_ENTRY U16_MAX
struct open_chapter_index {
const struct index_geometry *geometry;
* managed with volume_index_record structures.
*/
-static const u64 NO_CHAPTER = U64_MAX;
+#define NO_CHAPTER U64_MAX
struct volume_index_stats {
/* Nanoseconds spent rebalancing */