merged. Bruce
In message: [linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH] drivers: media: vxe-vxd: Initialize the variable __value on 19/09/2023 Xulin Sun wrote: > To avoid below building issue: > drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h:42:22: error: '__value' > is used uninitialized [-Werror=uninitialized] > | 42 | type __value = value; \ > | | ^~~~~~~ > drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h:42:22: note: '__value' > was declared here > | 42 | type __value = value; \ > | | ^~~~~~~ > > Signed-off-by: Xulin Sun <xulin....@windriver.com> > --- > drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h > b/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h > index a18ffda4efcb..b73cab6748b0 100644 > --- a/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h > +++ b/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h > @@ -39,8 +39,10 @@ > */ > #define REGIO_CHECK_VALUE_FITS_WITHIN_FIELD(group, reg, field, value, type) \ > { \ > - type __value = value; \ > - unsigned int temp = (unsigned int)(__value); \ > + type __value = 0; \ > + unsigned int temp = 0; \ > + __value = value; \ > + temp = (unsigned int)(__value); \ > if (temp > group ## _ ## reg ## _ ## field ## _LSBMASK) { \ > IMG_ASSERT((((unsigned int)__value) & \ > (unsigned int)~(group ## _ ## reg ## _ ## field ## > _LSBMASK)) == \ > -- > 2.35.5 >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13084): https://lists.yoctoproject.org/g/linux-yocto/message/13084 Mute This Topic: https://lists.yoctoproject.org/mt/101448350/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-