Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm Initialize crtc_state to supp...



details:   https://anonhg.NetBSD.org/src/rev/aef13553bea9
branches:  trunk
changeset: 1029149:aef13553bea9
user:      hannken <hannken%NetBSD.org@localhost>
date:      Thu Dec 23 17:11:41 2021 +0000

description:
Initialize crtc_state to suppress false warning it may be used uninitialized.

Ok: riastradh@

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_atomic.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 516596f48971 -r aef13553bea9 sys/external/bsd/drm2/dist/drm/drm_atomic.c
--- a/sys/external/bsd/drm2/dist/drm/drm_atomic.c       Thu Dec 23 17:09:25 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_atomic.c       Thu Dec 23 17:11:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_atomic.c,v 1.12 2021/12/19 11:34:44 riastradh Exp $        */
+/*     $NetBSD: drm_atomic.c,v 1.13 2021/12/23 17:11:41 hannken Exp $  */
 
 /*
  * Copyright (C) 2014 Red Hat
@@ -29,7 +29,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_atomic.c,v 1.12 2021/12/19 11:34:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_atomic.c,v 1.13 2021/12/23 17:11:41 hannken Exp $");
 
 #include <linux/sync_file.h>
 
@@ -416,6 +416,7 @@
        struct drm_writeback_job *writeback_job = state->writeback_job;
        const struct drm_display_info *info = &connector->display_info;
 
+       crtc_state = NULL; /* GCC */
        state->max_bpc = info->bpc ? info->bpc : 8;
        if (connector->max_bpc_property)
                state->max_bpc = min(state->max_bpc, state->max_requested_bpc);



Home | Main Index | Thread Index | Old Index