Thread (4 messages) flat view 4 messages, 3 authors, 2023-10-06
STALE1084d

[PATCH] gpu/cuda: Add missing stdlib include

From: Aaron Conole <aconole@redhat.com>
Date: 2023-09-26 18:24:08
Subsystem: drm drivers, the rest · Maintainers: David Airlie, Simona Vetter, Linus Torvalds

From: John Romein <redacted>

getenv needs stdlib.h to be included.

Bugzilla ID: 1133

Fixes: 24c77594e08f ("gpu/cuda: map GPU memory with GDRCopy")
Signed-off-by: John Romein <redacted>
---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help