From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6C9F5A05A0; Tue, 21 Apr 2020 23:34:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83C261D15D; Tue, 21 Apr 2020 23:34:09 +0200 (CEST) Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id 270171D152 for ; Tue, 21 Apr 2020 23:34:06 +0200 (CEST) Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.242.48]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id CFFBC30C1A1; Tue, 21 Apr 2020 14:22:24 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com CFFBC30C1A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1587504144; bh=Um8ORrH71EawhCIEzAr/EJUdt36TJkiDKvXfh3BfOw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b7l6rxMcQ0y4kOMLjAEBv4slj59Oqf6M2rGNCudbwYgqcfkjIBWMo03cog7S5QDb3 15pBDBwv9UARsrMXVq7Zypdy5JKv878MrIR7jdc4J4FLVshG6iwmWaF7yvjWOakmTv x2yDj8G8EjskqiGQoC2pbjvrOEoX/TP6o54q2rbs= Received: from localhost.localdomain (unknown [10.230.185.215]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 448A9140094; Tue, 21 Apr 2020 14:34:00 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: Kishore Padmanabha , Lance Richardson Date: Tue, 21 Apr 2020 14:33:43 -0700 Message-Id: <20200421213351.87219-2-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20200421213351.87219-1-ajit.khaparde@broadcom.com> References: <20200421091257.8089-1-kalesh-anakkur.purayil@broadcom.com> <20200421213351.87219-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 1/9] net/bnxt: fix compilation on BSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" There is no ENODATA in the errno.h in BSD. Use a common errno to return error. Fixes: cef1ca505d7f ("net/bnxt: support EM/EEM") Signed-off-by: Ajit Khaparde Reviewed-by: Kishore Padmanabha Reviewed-by: Lance Richardson --- drivers/net/bnxt/tf_core/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/stack.c b/drivers/net/bnxt/tf_core/stack.c index 3337073b7..9cfbd244f 100644 --- a/drivers/net/bnxt/tf_core/stack.c +++ b/drivers/net/bnxt/tf_core/stack.c @@ -73,7 +73,7 @@ int stack_pop(struct stack *st, uint32_t *x) { if (stack_is_empty(st)) - return -ENODATA; + return -ENOENT; *x = st->items[st->top]; st->top--; -- 2.21.1 (Apple Git-122.3)