From nobody Thu Aug 01 22:27:26 2024 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 4WZk9V6V37z5RZWm; Thu, 01 Aug 2024 22:27:26 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZk9V51D9z4Yh3; Thu, 1 Aug 2024 22:27:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551246; 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=Ywo/f7ixMDoQotB3qHwJM8vB0bvbeZftaoM7NapL9kE=; b=yp7new59XIt0ffQCT2tsfoAe2P2E3SK0PnOdXllUC7gOxmQmkiWXQhOtb+KyLxWUl7TXnW IGHeBaJxxhHNJOLGUEa5JncnyS03VJ8/uVrck3jjQp1lRoTdGg+xa0LQD6Ebw8pH4ugxb4 JcW99ZpxKOFOb4eaDcL3YjUnRIAaFQtm7JLVYU9O2l8a6nC/3nvEOt+rTgml7gbVRwaNSI SjYFwMbtjCrjgXho2PIooYyMI2Xnf73pobjgVRlg9gsoFLBKt7RI1wlvtdbxkmkWpMoT4s iDg7ax0oVsK+m0aV/OverDGeYYFpWYnlBh7Jgwcu0J+KMLGcndwzxWCHBttlKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551246; a=rsa-sha256; cv=none; b=L7bttmysFNQFrgxA6FWwbO9gev2sDXva1ddk0hq27o6C1l6DOPyN5TmdzHVKEYvYnJ/rEQ UezfCG64wphzcrH/2b/nfxkEH95d+2Ti+zUnSVLdC5tMRjWYK39IlXyVPG4Amrq2AhYEZb JbGFVCwTr1h4qbEp12JVdrqDGmE1Po5JauPS+GgxLdlOzlUYMuN/0+VXnbBeFPdPWktgi+ ILYMpKUXxQIsiGpDn/NbBGu1Rby6YazwLuMenIzU/KM+KpyogJkhMAipJd9TAOIL/3CCRt frwqSGwlS6aN1DcLUf+ku7dCztSfkgmAaPno8+EA67T/qO7R0NSzgRxU5JZ6Nw== 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=1722551246; 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=Ywo/f7ixMDoQotB3qHwJM8vB0bvbeZftaoM7NapL9kE=; b=LcUUEeyUjx+SWMYqqER2AyHjfYP/L+wgYAt4V89rrLERjejlLGocc9SKp4i8HFymdlCYUv QlYT1cf8EyUuWV3Pks4AKsEUUOCXzkgSsBljC/TAAMjriL8n3dINed0ibEXz1H7YykwhUi SmeWr2M14cJnJMPnN8kXnDL8lO1nDqPXugbRDwge2XulMa+mC3W+gKClTcaUK74cpik3gA QU0xywnqBD6H4SzrmGq0yLjYM1AhcacRgYFDuAZD4IMmZiBFP5LGcYPQWEX2DUXvsEhVkk BsIWu4mGBLoky6JFrDseD7McpKNeQrbylflGdQO3sTJdq/hN/r8iu3x8S85bIg== 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 4WZk9V4cchz13BW; Thu, 1 Aug 2024 22:27:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRQpd027045; Thu, 1 Aug 2024 22:27:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRQK0027042; Thu, 1 Aug 2024 22:27:26 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:26 GMT Message-Id: <202408012227.471MRQK0027042@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: fbb9ca960d8d - stable/14 - LinuxKPI: Add PTR_IF macro 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fbb9ca960d8d0282fac3f2b31649f3cecdc5bc11 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=fbb9ca960d8d0282fac3f2b31649f3cecdc5bc11 commit fbb9ca960d8d0282fac3f2b31649f3cecdc5bc11 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:42 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:38 +0000 LinuxKPI: Add PTR_IF macro Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week (cherry picked from commit e0eeeca8b83a17aeebc4da525e813699bf3fabc2) --- 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 254b7729b96c..26fc2b8a4862 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -133,6 +133,8 @@ extern int linuxkpi_warn_dump_stack; #define printk(...) printf(__VA_ARGS__) #define vprintk(f, a) vprintf(f, a) +#define PTR_IF(x, p) ((x) ? (p) : NULL) + #define asm __asm extern void linux_dump_stack(void);