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 Give up and use -Wno-missing-prototype...



details:   https://anonhg.NetBSD.org/src/rev/357b99c1d6e0
branches:  trunk
changeset: 1028412:357b99c1d6e0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:59:36 2021 +0000

description:
Give up and use -Wno-missing-prototypes, ugh.

diffstat:

 sys/external/bsd/drm2/amdgpu/files.amdgpu                                         |   3 +-
 sys/external/bsd/drm2/dist/drm/amd/display/dc/bios/amdgpu_bios_parser.c           |   6 +--
 sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_hw_sequencer.c       |   5 +--
 sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_link_dp.c            |   5 +--
 sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_resource.c           |   6 +--
 sys/external/bsd/drm2/dist/drm/amd/display/dc/dce100/amdgpu_dce100_resource.c     |  15 +--------
 sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_hw_sequencer.c |   6 +--
 sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_mem_input_v.c  |  12 +------
 sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr/amdgpu_ci_smumgr.c            |   5 +--
 9 files changed, 18 insertions(+), 45 deletions(-)

diffs (truncated from 381 to 300 lines):

diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/amdgpu/files.amdgpu
--- a/sys/external/bsd/drm2/amdgpu/files.amdgpu Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/amdgpu/files.amdgpu Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.amdgpu,v 1.14 2021/12/19 10:59:00 riastradh Exp $
+#      $NetBSD: files.amdgpu,v 1.15 2021/12/19 10:59:36 riastradh Exp $
 
 version        20180827
 
@@ -34,6 +34,7 @@
 makeoptions    amdgpu  "CPPFLAGS.amdgpu"+="-DCONFIG_DRM_AMD_ACP"
 
 makeoptions    amdgpu  "CWARNFLAGS.amdgpu"+="-Wno-missing-field-initializers"
+makeoptions    amdgpu  "CWARNFLAGS.amdgpu"+="-Wno-missing-prototypes"
 makeoptions    amdgpu  "CWARNFLAGS.amdgpu"+="-Wno-shadow"
 makeoptions    amdgpu  "CWARNFLAGS.amdgpu"+="-Wno-pointer-arith"
 makeoptions    amdgpu  "CWARNFLAGS.amdgpu"+="-Wno-override-init"
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/bios/amdgpu_bios_parser.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/bios/amdgpu_bios_parser.c   Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/bios/amdgpu_bios_parser.c   Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_bios_parser.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $ */
+/*     $NetBSD: amdgpu_bios_parser.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $ */
 
 /*
  * Copyright 2012-15 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_bios_parser.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_bios_parser.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $");
 
 #include <linux/slab.h>
 
@@ -2589,7 +2589,6 @@
        return NULL;
 }
 
-static
 enum bp_result update_slot_layout_info(
        struct dc_bios *dcb,
        unsigned int i,
@@ -2694,7 +2693,6 @@
 }
 
 
-static
 enum bp_result get_bracket_layout_record(
        struct dc_bios *dcb,
        unsigned int bracket_layout_id,
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_hw_sequencer.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_hw_sequencer.c       Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_hw_sequencer.c       Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dc_hw_sequencer.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $     */
+/*     $NetBSD: amdgpu_dc_hw_sequencer.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $     */
 
 /*
  * Copyright 2015 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dc_hw_sequencer.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dc_hw_sequencer.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $");
 
 #include <linux/delay.h>
 
@@ -182,7 +182,6 @@
                ret = true;
        return ret;
 }
-static
 enum dc_color_space_type get_color_space_type(enum dc_color_space color_space)
 {
        enum dc_color_space_type type = COLOR_SPACE_RGB_TYPE;
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_link_dp.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_link_dp.c    Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_link_dp.c    Sun Dec 19 10:59:36 2021 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: amdgpu_dc_link_dp.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $  */
+/*     $NetBSD: amdgpu_dc_link_dp.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $  */
 
 /* Copyright 2015 Advanced Micro Devices, Inc. */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dc_link_dp.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dc_link_dp.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $");
 
 #include "dm_services.h"
 #include "dc.h"
@@ -3523,7 +3523,6 @@
        /* TODO save sink caps in link->sink */
 }
 
-static
 enum dc_link_rate linkRateInKHzToLinkRateMultiplier(uint32_t link_rate_in_khz)
 {
        enum dc_link_rate link_rate;
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_resource.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_resource.c   Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_resource.c   Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dc_resource.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $ */
+/*     $NetBSD: amdgpu_dc_resource.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $ */
 
 /*
  * Copyright 2012-15 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dc_resource.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dc_resource.c,v 1.4 2021/12/19 10:59:36 riastradh Exp $");
 
 #include <linux/slab.h>
 
@@ -972,7 +972,6 @@
  * We also need to make sure pipe_ctx->plane_res.scl_data.h_active uses the
  * original h_border_left value in its calculation.
  */
-static
 int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx)
 {
        int store_h_border_left = pipe_ctx->stream->timing.h_border_left;
@@ -984,7 +983,6 @@
        return store_h_border_left;
 }
 
