drm/exec: use unique instead of local label
authorChristian König <christian.koenig@amd.com>
Mon, 31 Jul 2023 12:36:24 +0000 (14:36 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 10 Aug 2023 06:38:52 +0000 (08:38 +0200)
commit616bceae250d0bab7ab2cbcb0791d820434ffb71
tree43e559eb8fa110246caa0f15af7a361ce9b30c25
parent204042049a941d2a9a7d49bdcda768578b5f88ec
drm/exec: use unique instead of local label

GCC forbids to jump to labels in loop conditions and a new clang
check stumbled over this.

So instead using a local label inside the loop condition use an
unique label outside of it.

Fixes: 09593216bff1 ("drm: execution context for GEM buffers v7")
Link: https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
Link: https://github.com/ClangBuiltLinux/linux/issues/1890
Link: https://github.com/llvm/llvm-project/commit/20219106060208f0c2f5d096eb3aed7b712f5067
Reported-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
CC: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230731123625.3766-1-christian.koenig@amd.com
include/drm/drm_exec.h