From nobody Thu Sep 22 16:16:27 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 4MYL4q4TCGz4chxh; Thu, 22 Sep 2022 16:16:27 +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 4MYL4q3rK7z3NvN; Thu, 22 Sep 2022 16:16:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663863387; 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=kCwD+78vgSE0LJwWKcG1eEaWVQptWHkN2FI0c9UOIvc=; b=WvoQ82wwg0oS2C5z5iZ6ZVw7RpKgZz23ORnKvLBwQiB7tE4+uwM5WzKlHGQt7VrvHWUYO/ ZTN8jf6D29npzwTY+HNJ3hfb5MnqmDetM2jZO6RMZ6QurMcw8YiQjUtLcjLnmu2f0SenDL lOu0FPY3AMxLz48Riwuu3zctFFRMMegXKVhlzdG6Bwd+XozACADhir/CnDJ+zSjhL3FwwG XCFoLNUYPZn2I6pnRSxw7/TeHS1jeW9WxRkc82j7UWKijoLpPSZ/vALVNQWABXMpMzbeWk bMnuMhbVj/i+aTH/42ZErUM6L3KiBVOGMEzu/ZAVaVC2l9HTiQ26nPrlbxdt2A== 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 4MYL4q2Lg0zSLk; Thu, 22 Sep 2022 16:16:27 +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 28MGGR63050363; Thu, 22 Sep 2022 16:16:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28MGGRO8050362; Thu, 22 Sep 2022 16:16:27 GMT (envelope-from git) Date: Thu, 22 Sep 2022 16:16:27 GMT Message-Id: <202209221616.28MGGRO8050362@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: f9f4988dc48d - main - LinuxKPI: tracepoint.h add more defines 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f9f4988dc48db76f764f418c35b2f76045ded279 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663863387; 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=kCwD+78vgSE0LJwWKcG1eEaWVQptWHkN2FI0c9UOIvc=; b=ZliWRYonZk6P0vjHIWA868PiaOm5x/OaIqUpDO8Vlwgor9EYJNxV4i6VccVQsC+TMTpuJW eE0KVLxcJHFPbqs3Y/XAVFRTRDCVScTluYUvUz7tcxQ9Fgqcx8zyYZocu8/wUVOejyzZE3 pC323w0iRkXg38uI9m3mOucW6Vd/28FTPPp319JfZ+PcAngX9ZwhB6ZCjRSmCvKeYhv0y1 XIjrXZBJvVEyqEytUgbAIH1COlZiVTjyZJxJjC3laTjcC5wMEcT3l0tKMyPo/aQUcGW20W ThWmVeVsb2B7MxHUXdwhT1x/omtSjuIVhWlkI4R0LOhRn9lsO5I3YRPgaKruYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663863387; a=rsa-sha256; cv=none; b=foCfcrd01vBJni2cC2ZyXDbc6uNOQjgXjiBm2L2C5MDzmWLgXyDf7Mmf+SSCo2vuMszdSm gXZlAgvNeaZjT+uM9tQCaagIZ7+zsKGPamN5TBs6MLKarWu9f/rBcJkyTe4W8UAuzpYdWK yrfp+8icz2+yPZ6YbDPHzI8NS43urjQmYLdjhHIOcrkNzxK+r5KyMAH8ELHtWXhKXycYaH wOfn/0Bq2MXWlA/XcFSsHqZ6R6lXbI3MxikCeSGDznsiOnaTKBE/yK+faNFdVoNAi50N5Y pIl9D8fcdPY/Vt/aUAEmAdQDUgE7cpPp/EgoWS1zzzhfXs3Zus/I24c/VgflCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f9f4988dc48db76f764f418c35b2f76045ded279 commit f9f4988dc48db76f764f418c35b2f76045ded279 Author: Bjoern A. Zeeb AuthorDate: 2022-09-21 20:06:44 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-09-22 15:10:03 +0000 LinuxKPI: tracepoint.h add more defines Add some more defines used in drivers to make it easier to compile. MFC after: 7 days Reviewed by: hselasky, emaste Differential Revision: https://reviews.freebsd.org/D36660 --- sys/compat/linuxkpi/common/include/linux/tracepoint.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/tracepoint.h b/sys/compat/linuxkpi/common/include/linux/tracepoint.h index 0171427439f9..f563b6d99e4e 100644 --- a/sys/compat/linuxkpi/common/include/linux/tracepoint.h +++ b/sys/compat/linuxkpi/common/include/linux/tracepoint.h @@ -37,7 +37,13 @@ #define TP_printk(...) #define TRACE_EVENT(_name, _proto, _args, _struct, _assign, _printk) \ -static void trace_ ## _name(_proto) \ +static inline void trace_ ## _name(_proto) \ +{ \ +} + +#define DECLARE_EVENT_CLASS(...) +#define DEFINE_EVENT(_x, _name, _proto, _args) \ +static inline void trace_ ## _name(_proto) \ { \ }