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 amdgpu: Fix pr...
details: https://anonhg.NetBSD.org/src/rev/5c2b4edf7019
branches: trunk
changeset: 1028598:5c2b4edf7019
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:24:52 2021 +0000
description:
amdgpu: Fix prototype for snprintf_count: const, __printflike.
diffstat:
sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_hw_sequencer_debug.c | 6 +++---
sys/external/bsd/drm2/dist/drm/amd/display/dc/dm_services.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 749ad91d86be -r 5c2b4edf7019 sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_hw_sequencer_debug.c
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_hw_sequencer_debug.c Sun Dec 19 11:24:44 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/amdgpu_dcn10_hw_sequencer_debug.c Sun Dec 19 11:24:52 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_dcn10_hw_sequencer_debug.c,v 1.2 2021/12/18 23:45:03 riastradh Exp $ */
+/* $NetBSD: amdgpu_dcn10_hw_sequencer_debug.c,v 1.3 2021/12/19 11:24:52 riastradh Exp $ */
/*
* Copyright 2016 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_dcn10_hw_sequencer_debug.c,v 1.2 2021/12/18 23:45:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_dcn10_hw_sequencer_debug.c,v 1.3 2021/12/19 11:24:52 riastradh Exp $");
#include "dm_services.h"
#include "core_types.h"
@@ -50,7 +50,7 @@
#include "dcn10_cm_common.h"
#include "clk_mgr.h"
-unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...)
+unsigned int __printflike(3,4) snprintf_count(char *pBuf, unsigned int bufSize, const char *fmt, ...)
{
unsigned int ret_vsnprintf;
unsigned int chars_printed;
diff -r 749ad91d86be -r 5c2b4edf7019 sys/external/bsd/drm2/dist/drm/amd/display/dc/dm_services.h
--- a/sys/external/bsd/drm2/dist/drm/amd/display/dc/dm_services.h Sun Dec 19 11:24:44 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/display/dc/dm_services.h Sun Dec 19 11:24:52 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_services.h,v 1.2 2021/12/18 23:45:00 riastradh Exp $ */
+/* $NetBSD: dm_services.h,v 1.3 2021/12/19 11:24:52 riastradh Exp $ */
/*
* Copyright 2015 Advanced Micro Devices, Inc.
@@ -163,7 +163,7 @@
unsigned int delay_between_poll_us, unsigned int time_out_num_tries,
const char *func_name, int line);
-unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...);
+unsigned int __printflike(3,4) snprintf_count(char *pBuf, unsigned int bufSize, const char *fmt, ...);
/* These macros need to be used with soc15 registers in order to retrieve
* the actual offset.
Home |
Main Index |
Thread Index |
Old Index