From nobody Mon Apr 08 06:49:15 2024 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 4VCfp43Fs9z5GL5W; Mon, 8 Apr 2024 06:49:16 +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 4VCfp41Kwbz4mMY; Mon, 8 Apr 2024 06:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712558956; 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=heKVfy+iBKCCGyk60h6FbcJV4MuzMKah5hUqYwOzECU=; b=r+15mRfnWfDk2i8NUBaPf8c3t4i8PqU0YP2UscdvQXgj3KQtuZpsap7B6uvwbN4FPmMtX2 xKdoiDGru8T/X/h5ZNUspK9D7V5wKxRaTBbEiFUdbtisPwaK4e6gi0do3/NduiNVQZrxJJ pbqtBD984DRHNrvNp7u0vOmlUWMwz4ycWq8Ab7WmVJtYgdePrV3umL2fElPEpOp3hgpEj8 u7nmsdTMRw4fpXdlfAvBdimu5RuCEdGn83G0E0zFDQyRTArl2fXVh3ZZP+imbQ1CPxGq7H IKDRGt5/a0hAJWL1w0Ws641+rdOxx29FiKEx4DUvY5JYlpuBb7nmfxgyVBEI8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712558956; a=rsa-sha256; cv=none; b=JRhnHtCJHadp9WG9msrE152jCzTIicw/eIeR1FBCNuTNbV3tIlApZBKaQogC/o6HsAtCGf ZQ3q0zK5DiDOVx50vncMU4Y0v0EV17Io1d1kWNUzIAYNHLE9uK5PRM5CteaxxfX/BCCoqJ 7kC1F4a/o2PIwVtbTERm2toSAlbyZfSYBQxm1zzSLKxUR4uNV4fB4lhT0VxaJKE4v+kQqq 3KcEy4pZvEOnjJK9VdLFH7NXkx4rXJCHf67n4vmNdeoFf3wjPHT7T/lrpz8lSSFl+qz0Nu 0tC695XA+bZV4SSd9QxksberIoyid5gkqvXz02OwI2BfB1YMjDhr89sd3ZTDRQ== 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=1712558956; 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=heKVfy+iBKCCGyk60h6FbcJV4MuzMKah5hUqYwOzECU=; b=tnPn5f8I25+gaW8Liltxb1VDVRFD33o//3VDUBmsan6lfrlBCOXrngSkWXbD7dzHgsA54T JwwBJ46gnNkjCCdzmESv6lx5BxtGZpbOq4JG/D+I4Im0LC2D00onvNX7l96ikWsjgOpN/T 3dMeW75i1vpYDhVh0hal+g6m2lT21m+RHmx89l3BBecRCnS3qxJvjlzif0Lp1A4BjSWp8C B4QSz9KP8FAFyqukdBK+G/jdWuLDit94K4+0Un9RUSUd92s/lZtJA61NZASlVyvO/RmK5N lzGNqhx/7e0QnoxXT0Qaq3xcLBJ7m+5EqVoOQjLE40jZMCnQidbfUXypMg5wXQ== 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 4VCfp40WLMz11Vs; Mon, 8 Apr 2024 06:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4386nFWT032928; Mon, 8 Apr 2024 06:49:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4386nFg0032925; Mon, 8 Apr 2024 06:49:15 GMT (envelope-from git) Date: Mon, 8 Apr 2024 06:49:15 GMT Message-Id: <202404080649.4386nFg0032925@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: e0eeeca8b83a - main - LinuxKPI: Add PTR_IF macro 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0eeeca8b83a17aeebc4da525e813699bf3fabc2 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=e0eeeca8b83a17aeebc4da525e813699bf3fabc2 commit e0eeeca8b83a17aeebc4da525e813699bf3fabc2 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:42 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-04-08 06:47:42 +0000 LinuxKPI: Add PTR_IF macro Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week --- 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 16499ef96a50..ed4320e80fa7 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -132,6 +132,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);