mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/imagination: Fixed warning due to implicit cast to bool
@ 2023-11-29 15:36 Donald Robson
  2023-11-29 15:37 ` [PATCH 2/5] drm/imagination: Fixed missing header in pvr_fw_meta Donald Robson
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Donald Robson @ 2023-11-29 15:36 UTC (permalink / raw)
  To: dri-devel, linux-kernel
  Cc: donald.robson, matt.coster, frank.binns, boris.brezillon,
	maarten.lankhorst, mripard, tzimmermann, airlied, daniel,
	kernel test robot

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311241752.3iLyyFcA-lkp@intel.com/
Fixes: 1ff76f7a5b45 ("drm/imagination: Add GPU ID parsing and firmware loading")
Signed-off-by: Donald Robson <donald.robson@imgtec.com>
---
 drivers/gpu/drm/imagination/pvr_device_info.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/imagination/pvr_device_info.c b/drivers/gpu/drm/imagination/pvr_device_info.c
index 11e6bef52ecd..d3301cde7d11 100644
--- a/drivers/gpu/drm/imagination/pvr_device_info.c
+++ b/drivers/gpu/drm/imagination/pvr_device_info.c
@@ -227,7 +227,8 @@ int pvr_device_info_set_features(struct pvr_device *pvr_dev, const u64 *features
 	/* Verify no unsupported values in the bitmask. */
 	if (features_size > mapping_max_size) {
 		drm_warn(from_pvr_device(pvr_dev), "Unsupported features in firmware image");
-	} else if (features_size == mapping_max_size && (mapping_max & 63)) {
+	} else if (features_size == mapping_max_size &&
+		   ((mapping_max & 63) != 0)) {
 		u64 invalid_mask = ~0ull << (mapping_max & 63);
 
 		if (features[features_size - 1] & invalid_mask)
-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-01  8:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-29 15:36 [PATCH 1/5] drm/imagination: Fixed warning due to implicit cast to bool Donald Robson
2023-11-29 15:37 ` [PATCH 2/5] drm/imagination: Fixed missing header in pvr_fw_meta Donald Robson
2023-11-29 15:37 ` [PATCH 3/5] drm/imagination: pvr_device_process_active_queues now static Donald Robson
2023-11-29 15:37 ` [PATCH 4/5] drm/imagination: pvr_gpuvm_free() " Donald Robson
2023-11-29 15:37 ` [PATCH 5/5] drm/imagination: Removed unused function to_pvr_vm_gpuva() Donald Robson
2023-11-30  9:28 ` [PATCH 1/5] drm/imagination: Fixed warning due to implicit cast to bool Maxime Ripard
2023-12-01  8:36 ` (subset) " Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®