ata: define AC_ERR_OK
authorJiri Slaby <jslaby@suse.cz>
Thu, 31 Oct 2019 09:59:44 +0000 (10:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Nov 2019 14:50:49 +0000 (08:50 -0600)
Since we will return enum ata_completion_errors from qc_prep in the next
patch, let's define AC_ERR_OK to mark the OK status.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/libata.h

index 207e7ee764ce5beaca8c318db0d1fdcb71feb455..b63ce4ebcd6612c6dd757cf1567ecd3908be445d 100644 (file)
@@ -484,6 +484,7 @@ enum hsm_task_states {
 };
 
 enum ata_completion_errors {
+       AC_ERR_OK               = 0,        /* no error */
        AC_ERR_DEV              = (1 << 0), /* device reported error */
        AC_ERR_HSM              = (1 << 1), /* host state machine violation */
        AC_ERR_TIMEOUT          = (1 << 2), /* timeout */