From nobody Sun Dec 24 13:20:04 2023 X-Original-To: dev-commits-src-main@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 4SyhTw57Cbz54c0w; Sun, 24 Dec 2023 13:20:04 +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 4SyhTw3K49z3c41; Sun, 24 Dec 2023 13:20:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703424004; 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=MFbKIPvQNesHDb43F4/YkERGZhzT7EctRUGFujPUkiw=; b=BcXWeLskbiO3O3RJGhn9DjW6ONwaU00a565ph6T9pQDVnCt/krsRN1CDoCKVilhuVaZ6BF mXZnpYtXF3o3b/WhKxSbetYsUiJZJ9lrPxuQq1YZ1ZFIvVbqzSfaDsL1YvhzpjLtx9QCmP 3mEIfLMTC/KP2Bn8JIQyFbKUu+4ED2Ml9laalFlcj9UEBFVRbqOjLXlRnuiT+GiKce/5S9 zRli2YJ4M1TBbKxgDROCUSLPWnwYEpoxXGbqt5Pzh+PoGt0ZNIgyYGeF2gs6MCMWhgWsRt VD4ljDiWd8g5AUFT30XX32W7Vl+IlXZfvNYbPe+t2tfJ8wM0pXe6GBxGAKOTQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703424004; a=rsa-sha256; cv=none; b=grqxiO/TIPDPBC94AsKquDv86DiDYVPdZ3hVPOKPvyaz5Yz0RXCgBQx5sL5CrM69C+PVzm EHvvVUqdORBYso/0fWNbF+5j+xjtgdrQQ71LL+mRfbl1IL0Q2k3ykk2qtbMdTfJpG3Oktj ewqrHg7k34iq1ZzN14LvwgJ8s1RiRUXgU0yewO2wbsYmYV58RrSW4/xbrHwSbI69JlsGGB OBMoN8Qkz5Jh4fYEq965YPQgTdGGfQX2mXfHgkTuxfrIOrCC7RgHVABsaaPme7vVXSkaT4 X6rhyEmPshHYjxLLl0+QgkwMvuYi3ej07NPPpb3b7RyF1nGAmiUWKBdSVihuqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703424004; 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=MFbKIPvQNesHDb43F4/YkERGZhzT7EctRUGFujPUkiw=; b=rPLld+v17ZrcxMVZoaHrG9IJ7natl35234Q1PhlUe3j++Abesa7v6wSt+70/OlnRCf0WBa ydO6Ke8PITVwbLU8Jn9rPPZs/R5Ked+a5ByrpKl8FcayF5AC6A+j/0/gQBd28X4RJLT33S TwxpTmGvVRlIZBkHfhoDuPlcbA7els0jmELgU3WMIu2FpQ3kqtW1BsVBRexJbAbstFIOIy dXN00HrnoNaJua8edDJMn8yfMVVadcqQBZPLlPd3n5KuNO8IXXbxNEyi2lqTaUs6vvZQ10 mcveBLF7HkJsHlY36qTUeL7tSZwzLmBiOdaj6pGXUaK16+pvQ6HBBoZXv1XQAQ== 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 4SyhTw268WzVCG; Sun, 24 Dec 2023 13:20:04 +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 3BODK4a5076649; Sun, 24 Dec 2023 13:20:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BODK4aa076644; Sun, 24 Dec 2023 13:20:04 GMT (envelope-from git) Date: Sun, 24 Dec 2023 13:20:04 GMT Message-Id: <202312241320.3BODK4aa076644@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: dbca44241419 - main - LinuxKPI: Constify src parameter of bitmap_copy List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: dbca442414191a43f334435b7910b63cb2777d53 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=dbca442414191a43f334435b7910b63cb2777d53 commit dbca442414191a43f334435b7910b63cb2777d53 Author: Vladimir Kondratyev AuthorDate: 2023-12-24 12:48:06 +0000 Commit: Vladimir Kondratyev 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);