From nobody Mon Aug 08 14:04:21 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 4M1dH95M05z4Y4Yb; Mon, 8 Aug 2022 14:04:21 +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 4M1dH92knbz3vJt; Mon, 8 Aug 2022 14:04:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659967461; 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=G6T1Wv0VcM952ICyW+Ptku9Q1m+j7T8qSEI5G8b4RRM=; b=E0OrwCyMjQjTde9r9F/8RzeHKyoLn6KTD+uleOtDFgYkd9w/gsPt0TcTok/6YjoplJls6E 1c0r1po/zGqvoOehli2TjbjNJSLG2MOpXdPJXAUFckjABmzZN8EwAesc1LQ6qxIL7yhlY4 mmJ44v2z0yIkY9HNhZcRndJIUVsvn9BDuu/JHZZZMNZ7C2PEPvhEO7SYRU2qWU2azc9CWx ezxk9TaRyAgj7rp32LIUCDQt03hMqE1kD545esu9zEmm4Gkktv6tPZ8VIbw8pNbW0x7qDN LgFgdJlx5q+CBjmawPxf3A6ceJVYmkFp87yE6AunK9dz1TUP3v1NZEEQMNcEow== 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 4M1dH91r2GztvZ; Mon, 8 Aug 2022 14:04:21 +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 278E4L3e088887; Mon, 8 Aug 2022 14:04:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 278E4Lci088886; Mon, 8 Aug 2022 14:04:21 GMT (envelope-from git) Date: Mon, 8 Aug 2022 14:04:21 GMT Message-Id: <202208081404.278E4Lci088886@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: 37cda2837c00 - main - linuxkpi: Add compat_ptr and ptr_to_compat 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37cda2837c004e743e9262e2e0ea409766df2a09 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659967461; 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=G6T1Wv0VcM952ICyW+Ptku9Q1m+j7T8qSEI5G8b4RRM=; b=MuVp7WlgzdYDTCoMweMGHT5Ei6319kwPqUilpN3I9Es9Mm9KphZp/1v6Yq3dsP5oWAi8fp 4pdZaUqgLNJC8jUvi/Q2ca+9MI3IhWOlmaokURIGXEOId2JUwVom2RAhefzlbLZ2+D4SuQ 6xSBzHlot6+flt4JTSOWzNzxLSs1z5POzwYVtHnVUxiKhttbkXOef5gyq769NF01Q5i6Xo H1NlZlAdAERDusWS+9RKAckQWtrjNAXQMMpG/sUQ+czNAyvfQ5l23/T6473FQ6I6Xqm4yt Rr7E0L/fCsn27AA+Xri1db9OYoEBMKYErjJifePWpnKwlUXOBB8cJH8cVQER5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659967461; a=rsa-sha256; cv=none; b=utFgW04W2N7qjaGLG8g8F80YfRzCG9itnG5WYfhM/Tw3AuxIxrCN9pnXjahA0AIQMzTUN9 38ryrLJEe1LGvBkOkEVu6cERBtt+GplGIufRa9ECIs2omuFw8tl5DJV7ZJmSFza/bRW6Jj 2rMb4H9hpKcslvnMRxTIf8SJdBA9R7zeTUWxNepH3FD6R8VPQB1U3wYnGpujG69Wu9N7v6 3zvIYOt+DQRtpuN79vkJUlDAcwwRVYmAEJJV3WKwN8WRjieH7b+nWF3oSz0fpQg3ypdrVw /4LdcYhdngU5j9Unhw6BxTnnj1gkEEynq6+wSrKFEi9nuaEOlHK/Ot3ONCrPfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=37cda2837c004e743e9262e2e0ea409766df2a09 commit 37cda2837c004e743e9262e2e0ea409766df2a09 Author: Emmanuel Vadot AuthorDate: 2022-07-27 07:48:32 +0000 Commit: Emmanuel Vadot CommitDate: 2022-08-08 13:22:35 +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 --- 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_ */