From patchwork Tue Sep 29 11:01:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 262949 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2D77C4727F for ; Tue, 29 Sep 2020 12:33:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 843FB20789 for ; Tue, 29 Sep 2020 12:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601382836; bh=meO6ORAQIfHcxRMg2SQvD3XfCqWBal3sr5orOsOVaps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=xD+RogGGQ3sQbBklbqXQN0jig0o+pruTDD+fnOhLfP2yn/PDMD1LvIlb07Mqxd2eH //i+cBkQWxaIXGZUpRSqklpA0QKLLKCaQ+xVE7CIaDxxxRZtbTG/StxZ+pXELB0Yic CnPA/rl0w7OMgzCWFiNDC7AGYVyH91l8Lk54/NUg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732776AbgI2Mdz (ORCPT ); Tue, 29 Sep 2020 08:33:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:37336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728786AbgI2LW5 (ORCPT ); Tue, 29 Sep 2020 07:22:57 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53BB923A5C; Tue, 29 Sep 2020 11:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601378390; bh=meO6ORAQIfHcxRMg2SQvD3XfCqWBal3sr5orOsOVaps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QOXLOmeWSm5AG/iVHAzURCCf9l+ZVIS88iu20l/gzfcV60mWCIdRY921E7bAB6Nfx N9IibquYSPAk9qf17lbk27o8ektdL3T9lVLrqHUWH2sOE5C1nBAwc7VUhtm13KJJBo sO8irhcM20hY/I14PIWyatJnWdzfibPAZx8GZ0M8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Slaby , Jens Axboe , linux-ide@vger.kernel.org Subject: [PATCH 4.14 164/166] ata: define AC_ERR_OK Date: Tue, 29 Sep 2020 13:01:16 +0200 Message-Id: <20200929105943.386146288@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105935.184737111@linuxfoundation.org> References: <20200929105935.184737111@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jiri Slaby 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 Cc: Jens Axboe Cc: linux-ide@vger.kernel.org Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- include/linux/libata.h | 1 + 1 file changed, 1 insertion(+) --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -504,6 +504,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 */