From: Aaron Conole <aconole@redhat.com>
To: dev@dpdk.org
Cc: John Romein <romein@astron.nl>, Elena Agostini <eagostini@nvidia.com>
Subject: [PATCH] gpu/cuda: Add missing stdlib include
Date: Tue, 26 Sep 2023 14:23:59 -0400 [thread overview]
Message-ID: <f7t7cocsshs.fsf@redhat.com> (raw)
From: John Romein <romein@astron.nl>
getenv needs stdlib.h to be included.
Bugzilla ID: 1133
Fixes: 24c77594e08f ("gpu/cuda: map GPU memory with GDRCopy")
Signed-off-by: John Romein <romein@astron.nl>
---
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(+)
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 <stdlib.h>
+
#include "common.h"
#ifdef DRIVERS_GPU_CUDA_GDRCOPY_H
---
2.40.1
next reply other threads:[~2023-09-26 18:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 18:23 Aaron Conole [this message]
2023-09-29 14:58 ` [PATCH] gpu/cuda: Add missing stdlib include David Marchand
2023-10-05 12:43 ` Elena Agostini
2023-10-06 8:09 ` David Marchand
-- strict thread matches above, loose matches on Subject: below --
2023-09-12 17:08 John Romein
2023-09-13 11:12 ` Aaron Conole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7t7cocsshs.fsf@redhat.com \
--to=aconole@redhat.com \
--cc=dev@dpdk.org \
--cc=eagostini@nvidia.com \
--cc=romein@astron.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.