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/include/drm Constify some prototypes f...



details:   https://anonhg.NetBSD.org/src/rev/4f3bff0248fd
branches:  trunk
changeset: 1027892:4f3bff0248fd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:08:15 2021 +0000

description:
Constify some prototypes for great constance.

diffstat:

 sys/external/bsd/drm2/include/drm/drm_vma_manager.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 4b096b785d15 -r 4f3bff0248fd sys/external/bsd/drm2/include/drm/drm_vma_manager.h
--- a/sys/external/bsd/drm2/include/drm/drm_vma_manager.h       Sun Dec 19 01:08:07 2021 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_vma_manager.h       Sun Dec 19 01:08:15 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_vma_manager.h,v 1.2 2021/12/19 01:02:02 riastradh Exp $    */
+/*     $NetBSD: drm_vma_manager.h,v 1.3 2021/12/19 01:08:15 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -55,25 +55,25 @@
 };
 
 static inline unsigned long
-drm_vma_node_start(struct drm_vma_offset_node *node)
+drm_vma_node_start(const struct drm_vma_offset_node *node)
 {
        return node->von_startpage;
 }
 
 static inline unsigned long
-drm_vma_node_size(struct drm_vma_offset_node *node)
+drm_vma_node_size(const struct drm_vma_offset_node *node)
 {
        return node->von_npages;
 }
 
 static inline bool
-drm_vma_node_has_offset(struct drm_vma_offset_node *node)
+drm_vma_node_has_offset(const struct drm_vma_offset_node *node)
 {
        return (node->von_npages != 0);
 }
 
 static inline uint64_t
-drm_vma_node_offset_addr(struct drm_vma_offset_node *node)
+drm_vma_node_offset_addr(const struct drm_vma_offset_node *node)
 {
        return (uint64_t)node->von_startpage << PAGE_SHIFT;
 }



Home | Main Index | Thread Index | Old Index