* [PATCH][next] drm/vmwgfx: fix missing assignment to ts
@ 2025-06-23 22:35 Colin Ian King
2025-06-24 15:02 ` Ian Forbes
0 siblings, 1 reply; 3+ messages in thread
From: Colin Ian King @ 2025-06-23 22:35 UTC (permalink / raw)
To: Zack Rusin, Broadcom internal kernel review list,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Ian Forbes, dri-devel
Cc: kernel-janitors, linux-kernel
The assignment to ts is missing on the call to ktime_to_timespec64.
Fix this by adding the missing assignment.
Fixes: db6a94b26354 ("drm/vmwgfx: Implement dma_fence_ops properly")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
index c2294abbe753..00be92da5509 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -538,7 +538,7 @@ static void vmw_event_fence_action_seq_passed(struct dma_fence *f,
if (likely(eaction->tv_sec != NULL)) {
struct timespec64 ts;
- ktime_to_timespec64(f->timestamp);
+ ts = ktime_to_timespec64(f->timestamp);
/* monotonic time, so no y2038 overflow */
*eaction->tv_sec = ts.tv_sec;
*eaction->tv_usec = ts.tv_nsec / NSEC_PER_USEC;
--
2.50.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH][next] drm/vmwgfx: fix missing assignment to ts
2025-06-23 22:35 [PATCH][next] drm/vmwgfx: fix missing assignment to ts Colin Ian King
@ 2025-06-24 15:02 ` Ian Forbes
2025-06-24 16:35 ` Dan Carpenter
0 siblings, 1 reply; 3+ messages in thread
From: Ian Forbes @ 2025-06-24 15:02 UTC (permalink / raw)
To: Colin Ian King
Cc: Zack Rusin, Broadcom internal kernel review list,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, dri-devel, kernel-janitors, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
On Mon, Jun 23, 2025 at 5:35 PM Colin Ian King <colin.i.king@gmail.com> wrote:
>
> The assignment to ts is missing on the call to ktime_to_timespec64.
> Fix this by adding the missing assignment.
>
> Fixes: db6a94b26354 ("drm/vmwgfx: Implement dma_fence_ops properly")
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Was this caught by a compiler warning? I'm surprised I didn't get some
sort of warning for this.
Reviewed-by: Ian Forbes <ian.forbes@broadcom.com>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5414 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][next] drm/vmwgfx: fix missing assignment to ts
2025-06-24 15:02 ` Ian Forbes
@ 2025-06-24 16:35 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2025-06-24 16:35 UTC (permalink / raw)
To: Ian Forbes
Cc: Colin Ian King, Zack Rusin, Broadcom internal kernel review list,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, dri-devel, kernel-janitors, linux-kernel
On Tue, Jun 24, 2025 at 10:02:41AM -0500, Ian Forbes wrote:
> On Mon, Jun 23, 2025 at 5:35 PM Colin Ian King <colin.i.king@gmail.com> wrote:
> >
> > The assignment to ts is missing on the call to ktime_to_timespec64.
> > Fix this by adding the missing assignment.
> >
> > Fixes: db6a94b26354 ("drm/vmwgfx: Implement dma_fence_ops properly")
> > Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
>
> Was this caught by a compiler warning? I'm surprised I didn't get some
> sort of warning for this.
>
We've disabled uninitialized variable warnings in GCC. Perhaps
Clang would have caught this but I'm not sure because tracking
uninitialized struct members is a bit more complicated than tracking
uninitialized variables.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-24 16:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23 22:35 [PATCH][next] drm/vmwgfx: fix missing assignment to ts Colin Ian King
2025-06-24 15:02 ` Ian Forbes
2025-06-24 16:35 ` Dan Carpenter
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).