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/linux linux/hdmi: Use ssize_t for all ...
details: https://anonhg.NetBSD.org/src/rev/83c554f82caf
branches: trunk
changeset: 368404:83c554f82caf
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 09 18:18:36 2022 +0000
description:
linux/hdmi: Use ssize_t for all hdmi_*_infoframe_pack functions.
diffstat:
sys/external/bsd/drm2/include/linux/hdmi.h | 9 +++++----
sys/external/bsd/drm2/linux/linux_hdmi.c | 10 +++++-----
2 files changed, 10 insertions(+), 9 deletions(-)
diffs (75 lines):
diff -r 9fc63c0d7612 -r 83c554f82caf sys/external/bsd/drm2/include/linux/hdmi.h
--- a/sys/external/bsd/drm2/include/linux/hdmi.h Sat Jul 09 18:11:47 2022 +0000
+++ b/sys/external/bsd/drm2/include/linux/hdmi.h Sat Jul 09 18:18:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdmi.h,v 1.20 2022/07/09 18:11:35 riastradh Exp $ */
+/* $NetBSD: hdmi.h,v 1.21 2022/07/09 18:18:36 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -362,7 +362,8 @@
int hdmi_drm_infoframe_init(struct hdmi_drm_infoframe *);
int hdmi_drm_infoframe_check(const struct hdmi_drm_infoframe *);
-int hdmi_drm_infoframe_pack(const struct hdmi_drm_infoframe *, void *, size_t);
+ssize_t hdmi_drm_infoframe_pack(const struct hdmi_drm_infoframe *, void *,
+ size_t);
int hdmi_drm_infoframe_pack_only(const struct hdmi_drm_infoframe *, void *,
size_t);
@@ -374,8 +375,8 @@
int hdmi_vendor_infoframe_init(struct hdmi_vendor_infoframe *);
int hdmi_vendor_infoframe_check(const struct hdmi_vendor_infoframe *);
-int hdmi_vendor_infoframe_pack(const struct hdmi_vendor_infoframe *, void *,
- size_t);
+ssize_t hdmi_vendor_infoframe_pack(const struct hdmi_vendor_infoframe *,
+ void *, size_t);
ssize_t hdmi_infoframe_pack(const union hdmi_infoframe *, void *, size_t);
ssize_t hdmi_infoframe_pack_only(const union hdmi_infoframe *, void *, size_t);
diff -r 9fc63c0d7612 -r 83c554f82caf sys/external/bsd/drm2/linux/linux_hdmi.c
--- a/sys/external/bsd/drm2/linux/linux_hdmi.c Sat Jul 09 18:11:47 2022 +0000
+++ b/sys/external/bsd/drm2/linux/linux_hdmi.c Sat Jul 09 18:18:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_hdmi.c,v 1.4 2022/07/09 18:11:47 riastradh Exp $ */
+/* $NetBSD: linux_hdmi.c,v 1.5 2022/07/09 18:18:36 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_hdmi.c,v 1.4 2022/07/09 18:11:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_hdmi.c,v 1.5 2022/07/09 18:18:36 riastradh Exp $");
#include <sys/types.h>
@@ -66,7 +66,7 @@
return 0;
}
-static int
+static ssize_t
hdmi_infoframe_header_pack(const struct hdmi_infoframe_header *header,
uint8_t length, void *buf, size_t size)
{
@@ -369,7 +369,7 @@
__strong_alias(linux_hdmi_drm_infoframe_pack_only,linux_hdmi_drm_infoframe_pack) /* XXX */
-int
+ssize_t
hdmi_drm_infoframe_pack(const struct hdmi_drm_infoframe *frame,
void *buf, size_t size)
{
@@ -571,7 +571,7 @@
return 0;
}
-int
+ssize_t
hdmi_vendor_infoframe_pack(const struct hdmi_vendor_infoframe *frame,
void *buf, size_t size)
{
Home |
Main Index |
Thread Index |
Old Index