diff options
Diffstat (limited to 'drivers/md/dm-vdo/errors.h')
| -rw-r--r-- | drivers/md/dm-vdo/errors.h | 13 | 
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/md/dm-vdo/errors.h b/drivers/md/dm-vdo/errors.h index cf15d7243204..c6c085b26a0e 100644 --- a/drivers/md/dm-vdo/errors.h +++ b/drivers/md/dm-vdo/errors.h @@ -9,12 +9,13 @@  #include <linux/compiler.h>  #include <linux/types.h> -/* Custom error codes and error-related utilities for UDS */ +/* Custom error codes and error-related utilities */ +#define VDO_SUCCESS 0  /* Valid status codes for internal UDS functions. */  enum uds_status_codes {  	/* Successful return */ -	UDS_SUCCESS = 0, +	UDS_SUCCESS = VDO_SUCCESS,  	/* Used as a base value for reporting internal errors */  	UDS_ERROR_CODE_BASE = 1024,  	/* Index overflow */ @@ -29,20 +30,12 @@ enum uds_status_codes {  	UDS_ASSERTION_FAILED,  	/* A request has been queued for later processing (not an error) */  	UDS_QUEUED, -	/* A problem has occurred with a buffer */ -	UDS_BUFFER_ERROR, -	/* No directory was found where one was expected */ -	UDS_NO_DIRECTORY,  	/* This error range has already been registered */  	UDS_ALREADY_REGISTERED,  	/* Attempt to read or write data outside the valid range */  	UDS_OUT_OF_RANGE, -	/* Could not load modules */ -	UDS_EMODULE_LOAD,  	/* The index session is disabled */  	UDS_DISABLED, -	/* Unknown error */ -	UDS_UNKNOWN_ERROR,  	/* The index configuration or volume format is no longer supported */  	UDS_UNSUPPORTED_VERSION,  	/* Some index structure is corrupt */  | 
