* Apply fc7bf4c0d65a342b29fe38c332db3fe900b481b9 to 5.15
@ 2025-12-04 0:13 Nathan Chancellor
2025-12-07 0:37 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Chancellor @ 2025-12-04 0:13 UTC (permalink / raw)
To: Greg Kroah-Hartman, Sasha Levin; +Cc: stable, intel-gfx
Hi stable folks,
Please apply commit fc7bf4c0d65a ("drm/i915/selftests: Fix inconsistent
IS_ERR and PTR_ERR") to 5.15, where it resolves a couple of instances of
-Wuninitialized with clang-21 or newer that were introduced by commit
cdb35d1ed6d2 ("drm/i915/gem: Migrate to system at dma-buf attach time
(v7)") in 5.15.
In file included from drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:329:
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:105:18: error: variable 'dmabuf' is uninitialized when used here [-Werror,-Wuninitialized]
105 | PTR_ERR(dmabuf));
| ^~~~~~
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:94:24: note: initialize the variable 'dmabuf' to silence this warning
94 | struct dma_buf *dmabuf;
| ^
| = NULL
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:161:18: error: variable 'dmabuf' is uninitialized when used here [-Werror,-Wuninitialized]
161 | PTR_ERR(dmabuf));
| ^~~~~~
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:149:24: note: initialize the variable 'dmabuf' to silence this warning
149 | struct dma_buf *dmabuf;
| ^
| = NULL
It applies and builds cleanly for me. If there are any issues, please
let me know.
Cheers,
Nathan
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Apply fc7bf4c0d65a342b29fe38c332db3fe900b481b9 to 5.15
2025-12-04 0:13 Apply fc7bf4c0d65a342b29fe38c332db3fe900b481b9 to 5.15 Nathan Chancellor
@ 2025-12-07 0:37 ` Sasha Levin
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2025-12-07 0:37 UTC (permalink / raw)
To: Nathan Chancellor; +Cc: Greg Kroah-Hartman, stable, intel-gfx
On Wed, Dec 03, 2025 at 05:13:52PM -0700, Nathan Chancellor wrote:
>Hi stable folks,
>
>Please apply commit fc7bf4c0d65a ("drm/i915/selftests: Fix inconsistent
>IS_ERR and PTR_ERR") to 5.15, where it resolves a couple of instances of
>-Wuninitialized with clang-21 or newer that were introduced by commit
>cdb35d1ed6d2 ("drm/i915/gem: Migrate to system at dma-buf attach time
>(v7)") in 5.15.
>
> In file included from drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:329:
> drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:105:18: error: variable 'dmabuf' is uninitialized when used here [-Werror,-Wuninitialized]
> 105 | PTR_ERR(dmabuf));
> | ^~~~~~
> drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:94:24: note: initialize the variable 'dmabuf' to silence this warning
> 94 | struct dma_buf *dmabuf;
> | ^
> | = NULL
> drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:161:18: error: variable 'dmabuf' is uninitialized when used here [-Werror,-Wuninitialized]
> 161 | PTR_ERR(dmabuf));
> | ^~~~~~
> drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c:149:24: note: initialize the variable 'dmabuf' to silence this warning
> 149 | struct dma_buf *dmabuf;
> | ^
> | = NULL
>
>It applies and builds cleanly for me. If there are any issues, please
>let me know.
Queued up, thanks.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-07 0:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-04 0:13 Apply fc7bf4c0d65a342b29fe38c332db3fe900b481b9 to 5.15 Nathan Chancellor
2025-12-07 0:37 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).