From patchwork Tue Sep 29 11:01:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 263352 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 656B2C4741F for ; Tue, 29 Sep 2020 11:13:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 26ED221D92 for ; Tue, 29 Sep 2020 11:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601377984; bh=U+ftBvOarcjbLB7B70uQFluS7bcE0hD46Vx9CjEjKUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2RQkxV4Uea31sqQSht6rYBrC1akVuPQkshy8nkWx6TjMAiIqOsh0lkGV+49jzhLdU sliD0jWQTv85Aio/jfpamR8RUR+s638dvy+zgzVpQc7cJv+NItevGVMOU1twlbr1om kipmkqXNmm3NeWPPfRXa+lKlKHEUEA6PZpSEqo5U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729347AbgI2LMr (ORCPT ); Tue, 29 Sep 2020 07:12:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727761AbgI2LMS (ORCPT ); Tue, 29 Sep 2020 07:12:18 -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 C575D206A5; Tue, 29 Sep 2020 11:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601377937; bh=U+ftBvOarcjbLB7B70uQFluS7bcE0hD46Vx9CjEjKUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u1JvAU7qdBe5/JBA63hA785cZZ1L428O9iJgVjOsqaNcEu4RwEqcF5bGOrpVprgtT 45vdejpG7QHBFxpcR8XdqljJTiQQPiZdtJlKlYB5PRRS8r7kvfdmHhWnhyRahCeYBG 1m/aJj2Xn2F3kXituIiIUwbHuY3TuKjBqnne49jw= 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.9 119/121] ata: define AC_ERR_OK Date: Tue, 29 Sep 2020 13:01:03 +0200 Message-Id: <20200929105936.080150941@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105930.172747117@linuxfoundation.org> References: <20200929105930.172747117@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 @@ -499,6 +499,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 */