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/amd/display/dc/dcn10 amdgpu: ...



details:   https://anonhg.NetBSD.org/src/rev/39cbd7ac15bd
branches:  trunk
changeset: 1028599:39cbd7ac15bd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:25:01 2021 +0000

description:
amdgpu: Mark unused variables as such.

diffstat:

 sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_link_encoder.c   |   6 ++--
 sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_stream_encoder.c |  12 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (74 lines):

diff -r 5c2b4edf7019 -r 39cbd7ac15bd sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_link_encoder.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_link_encoder.c   Sun Dec 19 11:24:52 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_link_encoder.c   Sun Dec 19 11:25:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dcn10_link_encoder.c,v 1.2 2021/12/18 23:45:03 riastradh Exp $  */
+/*     $NetBSD: amdgpu_dcn10_link_encoder.c,v 1.3 2021/12/19 11:25:01 riastradh Exp $  */
 
 /*
  * Copyright 2012-15 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dcn10_link_encoder.c,v 1.2 2021/12/18 23:45:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dcn10_link_encoder.c,v 1.3 2021/12/19 11:25:01 riastradh Exp $");
 
 #include <linux/delay.h>
 #include <linux/slab.h>
@@ -1200,7 +1200,7 @@
        const struct link_mst_stream_allocation_table *table)
 {
        struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
-       uint32_t value0 = 0;
+       uint32_t value0 __unused = 0;
        uint32_t value1 = 0;
        uint32_t value2 = 0;
        uint32_t slots = 0;
diff -r 5c2b4edf7019 -r 39cbd7ac15bd sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_stream_encoder.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_stream_encoder.c Sun Dec 19 11:24:52 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_stream_encoder.c Sun Dec 19 11:25:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dcn10_stream_encoder.c,v 1.2 2021/12/18 23:45:03 riastradh Exp $        */
+/*     $NetBSD: amdgpu_dcn10_stream_encoder.c,v 1.3 2021/12/19 11:25:01 riastradh Exp $        */
 
 /*
  * Copyright 2012-15 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dcn10_stream_encoder.c,v 1.2 2021/12/18 23:45:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dcn10_stream_encoder.c,v 1.3 2021/12/19 11:25:01 riastradh Exp $");
 
 #include <linux/delay.h>
 
@@ -63,7 +63,7 @@
        uint32_t packet_index,
        const struct dc_info_packet *info_packet)
 {
-       uint32_t regval;
+       uint32_t regval __unused;
        /* TODOFPGA Figure out a proper number for max_retries polling for lock
         * use 50 for now.
         */
@@ -263,8 +263,8 @@
        uint32_t h_back_porch;
        uint8_t synchronous_clock = 0; /* asynchronous mode */
        uint8_t colorimetry_bpc;
-       uint8_t dynamic_range_rgb = 0; /*full range*/
-       uint8_t dynamic_range_ycbcr = 1; /*bt709*/
+       uint8_t dynamic_range_rgb __unused = 0; /*full range*/
+       uint8_t dynamic_range_ycbcr __unused = 1; /*bt709*/
        uint8_t dp_pixel_encoding = 0;
        uint8_t dp_component_depth = 0;
 
@@ -1279,7 +1279,7 @@
 {
        struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
 
-       uint32_t speakers = 0;
+       uint32_t speakers __unused = 0;
        uint32_t channels = 0;
 
        ASSERT(audio_info);



Home | Main Index | Thread Index | Old Index