git: 1a8c2dc098ad - stable/14 - LinuxKPI: Constify src parameter of bitmap_copy
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Feb 2024 21:33:19 UTC
The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1a8c2dc098ad9f41c4819623b72ccc1529118c4c commit 1a8c2dc098ad9f41c4819623b72ccc1529118c4c Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2023-12-24 12:48:06 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2024-02-17 20:58:39 +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 (cherry picked from commit dbca442414191a43f334435b7910b63cb2777d53) --- 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);