From nobody Sat Feb 17 21:33:19 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tchqh6G6Gz59lKV; Sat, 17 Feb 2024 21:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchqh1H8Cz4j7y; Sat, 17 Feb 2024 21:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Uoa3G4jTR945JZDC05WTz3JFYomlrd9OVlwrzWtyvJQ=; b=rIwTHH9iQ6yM16FGfR4ooqK9P521hdj9oaP1mrt+hnoGM7H5u1Uy2I11gZiZb3iB6+gqo+ zDZdqDYZ9Kydh0XyQZCz6kBY5K5irW2pQf6CgPaIgQFGcd6wjc/xms29huudQw4uillYtv GQeM6hSqFaSidOFSKV6/ca6RIO1L/jHVNXfP23vV2N8OQde5Fc8BZpfnDDlPS/5+tZqTuJ DSpT6cKzukxH+mBGeNKVRzv2KwQIjR5Xf5vVFY6mvrgpYPBj9JdbCWoCuVttd/j++H+LRB d516DMqWSgaTmzpFlMZmydng3Q6jtOQhu3sWa8KPDOuIq3c9mEQZHgPjkdf4Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Uoa3G4jTR945JZDC05WTz3JFYomlrd9OVlwrzWtyvJQ=; b=yOCmPy8NPxzvVbQ8lEOZIA0OyfyzmsWRMVcHhSy3cT3+fLMkT13BzVOFI2Qmp9yt9N/xe3 pjj7CT95JcE9zZsnaZHOt5SwZltJZ/Wu/ogxhUQ/62tNUNTyqKh/OMfDdePJVA6OFO4XfO t8UZICXmckIlYlgz3V5ZnsPFuxGC1RN7XnjVXPurGM9lYPvMhH9LAPpto6Ob1/bzKmwwB3 eRkdKV+ICB+dnN3U+gCR4UkRIoKr31mSjviQWFgOzpKAJUyilDhME8mV2WnNVgSkioELhY +Wd0/E8+auliEpeIuiqcsimZdTDyIHT94XBEw7Ql8PC9J3Gqu3sW9WS/gEniAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205600; a=rsa-sha256; cv=none; b=lFSemdCFDl4rFfupEJCFsK6sjhk1cPxxJYDIymRQTYReLj+5hB5WgaSS0JTiBZh+t+C5om a0w3VDz5mrz0tK7V3NTLgSylil73gvnk7I7hcIzPw8Pf13oT4+2ZWtIpK36ZH4iKFY1Flm uoSQQ63xv11wTvHSH60UQfPsndrgsqLuufS4Vxfa3IzzwW+51D4LIhGkq0O56zObizMPQZ uC7XQho+btn+ZGi2b+acyqxN1JpBoz/KCAJJ1HLNBmrosE99uXU3/Y0JzJ0w6N6O1Mx6jr y3LSiDXzYxdQJ+isLKLUclcTW4HnDKFB2mNhZ8Uo8hoP1AG8INWqW9U8aja2ZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tchqh0P1ZzPJp; Sat, 17 Feb 2024 21:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLXJtm021587; Sat, 17 Feb 2024 21:33:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLXJpv021584; Sat, 17 Feb 2024 21:33:19 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:33:19 GMT Message-Id: <202402172133.41HLXJpv021584@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 1a8c2dc098ad - stable/14 - LinuxKPI: Constify src parameter of bitmap_copy List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1a8c2dc098ad9f41c4819623b72ccc1529118c4c Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1a8c2dc098ad9f41c4819623b72ccc1529118c4c commit 1a8c2dc098ad9f41c4819623b72ccc1529118c4c Author: Vladimir Kondratyev AuthorDate: 2023-12-24 12:48:06 +0000 Commit: Vladimir Kondratyev 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);