]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ata: define AC_ERR_OK
authorJiri Slaby <jslaby@suse.cz>
Thu, 31 Oct 2019 09:59:44 +0000 (10:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 09:11:58 +0000 (11:11 +0200)
commit 25937580a5065d6fbd92d9c8ebd47145ad80052e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/libata.h

index af561d33221d6b3233099e8b03d22f1e5948bb87..446121d1b7b348655c8111d676052f8dcd6f9eff 100644 (file)
@@ -500,6 +500,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 */