linux-stable/drivers/gpu/host1x
Arnd Bergmann 7d31677bb7 gpu: host1x: fix uninitialized variable use
The error handling for platform_get_irq() failing no longer works after
a recent change, clang now points this out with a warning:

  drivers/gpu/host1x/dev.c:520:6: error: variable 'syncpt_irq' is uninitialized when used here [-Werror,-Wuninitialized]
          if (syncpt_irq < 0)
              ^~~~~~~~~~

Fix this by removing the variable and checking the correct error status.

Fixes: 625d4ffb43 ("gpu: host1x: Rewrite syncpoint interrupt handling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-03-20 11:12:37 -07:00
..
hw gpu: host1x: Use tegra_dev_iommu_get_stream_id() 2023-01-27 17:41:49 +01:00
bus.c driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
bus.h
cdma.c IOMMU Updates for Linux v6.3: 2023-02-24 13:40:13 -08:00
cdma.h gpu: host1x: Implement job tracking using DMA fences 2023-01-26 15:55:38 +01:00
channel.c gpu: host1x: Use the bitmap API to allocate bitmaps 2022-07-08 17:38:34 +02:00
channel.h
context.c gpu: host1x: Use tegra_dev_iommu_get_stream_id() 2023-01-27 17:41:49 +01:00
context.h gpu: host1x: Add context device management code 2022-07-08 16:27:52 +02:00
context_bus.c gpu: host1x: Register context bus unconditionally 2022-07-08 16:31:24 +02:00
debug.c gpu: host1x: Rewrite syncpoint interrupt handling 2023-01-26 15:55:38 +01:00
debug.h
dev.c gpu: host1x: fix uninitialized variable use 2023-03-20 11:12:37 -07:00
dev.h gpu: host1x: Rewrite syncpoint interrupt handling 2023-01-26 15:55:38 +01:00
fence.c gpu: host1x: External timeout/cancellation for fences 2023-01-26 15:55:38 +01:00
fence.h gpu: host1x: External timeout/cancellation for fences 2023-01-26 15:55:38 +01:00
intr.c gpu: host1x: Rewrite syncpoint interrupt handling 2023-01-26 15:55:38 +01:00
intr.h gpu: host1x: Rewrite syncpoint interrupt handling 2023-01-26 15:55:38 +01:00
job.c gpu: host1x: Implement job tracking using DMA fences 2023-01-26 15:55:38 +01:00
job.h drm/tegra: Implement correct DMA-BUF semantics 2021-12-16 14:07:06 +01:00
Kconfig gpu: host1x: Add context bus 2022-06-01 11:50:42 +02:00
Makefile gpu: host1x: Tegra234 device data and headers 2022-07-08 16:27:52 +02:00
mipi.c
syncpt.c gpu: host1x: External timeout/cancellation for fences 2023-01-26 15:55:38 +01:00
syncpt.h gpu: host1x: Rewrite syncpoint interrupt handling 2023-01-26 15:55:38 +01:00