From nobody Tue Jan 24 08:54:01 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 4P1LP62DTJz30wrM; Tue, 24 Jan 2023 08:54:02 +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 4P1LP61Lgzz3R52; Tue, 24 Jan 2023 08:54:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550442; 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=EiuJsnAk5LfhY3T1R+AEn8n+OwLE5xgbSJlJYVrscLM=; b=Wty0TOiVpUF5EpEFfhcuLxHHv3xzbc+ZvXZpUg2mbYJD7GwmHcTfXPPAHYPpLCcD7VIuLW 3ySOynfuXcPHPIf2XhSptnKARv438pe/RM0Xahr40b7yfSMr+928RK6g4zxSACV11+4QZu EZjJ2NlkBaImZBdxGTtb7zHvMSivBPeuHPD/eBUSlJ+r4w8OdF9HIp2xmj2pL6EMkwatPU RwPhEA1zaVK7+eItH5+xRnAL9/EPCwMCVn5936B4Di5yj/OQ4kTwQsCDuv54UwGDTx6wpG Ar2evuPu4ggb3ytAZlvZQ59opN4Xm/pBj2DGSiKiwU+E6G84psb1SpW/kZ7Zgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550442; 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=EiuJsnAk5LfhY3T1R+AEn8n+OwLE5xgbSJlJYVrscLM=; b=LNLK4VW2W9r5k+mdElAGAl2R6aeJPIVct3O+ZoHvJ96x0vd+b6fj1TByu+q3pJKPn3oil0 rrHYPIrKUcNbIEjEh3s0svBPGTUdqt1WY2iYtK2MMO59C2UPlhyWSPifdudCioWhis8vlj doChRCOjpYOHY46zEGFPzt1UDl8jGV7RYGOlaZzCWRYd/2ZZNKXpzFmKnaA6l+3DtlBnDb PmYOaXxms+pDf0vTUAuH3iKfXHSM1xtSNhiBYnF2TlUVblnaisne1vfMRQzeYQY70MeKGF bWhQSsSpfCgiZ39zQ/l7CRmOww+WsFgVMwciuPsEYYitV4EIaOb6zv68dqhlKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674550442; a=rsa-sha256; cv=none; b=B1/MMA2fIdY2sZO9KmTo5nhoty4JZUaCjVzS/LXXnLgI339z2T5HdKqrkOjdncR8vqqBMf RRKyJXofpAMC30CUNKRNBG4ohTMHWKRmylsGxLHyzgacZKFGVAQvbTkB/r776XtxfYgZfJ nI3YXJuiaXqJxsZg/q2N6sAUf0NF9MKq8FvHaCIDgcHoZX/EQHxTzS/abiopT6GKTnEfQq aG1QGnkbb9AUGAkDopIKH/ELKH1Elu0R/KaSCoEIip8ub6ShUR4uHa1fGVYn8GPIwchyfC V+bLb19sVni5v4uD4ucNHB12LFtroWw/KcOR2rW8QwcViMNpLQ3z5BOrQ0hffA== 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 4P1LP60Kdqz12pH; Tue, 24 Jan 2023 08:54:02 +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 30O8s1em035940; Tue, 24 Jan 2023 08:54:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30O8s1PM035939; Tue, 24 Jan 2023 08:54:01 GMT (envelope-from git) Date: Tue, 24 Jan 2023 08:54:01 GMT Message-Id: <202301240854.30O8s1PM035939@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: 680731566e68 - stable/13 - linuxkpi: Define `typeof_member()` in 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: 680731566e6848c92fa8f6f567d98f67cb5e0fbe Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=680731566e6848c92fa8f6f567d98f67cb5e0fbe commit 680731566e6848c92fa8f6f567d98f67cb5e0fbe Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 17:41:36 +0000 Commit: Emmanuel Vadot CommitDate: 2023-01-24 09:08:00 +0000 linuxkpi: Define `typeof_member()` in Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36964 (cherry picked from commit d3584f92835a07d76bc579168ac5fdc3e020d5f0) --- sys/compat/linuxkpi/common/include/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index f3078d94b2b5..54b558d0bea2 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -574,6 +574,8 @@ kstrtou8_from_user(const char __user *s, size_t count, unsigned int base, #define offsetofend(t, m) \ (offsetof(t, m) + sizeof((((t *)0)->m))) +#define typeof_member(s, e) typeof(((s *)0)->e) + #define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max) #define clamp(x, lo, hi) min( max(x,lo), hi) #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)