From nobody Wed Jun 24 16:47:51 2026 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 4glntH72lRz6jTTj for ; Wed, 24 Jun 2026 16:47:51 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4glntH4NNjz3MsF for ; Wed, 24 Jun 2026 16:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782319671; 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=IT02ZWMAS06JOR4e4ehJSYpf7R8LpxM3Fyr54uij5aY=; b=kNFGI8JWYPxU90y4RESSfx2XbJfN1W3zzKjmAM1u7/zp2D8prRCXCUc9GYphbQ2rvH2jcj 5jGlomMNFeQMnqNRz7L6OMiz14+G3AqG3+8Z28ZimDnOH1muv7paIz01IyzcC/vp8hTIFo SSFAeSs6UhIPf+yPFQq97X1qNCpBabKZ2RkWvcwVElbcgAUFWt4aqWHCqah5aidwpk+w7E 5qHPQOnds0O2kIP12ZvhbVkAzM2OrcU5zwGk5jV7cJU+sygK3PKyq6RjtX/sxSQOzeRjg6 qBDH8FypjeVtVOnQ1u7Nxuk/ebrj0LgS5qRtdUonIAQeyF4OpXT0jSe03uY6eA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782319671; a=rsa-sha256; cv=none; b=hAO3h/NLq4wg/0HHGzjZA+eOGS4XzAVfA4Cy0Y8+rXpDOXNANyYVoaHuzb3ya7PRKhE03w w03gyUdqVCc581f6IrFZOi7cHDPPQCvlxkNuP8yF5IGwOBF93yilauMAz5z4y42tZI82qA v408lqE725TEZLcwz6uSJjiDJC5ooTABf89tJeILkciqu2FJ1Vgb6Y9ZRbEd/rXNJuWxtF D2D+MigkVdaruCOFbD9h0MO6LM5/MET+Ap0qQ/Lh8njdV9kgzWNOoZAeVArkLStRT8StOL 78yQnqe70KXjrJiQmFk6hi9+Aean2IvbsSHYiU46gKI2SUtVbg2Ju4y0e8OuLQ== 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=1782319671; 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=IT02ZWMAS06JOR4e4ehJSYpf7R8LpxM3Fyr54uij5aY=; b=gVM2YNoPfWwCE7BLMNp+ROYfo2Kvq8ceASHwwEtrLM+ymKmcJfK0iYr47lLYjbCfxwwl76 rauCBARcQgTSBQ5UYS/MU52STBJXLmTSVf5/FD95kg3QeKrXebs7isYt2AFaLqtLxRyogC uaXRY4NxxhMuo9QE1YAvOJOMKnjXgJfY74NTsBrk0aFIaJtElGbJHs/h+FsXzCkih2q5hP FW6OZ50Ad012WjR7lQTHLIFcW3iPHDN0tCyILMw/hySTRbp+NWAdbWbszzoz9OLut/hxVf +eg1+OD24GXp5U7ZSaL67U/ABjbKqE2MljDi87yegt1ulUFMFkHPJEqtmUjEfw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glntH2x4zzCWl for ; Wed, 24 Jun 2026 16:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27c75 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 24 Jun 2026 16:47:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 8aa685153bd6 - main - linuxkpi: Add const qualifier to `bitmap_weight()` 1st arg 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8aa685153bd6a05f6c0f89ae067d67a00a984c05 Auto-Submitted: auto-generated Date: Wed, 24 Jun 2026 16:47:51 +0000 Message-Id: <6a3c0a37.27c75.d34c294@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=8aa685153bd6a05f6c0f89ae067d67a00a984c05 commit 8aa685153bd6a05f6c0f89ae067d67a00a984c05 Author: Jean-Sébastien Pédron AuthorDate: 2026-06-12 17:21:59 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-06-24 16:47:09 +0000 linuxkpi: Add const qualifier to `bitmap_weight()` 1st arg Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57581 --- 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 f26a0f99dc03..443cf6324642 100644 --- a/sys/compat/linuxkpi/common/include/linux/bitmap.h +++ b/sys/compat/linuxkpi/common/include/linux/bitmap.h @@ -202,7 +202,7 @@ bitmap_release_region(unsigned long *bitmap, int pos, int order) } static inline unsigned int -bitmap_weight(unsigned long *addr, const unsigned int size) +bitmap_weight(const unsigned long *addr, const unsigned int size) { const unsigned int end = BIT_WORD(size); const unsigned int tail = size & (BITS_PER_LONG - 1);