From nobody Thu Dec 01 14:04:43 2022 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 4NNHrX1Slsz4jHmC; Thu, 1 Dec 2022 14:04:44 +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 4NNHrX11Jpz3p17; Thu, 1 Dec 2022 14:04:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669903484; 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=sbRn2zBNJlwdhd4JtwqT1QYJBN4OR3fqgXp9HwxL5hk=; b=GlX0jES2UDxhzCKtpghBUlkNEpXN4urHTr4SutODFjHcXkbR0EKZc9xYa8t2UkZmYVFRtH p3Sk0YyvqdLnHrOU8riQDULiq4v4JZsbfJt0GaJUHK3XI2g6S8NRqrhRYIBpevaEXRk7a1 8QaLJNpAppSwbd+MP7V5Qp3N5HvdvA/w6HQNScZHdvldEH0sFYx0wI0lXYaAfTBvMb5ToP WsTMDT5tOEL5iSsJefoZnHNwQAh/ggnhXgQ13gezJa5rVvNH+jrpffCYu9Y+3D7iMcBVk/ vMEvaewlutt4WTICC509M1QzOmvbVHsbobRQlKN12cPC5LABziT2LrYqt/K4fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669903484; 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=sbRn2zBNJlwdhd4JtwqT1QYJBN4OR3fqgXp9HwxL5hk=; b=ubGOAT7mrhwLCCmG46I/WEok+/BmozyR1sI8D1s3hiI/eJn8K2z+EnFli3cL7LMoxMDCn0 e8feGFZ0iUhRYIUnnGDyLx+zJsspO/gLTS2xIaH1aAgdGL2viDIIklMvK3ZB84XEXQ2J03 3pOp31GyZaGHi6rrelL9oRIa5cSOnMcty5iji+MPcKtCz864RkIx8Ob29DMzHuvvlLNeah rCodVv8NfLKb9k63deCHtc2XjeK7EBk+jSPwqxpSfniIkWu5uup/mGFmisGA67fn0Z0bar ozE1Hg1so7E31+fcUIjjRace0FzNMfQCOjpyPE72eOEc0xtIezrdA6cBYRS0Mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669903484; a=rsa-sha256; cv=none; b=m4ft/umFpQJozVZes99d+KmaWqfYmwmSRXzKDwfDcMep5WoRX3W9lzpdidGGOju4emcTxK RdUmW1iGFa1sE9M5g04hHMF2yg2GMDarOl/lv5R3ljdTl5c4uB5nHCdJ7NO18uT5aF6i4+ SWSrrGNCZhzT0eLhSPkqTGs58gtZYvGR9yTxdpNIYbN5TWSUjpC/0rfBf9aKcXM7FDXLFq uU9W0Eu1Z9p9BHX5wD88Q21pv/C+WIeb3/S4gHCHWoErp60q8+prlsN2ARJ8gW5OQERkPg JcyTwvOF5RglHEza7bYuhVAR6oi7hTe+/+YkzwGy9OGjrNQOPktQo3fpGIxJ2w== 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 4NNHrW6zwGzfQg; Thu, 1 Dec 2022 14:04:43 +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 2B1E4hDV050795; Thu, 1 Dec 2022 14:04:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B1E4hkm050794; Thu, 1 Dec 2022 14:04:43 GMT (envelope-from git) Date: Thu, 1 Dec 2022 14:04:43 GMT Message-Id: <202212011404.2B1E4hkm050794@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: e101c1c2c9ba - main - linuxkpi: Introduce module_param() of type `bint` 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e101c1c2c9ba18b1dd0eb2000106fafc915babdc Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=e101c1c2c9ba18b1dd0eb2000106fafc915babdc commit e101c1c2c9ba18b1dd0eb2000106fafc915babdc Author: Jean-Sébastien Pédron AuthorDate: 2022-12-01 14:03:00 +0000 Commit: Emmanuel Vadot CommitDate: 2022-12-01 14:03:00 +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 --- 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, \