From nobody Fri May 17 05:59:13 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 4VgbrK4fcFz5KVjB; Fri, 17 May 2024 05:59:13 +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 4VgbrK43bBz4gSC; Fri, 17 May 2024 05:59:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715925553; 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=6m7OCEFaZLdmesjtk8wGW1llj76uwSLz4VmAvI1jjLs=; b=UtoR9qBLvPushSOQCuFDw4vsuU8ey0olc6zfBZ6L0UPly7oLt7JgE04CrzOjANs+Shlli3 A5OQX+PDyspr3zRHYD2fk/ohaO+hk/EyJpX7YMMVwWmlHaKVkFFlZSsmSYwOvXmyr4q8eG PvQtFrkKWDdyDw3sEK3RGHFrhqTMxO2Npxc5zqg9Z/gB2XyI5hByIxd/VuutC1ANCwRlH2 EIdaaufcmRanUdLDkS67ziu2vr1UqZvbdkrR4x4fNF1IxYoER8jjv9M3jhYA83M6c/HuFu LY3pg7c8c8WOGD+BfiaKCXSCd/gAJ+2tkk3sR4xdr4wFfgzcOsXv2oOKXwB4EA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715925553; a=rsa-sha256; cv=none; b=WY4JcUSVLOSGEz/KLocdP8i2WUztnKaH2rYbfvDgk/ViIC9/NcV0e/Xg3vEpCFaYCDRTcn V60eHv9aViOjMbfsfqXRveGBheC8DCn5CDuw/Eely6GmZqpg/3Ha8yQV1mWKI+v5frQBvR j4B2l3zFVZxbrfY3bwDw1reXsTW+5XCyvThrJYXdndyR6hV+xcuxOtr0uRFJe1HrZDplUW vr6GpZzEa1wfQLmiO12kwRHO/z1j6KdTHziQipkOcdMXvIXK9wqRmoCTIRpi0nG/w1wnZ0 uA0hOLC77dluJyWMRzNnfPMTa0poTHC7ZNThWUiYF01z5qsdq2m9Mod+zRyBPQ== 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=1715925553; 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=6m7OCEFaZLdmesjtk8wGW1llj76uwSLz4VmAvI1jjLs=; b=yVYCmLuqcL1leHgd3L57384lUBy6wHKGCM2HfiXOAm6EbUULi1D5aZldJYdiJSk1rt5lAi H/K+LqpbgB3h5wz0Ri1mG7MTNZVzWMJHtqnhSezCitg+q+cujyTvi0iccuiatJ+ubioiBG 0MJ9tN+iTHK0muLWEeH3lDuXMpVn6P9zh/kXjPlzOi2+LocTPQEaNAtlM5ka6O6lal1CH4 aXxVvVIhNyK5vfTu6xJG1otAeOX3yBmUWnZ25Dd5O2Sw4/FOkR71ez7DikFRN0rbBwz8XZ ew2PUkPkrXxrJQB+1Eol79u4MgfS/hTMb4Q/IbFNLyMj6YidD3inrDRn1DGqlA== 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 4VgbrK3X8szW4x; Fri, 17 May 2024 05:59:13 +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 44H5xDsp019864; Fri, 17 May 2024 05:59:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44H5xD7d019861; Fri, 17 May 2024 05:59:13 GMT (envelope-from git) Date: Fri, 17 May 2024 05:59:13 GMT Message-Id: <202405170559.44H5xD7d019861@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: cff79fd02636 - main - linuxkpi: Fix spin_lock_init 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cff79fd02636f34010d8b835cc9e55401fa76e74 Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=cff79fd02636f34010d8b835cc9e55401fa76e74 commit cff79fd02636f34010d8b835cc9e55401fa76e74 Author: Emmanuel Vadot AuthorDate: 2024-05-17 04:52:53 +0000 Commit: Emmanuel Vadot CommitDate: 2024-05-17 05:58:59 +0000 linuxkpi: Fix spin_lock_init Some linux code re-init some spinlock so add MTX_NEW to mtx_init. Reported by: David Wolfskill Fixes: ae38a1a1bfdf ("linuxkpi: spinlock: Simplify code") --- sys/compat/linuxkpi/common/include/linux/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h index 3f6eb4bb70f6..2992e41c9c02 100644 --- a/sys/compat/linuxkpi/common/include/linux/spinlock.h +++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h @@ -140,7 +140,7 @@ typedef struct mtx spinlock_t; #define spin_lock_name(name) _spin_lock_name(name, __FILE__, __LINE__) #define spin_lock_init(lock) mtx_init(lock, spin_lock_name("lnxspin"), \ - NULL, MTX_DEF | MTX_NOWITNESS) + NULL, MTX_DEF | MTX_NOWITNESS | MTX_NEW) #define spin_lock_destroy(_l) mtx_destroy(_l)