Re: [PATCH 1/2] drm/ofdrm: Cast PCI IDs to u32 for comparing

2022-10-28 Thread Thomas Zimmermann
Hi Am 28.10.22 um 08:33 schrieb Alexander Stein: Hi Thomas, Am Donnerstag, 27. Oktober 2022, 16:04:34 CEST schrieb Thomas Zimmermann: * PGP Signed: 10/27/2022 at 04:04:34 PM Hi Am 27.10.22 um 15:07 schrieb Alexander Stein: Hello Thomas, Am Donnerstag, 27. Oktober 2022, 13:57:06 CEST schrie

Re: [PATCH 1/2] drm/ofdrm: Cast PCI IDs to u32 for comparing

2022-10-27 Thread Alexander Stein
Hi Thomas, Am Donnerstag, 27. Oktober 2022, 16:04:34 CEST schrieb Thomas Zimmermann: > * PGP Signed: 10/27/2022 at 04:04:34 PM > > Hi > > Am 27.10.22 um 15:07 schrieb Alexander Stein: > > Hello Thomas, > > > > Am Donnerstag, 27. Oktober 2022, 13:57:06 CEST schrieb Thomas Zimmermann: > >> Proper

Re: [PATCH 1/2] drm/ofdrm: Cast PCI IDs to u32 for comparing

2022-10-27 Thread Thomas Zimmermann
Hi Am 27.10.22 um 15:07 schrieb Alexander Stein: Hello Thomas, Am Donnerstag, 27. Oktober 2022, 13:57:06 CEST schrieb Thomas Zimmermann: Properties of 32-bit integers are returned from the OF device tree as type __be32. Cast PCI vendor and device IDs from __be32 to u32 before comparing them to

Re: [PATCH 1/2] drm/ofdrm: Cast PCI IDs to u32 for comparing

2022-10-27 Thread Alexander Stein
Hello Thomas, Am Donnerstag, 27. Oktober 2022, 13:57:06 CEST schrieb Thomas Zimmermann: > Properties of 32-bit integers are returned from the OF device tree > as type __be32. Cast PCI vendor and device IDs from __be32 to u32 > before comparing them to constants. Fixes sparse warnings shown below.

[PATCH 1/2] drm/ofdrm: Cast PCI IDs to u32 for comparing

2022-10-27 Thread Thomas Zimmermann
Properties of 32-bit integers are returned from the OF device tree as type __be32. Cast PCI vendor and device IDs from __be32 to u32 before comparing them to constants. Fixes sparse warnings shown below. drivers/gpu/drm/tiny/ofdrm.c:237:17: warning: restricted __be32 degrades to integer drive