-static
 void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx,
                                   int store_h_border_left)
 {
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/dce100/amdgpu_dce100_resource.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce100/amdgpu_dce100_resource.c     Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce100/amdgpu_dce100_resource.c     Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dce100_resource.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $     */
+/*     $NetBSD: amdgpu_dce100_resource.c,v 1.4 2021/12/19 10:59:37 riastradh Exp $     */
 
 /*
  * Copyright 2012-15 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dce100_resource.c,v 1.3 2021/12/19 10:59:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dce100_resource.c,v 1.4 2021/12/19 10:59:37 riastradh Exp $");
 
 #include <linux/slab.h>
 
@@ -616,7 +616,6 @@
                .flags.bits.IS_TPS3_CAPABLE = true
 };
 
-static 
 struct link_encoder *dce100_link_encoder_create(
        const struct encoder_init_data *enc_init_data)
 {
@@ -639,7 +638,6 @@
        return &enc110->base;
 }
 
-static
 struct output_pixel_processor *dce100_opp_create(
        struct dc_context *ctx,
        uint32_t inst)
@@ -655,7 +653,6 @@
        return &opp->base;
 }
 
-static
 struct dce_aux *dce100_aux_engine_create(
        struct dc_context *ctx,
        uint32_t inst)
@@ -694,7 +691,6 @@
                I2C_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(_MASK)
 };
 
-static
 struct dce_i2c_hw *dce100_i2c_hw_create(
        struct dc_context *ctx,
        uint32_t inst)
@@ -710,7 +706,6 @@
 
        return dce_i2c_hw;
 }
-static
 struct clock_source *dce100_clock_source_create(
        struct dc_context *ctx,
        struct dc_bios *bios,
@@ -735,7 +730,6 @@
        return NULL;
 }
 
-static
 void dce100_clock_source_destroy(struct clock_source **clk_src)
 {
        kfree(TO_DCE110_CLK_SRC(*clk_src));
@@ -827,7 +821,6 @@
        return DC_OK;
 }
 
-static
 bool dce100_validate_bandwidth(
        struct dc  *dc,
        struct dc_state *context,
@@ -873,7 +866,6 @@
        return true;
 }
 
-static
 enum dc_status dce100_validate_global(
                struct dc  *dc,
                struct dc_state *context)
@@ -884,7 +876,6 @@
        return DC_OK;
 }
 
-static
 enum dc_status dce100_add_stream_to_ctx(
                struct dc *dc,
                struct dc_state *new_ctx,
@@ -912,7 +903,6 @@
        *pool = NULL;
 }
 
-static
 enum dc_status dce100_validate_plane(const struct dc_plane_state *plane_state, struct dc_caps *caps)
 {
 
@@ -922,7 +912,6 @@
        return DC_FAIL_SURFACE_VALIDATE;
 }
 
-static
 struct stream_encoder *dce100_find_first_free_match_stream_enc_for_link(
                struct resource_context *res_ctx,
                const struct resource_pool *pool,
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_hw_sequencer.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_hw_sequencer.c Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_hw_sequencer.c Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dce110_hw_sequencer.c,v 1.3 2021/12/19 10:59:02 riastradh Exp $ */
+/*     $NetBSD: amdgpu_dce110_hw_sequencer.c,v 1.4 2021/12/19 10:59:37 riastradh Exp $ */
 
 /*
  * Copyright 2015 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dce110_hw_sequencer.c,v 1.3 2021/12/19 10:59:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dce110_hw_sequencer.c,v 1.4 2021/12/19 10:59:37 riastradh Exp $");
 
 #include <linux/delay.h>
 
@@ -2691,7 +2691,6 @@
        }
 }
 
-static
 void dce110_set_cursor_position(struct pipe_ctx *pipe_ctx)
 {
        struct dc_cursor_position pos_cpy = pipe_ctx->stream->cursor_position;
@@ -2720,7 +2719,6 @@
                mi->funcs->set_cursor_position(mi, &pos_cpy, &param);
 }
 
-static
 void dce110_set_cursor_attribute(struct pipe_ctx *pipe_ctx)
 {
        struct dc_cursor_attributes *attributes = &pipe_ctx->stream->cursor_attributes;
diff -r 8717bc78b0eb -r 357b99c1d6e0 sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_mem_input_v.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_mem_input_v.c  Sun Dec 19 10:59:27 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/amdgpu_dce110_mem_input_v.c  Sun Dec 19 10:59:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_dce110_mem_input_v.c,v 1.3 2021/12/19 10:59:02 riastradh Exp $  */
+/*     $NetBSD: amdgpu_dce110_mem_input_v.c,v 1.4 2021/12/19 10:59:37 riastradh Exp $  */
 
 /*
  * Copyright 2012-16 Advanced Micro Devices, Inc.
@@ -25,7 +25,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dce110_mem_input_v.c,v 1.3 2021/12/19 10:59:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dce110_mem_input_v.c,v 1.4 2021/12/19 10:59:37 riastradh Exp $");
 
 #include "dm_services.h"
 
@@ -474,7 +474,6 @@
        }
 }
 
-static
 bool dce_mem_input_v_is_surface_pending(struct mem_input *mem_input)
 {
        struct dce_mem_input *mem_input110 = TO_DCE_MEM_INPUT(mem_input);
@@ -490,7 +489,6 @@



Home | Main Index | Thread Index | Old Index