From nobody Wed Sep 07 15:10:06 2022 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 4MN5KB6Z9Lz4bP9Y; Wed, 7 Sep 2022 15:10:06 +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 4MN5KB693Wz3XZ5; Wed, 7 Sep 2022 15:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563406; 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=M9iENWZLnzpexo4sh9WaVB4ZSh4UkbfG6dlKWRYCrTQ=; b=c3yvdVWcsuO3cUgAm/JY3xPAqbs0phv/1R9jNnFUdL+EW5En7dzwaXoiGJcFinUAptmLIE LwTokhuy3c8zJbsHJeEXWMNMDvAMrw68zXJHFEaGmajbDfq9vzJI9T/atw1LN/qOLDR3J2 OOexvven5Y/E8yDcMgOO45u5mnx9tfEOAvqbANj312AxfnPLiXIjLsipWsvp590xTlx+nN fn3KvDhvDKc+wr5COe0y57lbNC/9tgpvCXEx4/lRkOGqtc2FSArH1dD2Ds/oDD4lh/gkAb ASLoOSoSDtSUPMyAPOODv2nsX3UG8O7mBPDMyVFiml44I3ztsqu99X+UY872nA== 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 4MN5KB5G8VzZ8k; Wed, 7 Sep 2022 15:10:06 +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 287FA6p7020051; Wed, 7 Sep 2022 15:10:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287FA6pu020048; Wed, 7 Sep 2022 15:10:06 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:10:06 GMT Message-Id: <202209071510.287FA6pu020048@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: 988ccb61b573 - stable/13 - linuxkpi: Add linux/nospec.h 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: 988ccb61b5739090b3fd03276ba1e2e3fb009407 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563406; 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=M9iENWZLnzpexo4sh9WaVB4ZSh4UkbfG6dlKWRYCrTQ=; b=jSFuooG9TsaeunZGp0T7drAoNGiMboZ9LALP9mENXUv/pZMC+mM6M8CFRsrm9nSqvy9R3R ePZLABYLbncnnVNVSz7M6Jmm25o3IVgioHeerLYA7g/dFgkOe2QXvG7eRvd15pE0ebWdGi eCa92jVlDw77W/rCTJp2VrX5Z4Zxut8Zbsn2cr3zjYRow0yulY7oeIccaG27ccVkcJjcnU oVgbmltFRm73mhKGY8v1bwx2QHPaM/MuVaLCQr9vvYFKwMQwTSxYT0Uvtn0QslyWPKrdgM CykRE3A5IabGbSZl3V5Pd+zF7UQs8nzp9iOJS23fR+AojMsnAkySq7a+ny9HGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563406; a=rsa-sha256; cv=none; b=xRBSuuH2aaPZ9Y/6+0mbL3VwzG/qe/rEyziXwNMbXET1OuA9WUF5ARF4N/+o8BzrMvr4SE K50BkThwAKLvMAqKB1LRfox3A4AYTycIpCaV8Pu3rXAXOHINreAuf+8AxKwJwW+bnw8Xjo kdM9KqnSJtXdMYQH9qQHmpOVMkk4kVcsQfrTKOuIUozFmM+Fulwm5xPH9mH0nU8lWBeUZY azu8ln7DGkEu7KSiPvGTHlB08tiYXGov9Ox5Thw7axl9sVuaPKph4DiRR7ZttocmeTFv4j QG5t9fz+7IIcizrCKBd8pr3p2LVBxaX+X2jqEmKnw8Uf891Hd1asQp2QbWlC+g== 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=988ccb61b5739090b3fd03276ba1e2e3fb009407 commit 988ccb61b5739090b3fd03276ba1e2e3fb009407 Author: Emmanuel Vadot AuthorDate: 2022-07-26 08:13:49 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:03 +0000 linuxkpi: Add linux/nospec.h Needed by drm-kmod. Reviewed by: hselasky Obtained from: OpenBSD Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35940 (cherry picked from commit aec6a64c68b9ebadeacfba3dae2348b6b6aa90e4) --- sys/compat/linuxkpi/common/include/linux/nospec.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/nospec.h b/sys/compat/linuxkpi/common/include/linux/nospec.h new file mode 100644 index 000000000000..e8458ae8b371 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/nospec.h @@ -0,0 +1,8 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_LINUX_NOSPEC_H_ +#define _LINUXKPI_LINUX_NOSPEC_H_ + +#define array_index_nospec(a, b) (a) + +#endif /* _LINUXKPILINUX_NOSPEC_H_ */