From nobody Tue Jan 24 08:54:13 2023 X-Original-To: dev-commits-src-branches@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 4P1LPK48Bfz30xHK; Tue, 24 Jan 2023 08:54: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 4P1LPK3D0tz3hGT; Tue, 24 Jan 2023 08:54:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550453; 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=RZ+0wII2VC7jH2XisCWC300pmVCp1Pq1p9vsI8jigoc=; b=L43c2um6RkgEu+tS2xLKUYpAlnisTWVa0cauhSDvpdJp2Z5lgK9+SAyGeSipnqQDWLmvNp gl0GH1rY25sbiA5uqxuvb9do3ntmS0wkqzSqtlrZ/DfFalCV8QXhkgjcIkAHXZAhbsW2tt maQbR18Uyf/ykLnYuPl6eYNCIW5nlTjk26lasHCqx/egkjveUD2kb71BADzignYNNPknGZ /NI/3ZaIDuBoRhat3y18S/90qrSKGjH6Jepeu6X3PGhiWSX2rxY2gKhnZBS21Rhecpm25k frW3ckTSl3w9WKe1SjIiJbCu5zsbxix8oaTWmrllmftNjwr7RN2NeDPJUJa5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550453; 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=RZ+0wII2VC7jH2XisCWC300pmVCp1Pq1p9vsI8jigoc=; b=fJq0ZCaLIgioxp/k5ozByjGTRqWBb/XV5hqT+kYVq7AlWMhoTVO8z89n63Hz48v+E3FVvi fEtdeoECr9gkw/o333twZNDDKTsOw2hBt6L0UpjuIx6txsaSjuFkTAQPlwlPpEBRa3KwjC 8hUIozjzMQT/WKwpUj+D1utaR6MszPqvPbKo0jUuhoIcz9cDSOSEjkfvc6cI6z5jkqDV2E qEsWlZQAj0EUQbVJ55hYttFZprI7mzv2e9Q2vU6iidK2irFy9ga219BuRLB8MbvVEY50Gf Qyq+iYmnK3lB2cYyppQB+mMr3wS2wEIWJhi4M2snSlKp20ziJzuhVLgDTe7+xw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674550453; a=rsa-sha256; cv=none; b=nbqZshojFQYZ6o4VVXnwKdwz1CSYdUeI+3TF4xbgo3oR8kzleaxucYibSKFJJW4ps1pmfd +C0mVQioJEXCw0PxcBKnOJC7KlGmKJC3AIdCm07MB4N9j491ZPA2MVfSGZpTNF5LrNtrk9 G5NhA7+v9HmOzo5M8PYvtJc8kkqrnRRmCgS2b1/max2oSxbBPrfuyzqEij+6RJCS983+ZG 2LGRw351pOE1gGnk411wmltzNMQN4Rt6zxZdcAq4QLMYzs4r7I1pMchU1CrkpnVbw3n4+c zyCuxB3HvZCJu3fgWaILDMXMfeC7BTluDwX4DQDjV09DnSqQWpnSHNILsGLcHw== 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 4P1LPK2FMQz13MF; Tue, 24 Jan 2023 08:54:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30O8sDt5036204; Tue, 24 Jan 2023 08:54:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30O8sDM0036203; Tue, 24 Jan 2023 08:54:13 GMT (envelope-from git) Date: Tue, 24 Jan 2023 08:54:13 GMT Message-Id: <202301240854.30O8sDM0036203@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: a1a8fe776916 - stable/13 - linuxkpi: Introduce module_param() of type `bint` List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: a1a8fe77691694ebc55c0d940300badb48554a03 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=a1a8fe77691694ebc55c0d940300badb48554a03 commit a1a8fe77691694ebc55c0d940300badb48554a03 Author: Jean-Sébastien Pédron AuthorDate: 2022-12-01 14:03:00 +0000 Commit: Emmanuel Vadot CommitDate: 2023-01-24 09:08:01 +0000 linuxkpi: Introduce module_param() of type `bint` In Linux, this limits the accepted value to -1, 0 and 1. In FreeBSD, this remains a signed integer with no specific constraints. This change is a requirement to update our DRM drivers to Linux 5.12. Differential Revision: https://reviews.freebsd.org/D37364 (cherry picked from commit e101c1c2c9ba18b1dd0eb2000106fafc915babdc) --- sys/compat/linuxkpi/common/include/linux/moduleparam.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/moduleparam.h b/sys/compat/linuxkpi/common/include/linux/moduleparam.h index ebf3b7a95c02..b5c6ef95637c 100644 --- a/sys/compat/linuxkpi/common/include/linux/moduleparam.h +++ b/sys/compat/linuxkpi/common/include/linux/moduleparam.h @@ -90,6 +90,9 @@ LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), &(var), 0, \ LINUXKPI_PARAM_DESC(name))) +#define LINUXKPI_PARAM_bint(name, var, perm) \ + LINUXKPI_PARAM_int(name, var, perm) + #define LINUXKPI_PARAM_hexint(name, var, perm) \ extern const char LINUXKPI_PARAM_DESC(name)[]; \ LINUXKPI_PARAM_PASS(SYSCTL_UINT(LINUXKPI_PARAM_PARENT, OID_AUTO, \