Message ID | 20190212222021.28517-2-jacopo@jmondi.org |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
Hi Jacopo, Thank you for the patch. On Tue, Feb 12, 2019 at 11:20:18PM +0100, Jacopo Mondi wrote: > The V4L2Subdevice class uses MediaEntity instances, and the > corresponding header is not included. > > Fix this by forward declaring the MediaEntity class. > > Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice") > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > --- > src/libcamera/include/v4l2_subdevice.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h > index 8fd666078985..ffa92100ffbc 100644 > --- a/src/libcamera/include/v4l2_subdevice.h > +++ b/src/libcamera/include/v4l2_subdevice.h > @@ -12,6 +12,7 @@ > namespace libcamera { > > struct Rectangle; > +class MediaEntity; Should we sort this alphabetically ? Apart from that, Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > struct V4L2SubdeviceFormat { > uint32_t mbus_code;
Hi, On 2019-02-13 00:38:17 +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Tue, Feb 12, 2019 at 11:20:18PM +0100, Jacopo Mondi wrote: > > The V4L2Subdevice class uses MediaEntity instances, and the > > corresponding header is not included. > > > > Fix this by forward declaring the MediaEntity class. > > > > Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice") > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > > --- > > src/libcamera/include/v4l2_subdevice.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h > > index 8fd666078985..ffa92100ffbc 100644 > > --- a/src/libcamera/include/v4l2_subdevice.h > > +++ b/src/libcamera/include/v4l2_subdevice.h > > @@ -12,6 +12,7 @@ > > namespace libcamera { > > > > struct Rectangle; > > +class MediaEntity; > > Should we sort this alphabetically ? Apart from that, I think we should, with that fixed Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> > > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > > > > struct V4L2SubdeviceFormat { > > uint32_t mbus_code; > > -- > Regards, > > Laurent Pinchart > _______________________________________________ > libcamera-devel mailing list > libcamera-devel@lists.libcamera.org > https://lists.libcamera.org/listinfo/libcamera-devel
Hi, On Wed, Feb 13, 2019 at 11:59:26AM +0100, Niklas Söderlund wrote: > Hi, > > On 2019-02-13 00:38:17 +0200, Laurent Pinchart wrote: > > Hi Jacopo, > > > > Thank you for the patch. > > > > On Tue, Feb 12, 2019 at 11:20:18PM +0100, Jacopo Mondi wrote: > > > The V4L2Subdevice class uses MediaEntity instances, and the > > > corresponding header is not included. > > > > > > Fix this by forward declaring the MediaEntity class. > > > > > > Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice") > > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > > > --- > > > src/libcamera/include/v4l2_subdevice.h | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h > > > index 8fd666078985..ffa92100ffbc 100644 > > > --- a/src/libcamera/include/v4l2_subdevice.h > > > +++ b/src/libcamera/include/v4l2_subdevice.h > > > @@ -12,6 +12,7 @@ > > > namespace libcamera { > > > > > > struct Rectangle; > > > +class MediaEntity; > > > > Should we sort this alphabetically ? Apart from that, > > I think we should, with that fixed > > Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> My reasoning was "struct" before "class", but I'll change this. Thanks j > > > > > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > > > > > > > struct V4L2SubdeviceFormat { > > > uint32_t mbus_code; > > > > -- > > Regards, > > > > Laurent Pinchart > > _______________________________________________ > > libcamera-devel mailing list > > libcamera-devel@lists.libcamera.org > > https://lists.libcamera.org/listinfo/libcamera-devel > > -- > Regards, > Niklas Söderlund
diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h index 8fd666078985..ffa92100ffbc 100644 --- a/src/libcamera/include/v4l2_subdevice.h +++ b/src/libcamera/include/v4l2_subdevice.h @@ -12,6 +12,7 @@ namespace libcamera { struct Rectangle; +class MediaEntity; struct V4L2SubdeviceFormat { uint32_t mbus_code;
The V4L2Subdevice class uses MediaEntity instances, and the corresponding header is not included. Fix this by forward declaring the MediaEntity class. Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice") Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> --- src/libcamera/include/v4l2_subdevice.h | 1 + 1 file changed, 1 insertion(+)