Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Dec 2023 13:20:04 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dbca44241419 - main - LinuxKPI: Constify src parameter of bitmap_copy
Message-ID:  <202312241320.3BODK4aa076644@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=dbca442414191a43f334435b7910b63cb2777d53

commit dbca442414191a43f334435b7910b63cb2777d53
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-12-24 12:48:06 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2023-12-24 12:48:06 +0000

    LinuxKPI: Constify src parameter of bitmap_copy
    
    in bitmap_from_arr32() to fix build on 32 bit archs.
    
    Sponsored by:   Serenity Cyber Security, LLC
    Fixes:  5ae2e6f913fa ("LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()")
    MFC after:      1 week
---
 sys/compat/linuxkpi/common/include/linux/bitmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/bitmap.h b/sys/compat/linuxkpi/common/include/linux/bitmap.h
index 84e0ba9c88ca..f26a0f99dc03 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitmap.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitmap.h
@@ -344,7 +344,7 @@ bitmap_from_arr32(unsigned long *dst, const uint32_t *src,
 			dst[i++/2] |= ((unsigned long) *(src++)) << 32;
 	}
 #else
-	bitmap_copy(dst, (unsigned long *)src, size);
+	bitmap_copy(dst, (const unsigned long *)src, size);
 #endif
 	if ((size % BITS_PER_LONG) != 0)
 		dst[end] &= BITMAP_LAST_WORD_MASK(tail);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312241320.3BODK4aa076644>