From 46b2881190169ed0d999f401906c92eac84be6fb Mon Sep 17 00:00:00 2001 From: bluhm Date: Wed, 20 Mar 2024 22:52:44 +0000 Subject: [PATCH] Fix build with bitmap_copy() on i386 by adding const qualifier. OK jsg@ --- sys/dev/pci/drm/include/linux/bitmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/include/linux/bitmap.h b/sys/dev/pci/drm/include/linux/bitmap.h index 5c8572f4442..dc7fddd4a36 100644 --- a/sys/dev/pci/drm/include/linux/bitmap.h +++ b/sys/dev/pci/drm/include/linux/bitmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bitmap.h,v 1.7 2024/03/20 02:51:06 jsg Exp $ */ +/* $OpenBSD: bitmap.h,v 1.8 2024/03/20 22:52:44 bluhm Exp $ */ /* * Copyright (c) 2013, 2014, 2015 Mark Kettenis * @@ -115,10 +115,10 @@ bitmap_intersects(const void *s1, const void *s2, u_int n) } static inline void -bitmap_copy(void *d, void *s, u_int n) +bitmap_copy(void *d, const void *s, u_int n) { u_int *dst = d; - u_int *src = s; + const u_int *src = s; u_int b; for (b = 0; b < n; b += 32) -- 2.20.1