From nobody Mon Apr 6 19:55:25 2026 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 4fqKn92xncz6Ycgd for ; Mon, 06 Apr 2026 19:55:25 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqKn91bYbz3Z6W for ; Mon, 06 Apr 2026 19:55:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775505325; 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=gZBZ2RguPDT4hGXCtdnDRxZgINczd7nXieZ7f+q5gRU=; b=S+OjELiAkNTXuLU5VOySMzTgA98QE2tjTewrmErcQ74mD5mGOXzQTkXWHz+OJCaBSgbZdC E0ZevlwtKaauNJ2NUkYvm0ij6GkdI798jj835rA+rI0/a8RCbQM8Qm2BrJlNPzAAymhLOV wC4shGYBT9rn2ZRTMcYHBV/aixTnRoOjoYrRdpQZQZSVQHtI3votBgu2sdmhnM0Rs3ugSY 84GoU7eHB0xmIctJYX+DNybL0GyN3UtfMo1T4StWWMhdQ9qHc9Y1XjFf+9qRnDso5EKlIM pSbqqA82YI+YHJSj5FYaOm/zORGCgPR34ir6J0EoldsAJSMuZJDGo/hxXZjRvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775505325; a=rsa-sha256; cv=none; b=qtIZ7qWuiv8QkDbFbzMKCzxJYynbH3g84h35KgOFRdeAc9zI9n8k70QzePWazFx7z6euZE XlRjf4cTs0pSllf+k2mOs35LUmWLaWK9Kap/PwyzN14cWPH1LPRVxTBZnbttZGwDF4P5Cu qmZRakLUZ7/qLk+/GJMTzA5BKNJzKDeVkOozQeKIAc5HTl7zBMrtz7tdWwkLilV1ltf5kL ujV52LsHjG3dsiGomKyadwVvmCDd72MOyPVxmPMUdHnpCmaGKz96z0p6k340lLsPxxb8Bo zRKhDEeC6Bp8600ARvhzNiXTbECZy31mVC9EZ47thMwPRl1vnemstgWfHOtN0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775505325; 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=gZBZ2RguPDT4hGXCtdnDRxZgINczd7nXieZ7f+q5gRU=; b=YaH8UwNlaZ183i4LnizISV1nu2VXyMbySNNQrZJ+Syz68LzU8OTFLsGM0HIqUeBc5xfBji RTlnfCOwXI/mjcqybh7NWnFE+pH9yCPjkf+s0keh75vbZjvnBxwFRc+qMbzjpng5sSj2H1 ZHQqKg/rn7b73L5gcj2hbCAtv2/QFLv1ENKC4KRpu33C8G81Hs+BK+LM5EeUhBwn/ED1Xi Sr6rzFmaeMgi9HLUkc1hbrLEoJrEqSX97/6JO7EjLmRf+t+x8oTPyZEOi9QOhOc5ofHNHD g392/dy+osyV7FWBaOA6rUQaLLgeJdDIIkx+Y5FPIPzLGFyQuaYA189+xSb/ug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqKn91613z16Rh for ; Mon, 06 Apr 2026 19:55:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38480 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 06 Apr 2026 19:55:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 8af854ea479a - main - linuxkpi: Move `_RET_IP_` to 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: 8af854ea479a140a6e284d74e481d0b547408df2 Auto-Submitted: auto-generated Date: Mon, 06 Apr 2026 19:55:25 +0000 Message-Id: <69d40fad.38480.feef35e@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=8af854ea479a140a6e284d74e481d0b547408df2 commit 8af854ea479a140a6e284d74e481d0b547408df2 Author: Jean-Sébastien Pédron AuthorDate: 2026-03-02 23:06:54 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-04-06 19:28:08 +0000 linuxkpi: Move `_RET_IP_` to This matches the declaration on Linux. Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55730 --- .../linuxkpi/common/include/linux/instruction_pointer.h | 13 +++++++++++++ sys/compat/linuxkpi/common/include/linux/kernel.h | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/instruction_pointer.h b/sys/compat/linuxkpi/common/include/linux/instruction_pointer.h new file mode 100644 index 000000000000..9dc16781808a --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/instruction_pointer.h @@ -0,0 +1,13 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2021 Neel Chauhan + * Copyright (c) 2026 The FreeBSD Foundation + */ + +#ifndef _LINUXKPI_LINUX_INSTRUCTION_POINTER_H_ +#define _LINUXKPI_LINUX_INSTRUCTION_POINTER_H_ + +#define _RET_IP_ __builtin_return_address(0) + +#endif /* _LINUXKPI_LINUX_INSTRUCTION_POINTER_H_ */ diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index 11a13cbd49b4..880d2f67c517 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -55,6 +55,7 @@ #include #include #include +#include #include #include @@ -267,8 +268,6 @@ extern int linuxkpi_debug; #define u64_to_user_ptr(val) ((void *)(uintptr_t)(val)) -#define _RET_IP_ __builtin_return_address(0) - #define offsetofend(t, m) \ (offsetof(t, m) + sizeof((((t *)0)->m)))