Files
linux-nv-oot/drivers/gpu/drm/tegra
Nathan Chancellor f0231b05dc UPSTREAM: drm/tegra: Fix shift overflow in tegra_shared_plane_atomic_update
Clang warns:

drivers/gpu/drm/tegra/hub.c:513:11: warning: shift count >= width of
type [-Wshift-count-overflow]
                base |= BIT(39);
                        ^~~~~~~

BIT is unsigned long, which is 32-bit on ARCH=arm, hence the overflow
warning. Switch to BIT_ULL, which is 64-bit and will not overflow.

Change-Id: I0cb7bf0f6899b8dc6fb2a4ff2001daf89aa9b432
Fixes: 7b6f846785f4 ("drm/tegra: Support sector layout on Tegra194")
Link: https://github.com/ClangBuiltLinux/linux/issues/1351
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2545949
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-04-03 09:18:59 +00:00
..
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00
2023-04-03 09:18:59 +00:00