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 ALIGN -> round_up
details: https://anonhg.NetBSD.org/src/rev/ffbc1fe92aea
branches: trunk
changeset: 1027897:ffbc1fe92aea
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:13:44 2021 +0000
description:
ALIGN -> round_up
diffstat:
sys/external/bsd/drm2/dist/drm/drm_plane.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 03ce3f64b611 -r ffbc1fe92aea sys/external/bsd/drm2/dist/drm/drm_plane.c
--- a/sys/external/bsd/drm2/dist/drm/drm_plane.c Sun Dec 19 01:13:28 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_plane.c Sun Dec 19 01:13:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_plane.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $ */
+/* $NetBSD: drm_plane.c,v 1.3 2021/12/19 01:13:44 riastradh Exp $ */
/*
* Copyright (c) 2016 Intel Corporation
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_plane.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_plane.c,v 1.3 2021/12/19 01:13:44 riastradh Exp $");
#include <linux/slab.h>
#include <linux/uaccess.h>
@@ -111,7 +111,7 @@
* should be naturally aligned to 8B.
*/
BUILD_BUG_ON(sizeof(struct drm_format_modifier_blob) % 8);
- blob_size += ALIGN(formats_size, 8);
+ blob_size += round_up(formats_size, 8);
blob_size += modifiers_size;
blob = drm_property_create_blob(dev, blob_size, NULL);
@@ -125,7 +125,7 @@
blob_data->count_modifiers = plane->modifier_count;
blob_data->modifiers_offset =
- ALIGN(blob_data->formats_offset + formats_size, 8);
+ round_up(blob_data->formats_offset + formats_size, 8);
memcpy(formats_ptr(blob_data), plane->format_types, formats_size);
Home |
Main Index |
Thread Index |
Old Index