From: bluhm Date: Wed, 20 Mar 2024 22:52:44 +0000 (+0000) Subject: Fix build with bitmap_copy() on i386 by adding const qualifier. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=46b2881190169ed0d999f401906c92eac84be6fb;p=openbsd Fix build with bitmap_copy() on i386 by adding const qualifier. OK jsg@ --- 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)