From nobody Fri Nov 11 17:57:48 2022 X-Original-To: dev-commits-src-main@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 4N85yh71fnz4dTXP; Fri, 11 Nov 2022 17:57:48 +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 4N85yh6DB8z3R72; Fri, 11 Nov 2022 17:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668189468; 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=1I0f9doLkgLi8vXD4r5gNESStxGi4m+RxsoL0wkhXDw=; b=PwwvqnKvyq5kSZ5jaFshIf2lC0wXOi2bqqft9lDYmZDZR68LeztYCTOdfklDof4rnceE6j 0hV6Fj+z0y6oTwb47qWpYLR9IhBmjRUco21w/VSZFpZBS6aUBJZdxU4fCAAvkFRezVOPjA BiGMcdsnsZBpXxX/yEmkZ/OZ1Db71Iuj+xQGYIRsfPPXXiQpu2YfvFT6i5Xxr4LdBAzsmA ItD9AJMLd+q7A4ZSCgdcpOmaZEt16LNZaNWv6nWLgnZ1M+KEqDYpX/yP+tJNss6hDqnyBn nQ8VuFXGMM1R1jAQR/wd0CdD+yEK/ukHXqwTHVrti45lqelhqgMVb30NMpQLVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668189468; 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=1I0f9doLkgLi8vXD4r5gNESStxGi4m+RxsoL0wkhXDw=; b=iezo6erfXm1sy65hZFb0nR3Voh2FiO0y/UuBlODxP9ZztylnSNUM3T0EUuoMMfBXmk9Pxu 0lL0Wrt1c3n+Ikmdu/HKm//SIn89+RfIkqSgtQHG5PnQNvNV8c4qcrSZVr+DOn1mnNaJEL JorYH0t84AISuylh49sp3MPT0SsS4SSr0126qZwaCyocKUyxT+77VJzvd+18elO4to0DV9 0Om+Iijv1yvaB62ANWgD5t/yIPP6jGCzbfOJPdei4d0gk1IyqNqYisvfVaTvh2ciK79+38 x6D9UmOmp9rg5J7qYoJHe173Kt6ah1b1Y7zPKj3sap5DmAyEdxVnPzqdDBKzzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668189468; a=rsa-sha256; cv=none; b=GS+FkQX6F7lhFAvivTS884aRf2doNooGz3avgH9MISR2Md06gCMJ4cK/EuSW7VgbkkzqkQ kNAvilThytu9F4d6/yZUlx8aihqk42bi+daF8zkC6XMJXpK45soYan4XXeGdyGFJDJfipA n1vZHoYdUkZnBuMiFMs1GRx0WZPiKdVymsNnZ1jAMUGiQabNdNoObzr3T0g0RafdsNPqXp xYzBCLjMXjBL3I6N6ique9UkJiQ5qlr8DRZ9hdkWBvkcdDG/BXvp2GoPho3Xaub3HWOTTy L/VacoDtyFu52R8xmowMMR5LrNjRHVSCtiaLQ3ShqUCQuxc4ngiAwCUuohma0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N85yh5K1gzs8s; Fri, 11 Nov 2022 17:57:48 +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 2ABHvm1S044912; Fri, 11 Nov 2022 17:57:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABHvmCW044911; Fri, 11 Nov 2022 17:57:48 GMT (envelope-from git) Date: Fri, 11 Nov 2022 17:57:48 GMT Message-Id: <202211111757.2ABHvmCW044911@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: d3584f92835a - main - linuxkpi: Define `typeof_member()` in List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d3584f92835a07d76bc579168ac5fdc3e020d5f0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=d3584f92835a07d76bc579168ac5fdc3e020d5f0 commit d3584f92835a07d76bc579168ac5fdc3e020d5f0 Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 17:41:36 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2022-11-11 17:41:36 +0000 linuxkpi: Define `typeof_member()` in Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36964 --- 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 2c40b2f33c41..3ae8f31832fd 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -577,6 +577,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)