On 10/28/22 14:22, Thomas Zimmermann wrote: > Properties of 32-bit integers are returned from the OF device tree > as type __be32. Convert PCI vendor and device IDs from __be32 to host > endianness before comparing them to constants. All relevant machines > are old, big-endian Macintosh systems; hence the bug never happened > in practice. > > Fixes sparse warnings shown below. > > drivers/gpu/drm/tiny/ofdrm.c:237:17: warning: restricted __be32 degrades to > integer > drivers/gpu/drm/tiny/ofdrm.c:238:18: warning: restricted __be32 degrades to > integer > drivers/gpu/drm/tiny/ofdrm.c:238:54: warning: restricted __be32 degrades to > integer > > See [1] for the bug report. > > v2: > * convert endianness (Alex) > > Reported-by: kernel test robot <[email protected]> > Signed-off-by: Thomas Zimmermann <[email protected]> > Link: https://lore.kernel.org/dri-devel/[email protected]/ > # [1] > ---
Reviewed-by: Javier Martinez Canillas <[email protected]> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat
