The branch main has been updated by wulf:

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

commit dbca442414191a43f334435b7910b63cb2777d53
Author:     Vladimir Kondratyev <w...@freebsd.org>
AuthorDate: 2023-12-24 12:48:06 +0000
Commit:     Vladimir Kondratyev <w...@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);

Reply via email to