From nobody Wed Sep 7 15:10:12 2022 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 4MN5KJ3s1Mz4bPLY; Wed, 7 Sep 2022 15:10:12 +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 4MN5KJ2LnNz3YB8; Wed, 7 Sep 2022 15:10:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563412; 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=slTIJxKSnleo1p+dYYW5jahgiHpSjZ/00EdQAxqLHAQ=; b=vbNKUEVd+/Urg+3xmJxrJjHf5IDr0qU3r+kCUz6vSLChhKu09giE76yvtSCiqbkI8yRoaZ xtoFBbB9ljfSMrv1lRY7XOEuXv7JHAaiGloUODHK06+YNt60ZvspaOnRn42Lg6DbqSUIXP inLt+gZdeh0xaJFFf3Tvpg1Y62Ny/cO04VALAI0m7VlTmwOIeA0QmBU9ViN2RmaSF0V/T1 FhXh87e9N6B9o+K7vCBLa8cc3lNQT4LxYQVUvQsnNETlhuCcIXlkpa6m2umhae3cB8LzOr 8WENIku/E1zgrIPjRw0F6lMx69VEbkMDPyrTpF67hZs48lPLjut8z2BGF65ojg== 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 4MN5KJ1SnKzYxG; Wed, 7 Sep 2022 15:10:12 +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 287FACih021353; Wed, 7 Sep 2022 15:10:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287FAC1O021351; Wed, 7 Sep 2022 15:10:12 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:10:12 GMT Message-Id: <202209071510.287FAC1O021351@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: dc42582096f0 - stable/13 - linuxkpi: Add compat_ptr and ptr_to_compat 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: dc42582096f008f61b7243af7647f7767189d03c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563412; 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=slTIJxKSnleo1p+dYYW5jahgiHpSjZ/00EdQAxqLHAQ=; b=IGnYTDSruaC41nOsGu8nhDnmNzLO8tp2eIO+PbS4kF0aCCzenNXMM39tFK7e1rFt3mvE1y dWM6gLJEiQFHF9mT/zze/cCrMPWr1N725rs0bmUhFBWuH7fZOPPlrhhfpiIqHLQl8fMVob ig1r5h3BNn0aKeApMbNZMobE+9Q5iBt9KcAOr7r1qDL7yCgobXHS6EVupXcwsIe6K4B+7D yE+amoAQZPZ6U0tZHnW2gJ0BWLKffpdCIOWl89iKCGvM1R2n4T4svWxomBrZGZrI1i6J3j CHsrHjgCCzQs2mRcLjUZKbWrkzFpN5X4Yc/OHggSMJdGjDONAAptNdxd+K/a+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563412; a=rsa-sha256; cv=none; b=Yho4S45C3BWRshvXDjUvWlQN5duIE0qR51E2LohPzgJxpZZXXEJgrX+DVHLq/t9+RV5ogp gF/PlwPceEMdL9PP4rj3tgCd49nF36W0Vkwm/8EEurQwkRTB08ZDThnHq87pvf+J04i92l JB3MMntQBgtV6Atw8c8jnJe5/U31FYYktJv5JWqM4vNRzPJdoFAA+XxCcUdDGZfNTcPnEs ihmU3r0F25UguiXJgg3rBSyGKu7cVENnl1ORsTVABmxFXeQ/yBOA+TQN1MsTMaDu7qvOOD Ka2vJ+MXAg7npMIeT4lv0IaPw+qm2OLffXsb40e8Aaaq0RU4pm4sUA8jgywGgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=dc42582096f008f61b7243af7647f7767189d03c commit dc42582096f008f61b7243af7647f7767189d03c Author: Emmanuel Vadot AuthorDate: 2022-07-27 07:48:32 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:04 +0000 linuxkpi: Add compat_ptr and ptr_to_compat Needed by drm-kmod. Obtained from: drm-kmod Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36016 (cherry picked from commit 37cda2837c004e743e9262e2e0ea409766df2a09) --- sys/compat/linuxkpi/common/include/linux/compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compat.h b/sys/compat/linuxkpi/common/include/linux/compat.h index 5e4dd1daf67d..b6bb5e8ed24b 100644 --- a/sys/compat/linuxkpi/common/include/linux/compat.h +++ b/sys/compat/linuxkpi/common/include/linux/compat.h @@ -58,4 +58,7 @@ linux_set_current_flags(struct thread *td, int flags) return (0); } +#define compat_ptr(x) ((void *)(uintptr_t)x) +#define ptr_to_compat(x) ((uintptr_t)x) + #endif /* _LINUXKPI_LINUX_COMPAT_H_ */