From patchwork Tue Sep 26 18:23:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 131982 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CAC3B42646; Tue, 26 Sep 2023 20:24:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50EC7402AA; Tue, 26 Sep 2023 20:24:07 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 44FC840269 for ; Tue, 26 Sep 2023 20:24:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695752644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=E8UPTVz/q3u4F27jGoSkHRnLEWGLJztlhivJYBr5Xtk=; b=QPvPTroAeUk3umOxFRDD9MGU3u6Diu0fck79iVsnUpav9ed4kp20OvdnKfV+tzpu9PGsAq fBNqtElgTHC8qs2CGJvIbU4pG54X8ANJdnbt9JV2GcH6gFfE8ZIKIYkWik3cJu0LUzPUgE IKyzyqJJJfZPUczbo0HXkkQB5Q/3jtc= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-410-USWzV3nxMz2muVNBCqgRBg-1; Tue, 26 Sep 2023 14:24:00 -0400 X-MC-Unique: USWzV3nxMz2muVNBCqgRBg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8E1903C0C481; Tue, 26 Sep 2023 18:24:00 +0000 (UTC) Received: from RHTPC1VM0NT (unknown [10.22.8.239]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3984E40C2064; Tue, 26 Sep 2023 18:24:00 +0000 (UTC) From: Aaron Conole To: dev@dpdk.org Cc: John Romein , Elena Agostini Subject: [PATCH] gpu/cuda: Add missing stdlib include Date: Tue, 26 Sep 2023 14:23:59 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: John Romein getenv needs stdlib.h to be included. Bugzilla ID: 1133 Fixes: 24c77594e08f ("gpu/cuda: map GPU memory with GDRCopy") Signed-off-by: John Romein --- NOTE: this is a post of https://github.com/DPDK/dpdk/pull/69 to the mailing list. drivers/gpu/cuda/gdrcopy.c | 2 ++ 1 file changed, 2 insertions(+) --- 2.40.1 diff --git a/drivers/gpu/cuda/gdrcopy.c b/drivers/gpu/cuda/gdrcopy.c index 322a5dbeb20..f19ad396f14 100644 --- a/drivers/gpu/cuda/gdrcopy.c +++ b/drivers/gpu/cuda/gdrcopy.c @@ -2,6 +2,8 @@ * Copyright (c) 2022 NVIDIA Corporation & Affiliates */ +#include + #include "common.h" #ifdef DRIVERS_GPU_CUDA_GDRCOPY_H