[PATCH] gpu/cuda: fix build

David Marchand david.marchand at redhat.com
Fri Sep 23 10:41:55 CEST 2022


On Fri, Sep 23, 2022 at 10:29 AM David Marchand
<david.marchand at redhat.com> wrote:
>
> On Fri, Sep 23, 2022 at 10:26 AM Thomas Monjalon <thomas at monjalon.net> wrote:
> >
> > A recent commit removed errno.h from rte_common.h.
> > It has to be added in various places where it is used,
> > and wad implicitly included via rte_common.h,
>
> was*
>
> > but was forgotten in gpu/cuda.
> >
> > As a result, the compilation is broken:
> >         drivers/gpu/cuda/gdrcopy.c:116:17: error: ‘ENOTSUP’ undeclared
> >
> > Note that rte_errno.h does not include errno.h.
> > The include of errno.h is added.
> >
> > Fixes: 72b452c5f259 ("eal: remove unneeded includes from a public header")
> >
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> Tested-by: David Marchand <david.marchand at redhat.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list