From 12160ccc36953e77c9d0e2b3ef66f86f4f73f8c7 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Thu, 25 Nov 2021 15:53:24 +0100 Subject: [PATCH] Introduce OCF_ERR_MIN/OCF_ERR_MAX Signed-off-by: Robert Baldyga --- inc/ocf_err.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/ocf_err.h b/inc/ocf_err.h index 513e428..90d9811 100644 --- a/inc/ocf_err.h +++ b/inc/ocf_err.h @@ -15,8 +15,10 @@ * @brief OCF error enumerator */ typedef enum { + OCF_ERR_MIN = 1000000, + /** Invalid input parameter value */ - OCF_ERR_INVAL = 1000000, + OCF_ERR_INVAL = OCF_ERR_MIN, /** Try again */ OCF_ERR_AGAIN, @@ -137,6 +139,8 @@ typedef enum { /** Invalid operation for cache in standby state. */ OCF_ERR_CACHE_STANDBY, + + OCF_ERR_MAX = OCF_ERR_CACHE_STANDBY, } ocf_error_t; #endif /* __OCF_ERR_H__ */