libcamera: add missing <stdint.h> include to dma_buf_allocator.h
diff mbox series

Message ID 20241228191119.3159118-1-slyich@gmail.com
State New
Headers show
Series
  • libcamera: add missing <stdint.h> include to dma_buf_allocator.h
Related show

Commit Message

Sergei Trofimovich Dec. 28, 2024, 7:11 p.m. UTC
Without the change the build fails on upcoming `gcc-15` as:

    In file included from ../src/libcamera/dma_buf_allocator.cpp:9:
    ../include/libcamera/internal/dma_buf_allocator.h:66:19: error: 'uint64_t' has not been declared
       66 |         void sync(uint64_t step);
          |                   ^~~~~~~~
---
 include/libcamera/internal/dma_buf_allocator.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Laurent Pinchart Dec. 30, 2024, 9:41 p.m. UTC | #1
Hi Sergei,

Thank you for the patch.

On Sat, Dec 28, 2024 at 07:11:19PM +0000, Sergei Trofimovich wrote:
> Without the change the build fails on upcoming `gcc-15` as:
> 
>     In file included from ../src/libcamera/dma_buf_allocator.cpp:9:
>     ../include/libcamera/internal/dma_buf_allocator.h:66:19: error: 'uint64_t' has not been declared
>        66 |         void sync(uint64_t step);
>           |                   ^~~~~~~~


The patch is missing your Signed-off-by line. Please see
https://libcamera.org/contributing.html#submitting-patches. Apart from
that, everything looks good.

Could you please either resubmit the patch with the missing SoB line, or
reply to this mail thread with the SoB ?

> ---
>  include/libcamera/internal/dma_buf_allocator.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/libcamera/internal/dma_buf_allocator.h b/include/libcamera/internal/dma_buf_allocator.h
> index fc5de2c1..56341470 100644
> --- a/include/libcamera/internal/dma_buf_allocator.h
> +++ b/include/libcamera/internal/dma_buf_allocator.h
> @@ -8,6 +8,7 @@
>  #pragma once
>  
>  #include <memory>
> +#include <stdint.h>
>  #include <string>
>  #include <vector>
>
Sergei Trofimovich Dec. 30, 2024, 10:27 p.m. UTC | #2
On Mon, 30 Dec 2024 23:41:10 +0200
Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:

> Hi Sergei,
> 
> Thank you for the patch.
> 
> On Sat, Dec 28, 2024 at 07:11:19PM +0000, Sergei Trofimovich wrote:
> > Without the change the build fails on upcoming `gcc-15` as:
> > 
> >     In file included from ../src/libcamera/dma_buf_allocator.cpp:9:
> >     ../include/libcamera/internal/dma_buf_allocator.h:66:19: error: 'uint64_t' has not been declared
> >        66 |         void sync(uint64_t step);
> >           |                   ^~~~~~~~  
> 
> 
> The patch is missing your Signed-off-by line. Please see
> https://libcamera.org/contributing.html#submitting-patches. Apart from
> that, everything looks good.
> 
> Could you please either resubmit the patch with the missing SoB line, or
> reply to this mail thread with the SoB ?

Ah, my apologies! Adding SoB as an email reply:

Signed-off-by: Sergei Trofimovich <slyich@gmail.com>

> > ---
> >  include/libcamera/internal/dma_buf_allocator.h | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/include/libcamera/internal/dma_buf_allocator.h b/include/libcamera/internal/dma_buf_allocator.h
> > index fc5de2c1..56341470 100644
> > --- a/include/libcamera/internal/dma_buf_allocator.h
> > +++ b/include/libcamera/internal/dma_buf_allocator.h
> > @@ -8,6 +8,7 @@
> >  #pragma once
> >  
> >  #include <memory>
> > +#include <stdint.h>
> >  #include <string>
> >  #include <vector>
> >    
> 
> -- 
> Regards,
> 
> Laurent Pinchart

Patch
diff mbox series

diff --git a/include/libcamera/internal/dma_buf_allocator.h b/include/libcamera/internal/dma_buf_allocator.h
index fc5de2c1..56341470 100644
--- a/include/libcamera/internal/dma_buf_allocator.h
+++ b/include/libcamera/internal/dma_buf_allocator.h
@@ -8,6 +8,7 @@ 
 #pragma once
 
 #include <memory>
+#include <stdint.h>
 #include <string>
 #include <vector>