From nobody Tue Jan 24 08:53:56 2023 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 4P1LP04mmFz30wvD; Tue, 24 Jan 2023 08:53:56 +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 4P1LP03mrZz3QdB; Tue, 24 Jan 2023 08:53:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550436; 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=53+VqOQFLZ7lGiIQUHpkBfnXbHDs0shm6we6AQ2X+DM=; b=Nn9jec2Oa5ec1qDpaDxskhOMkCbMht0pKpi+MLsaXL3Wkv+fMcCSxB5oOGQaL2540/6DIc 5YYPyMvq76SrEK9zTIuyQQ9m64dZhAEO+eRtjjMAaaKd2SNv+IXvUuq+ndmtidTs+Nu/bM nYJPke1NgZ0eG/QzQQfL83RKAwnyyTh9wTyHIrSdPtuDulEBBhksZIb/cIw3GHM8xNeVwd NMRh7yrOBAf1nDQIvSOas7QvsCj1pfww+l7tbOw4CWynVB8UDjDbZk6Y2IRtfFh1Gzhszg BUG+q3cxbbZcfVciElD2hyk8vBnGv/f0JueHXx25mO+qkl+/9/AGv1HLcgxVNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550436; 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=53+VqOQFLZ7lGiIQUHpkBfnXbHDs0shm6we6AQ2X+DM=; b=HDt36sjkzAphr2karxa8m49esMLMcpkggI2mT4wem3ZNb3gtJn/1zyPh2gaxr9tfgId71H bNGkQAdZJ84VMKw26BZp92irO2Co/ZY/XNJAc7AyhfxGRtmV4o8mSHyaXaH00XXWYd8sZV i1ebfq3zQqjvcggkcvD4rgfU2FQxjuJhQ/qUGq1bH9Ev5r5gLYcCgBGdLgrmYoths6besN eDyUeHUPgq4WSqoXWYTgd7nIbo7HBVQqViLIOm/o5DNBJNcJ4R3tE8bI8WwXM1Kxj8Nsa9 nthr9XgO6mD6H13MCSyPn8XRMwU+GAGHxY0DNnNqJQYB5MSfOyGKlspqfSTKhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674550436; a=rsa-sha256; cv=none; b=ZGArVfLr8MdDNfyUWr+4rYsC6RAwMT0e4hptv9SUgrtAp+k8Gtw36LANmVfO/J0Y6yuQI8 XyCnPH0WAC66+HEA1dUrGiF2Tn9VJFlc1aujX0AOBDFADDWBrudjUhU4EyytaDPWSiOPpO t+2y3/EIZf87F/DmV+9Ap6BdMqwB20nO594rtxBtV6fVqWKzJUch77ObqdrAa+a9VxB2aa WreGbqhA6BBeiHhZ+stjmtvVV0R5WVB4y9ADKKzWsTXC2aYCS2pwrUBAM4t3A+XON7JDHs CY0e7lMvXZOKm7lX6IvQEIVsQ76Xr/RFjZKXG8cZ1+E86v6dZPeDpfWZOhhBIw== 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 4P1LP02tWkz13Np; Tue, 24 Jan 2023 08:53:56 +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 30O8ru3M035684; Tue, 24 Jan 2023 08:53:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30O8rul6035683; Tue, 24 Jan 2023 08:53:56 GMT (envelope-from git) Date: Tue, 24 Jan 2023 08:53:56 GMT Message-Id: <202301240853.30O8rul6035683@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: 5001242e807f - stable/13 - linuxkpi: Introduce module_param() of type `hexint` 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 5001242e807f9d609071d5451ec2eeff78add6b2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=5001242e807f9d609071d5451ec2eeff78add6b2 commit 5001242e807f9d609071d5451ec2eeff78add6b2 Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 17:36:46 +0000 Commit: Emmanuel Vadot CommitDate: 2023-01-24 09:08:00 +0000 linuxkpi: Introduce module_param() of type `hexint` In Linux, this affects how the value is formatted. In FreeBSD, this remains an unsigned integer. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36958 (cherry picked from commit 0b8a423d073309ab5f24501c2f6b3f6b2cd8f422) --- sys/compat/linuxkpi/common/include/linux/moduleparam.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/moduleparam.h b/sys/compat/linuxkpi/common/include/linux/moduleparam.h index d9485de88f56..ebf3b7a95c02 100644 --- a/sys/compat/linuxkpi/common/include/linux/moduleparam.h +++ b/sys/compat/linuxkpi/common/include/linux/moduleparam.h @@ -90,6 +90,12 @@ LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), &(var), 0, \ LINUXKPI_PARAM_DESC(name))) +#define LINUXKPI_PARAM_hexint(name, var, perm) \ + extern const char LINUXKPI_PARAM_DESC(name)[]; \ + LINUXKPI_PARAM_PASS(SYSCTL_UINT(LINUXKPI_PARAM_PARENT, OID_AUTO, \ + LINUXKPI_PARAM_NAME(name), LINUXKPI_PARAM_PERM(perm), &(var), 0, \ + LINUXKPI_PARAM_DESC(name))) + #define LINUXKPI_PARAM_long(name, var, perm) \ extern const char LINUXKPI_PARAM_DESC(name)[]; \ LINUXKPI_PARAM_PASS(SYSCTL_LONG(LINUXKPI_PARAM_PARENT, OID_AUTO, \