DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] gpu/cuda: Add missing stdlib include
@ 2023-09-26 18:23 Aaron Conole
  2023-09-29 14:58 ` David Marchand
  0 siblings, 1 reply; 6+ messages in thread
From: Aaron Conole @ 2023-09-26 18:23 UTC (permalink / raw)
  To: dev; +Cc: John Romein, Elena Agostini


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH] gpu/cuda: Add missing stdlib include
@ 2023-09-12 17:08 John Romein
  2023-09-13 11:12 ` Aaron Conole
  0 siblings, 1 reply; 6+ messages in thread
From: John Romein @ 2023-09-12 17:08 UTC (permalink / raw)
  To: dev; +Cc: aconole

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>
---
  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 322a5dbeb2..f19ad396f1 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.39.3



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-06  8:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 18:23 [PATCH] gpu/cuda: Add missing stdlib include Aaron Conole
2023-09-29 14:58 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).