Skip to contentSkip to conversation

missing #include in drivers/gpu/cuda/gdrcopy.c

Bug 1133 [email protected] 1 participant 2 messages Nov 29, 2022 – Oct 6, 2023

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1133

            Bug ID: 1133
           Summary: missing #include in drivers/gpu/cuda/gdrcopy.c
           Product: DPDK
           Version: 22.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

drivers/gpu/cuda/gdrcopy.c uses getenv() without #include <stdlib.h>. This leads to compiler warnings while building DPDK, and eventually crashes the application. The problem is trivially solved by adding #include <stdlib.h>

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1133

David Marchand ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
                 CC|                            |[email protected]
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from David Marchand ([email protected]) --- Thanks for the report.
Fixed with: cda3d17609c2 ("gpu/cuda: fix build with external GDRCopy")

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.