Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp48109lqt; Wed, 5 Jun 2024 16:54:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsT/QPkiFnWrfWDXNFXc1Y0pXLLnw384EWTMHAk97yrgxO9i3CMUYkzK3HAmu17SiW0mrUqAyE1gGMBbJD9fCfIdhoZvdUdE3hhp5S9g== X-Google-Smtp-Source: AGHT+IEPHu8KPxuIaORgqPrWkEdyNAy+MWn/07UTJQZAnCrsLeDFJ1Oime4ooOOefl4UW72WfWoW X-Received: by 2002:a92:c56a:0:b0:374:a477:5343 with SMTP id e9e14a558f8ab-374b1ef2b92mr43077685ab.9.1717631659732; Wed, 05 Jun 2024 16:54:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717631659; cv=pass; d=google.com; s=arc-20160816; b=hgDXcmB35WNUd+zu4qzQhq3Qr8CXIzKsB2SlWzqFpyqP9I+TcZO5pS2f2/22RCd5ju JEKjvsRYtlS0LPtKT+YJEmS+aPPOB0Sk9OXeixs07siDzR00hH6ZPXwHdF4GnwRZKYS7 RYxZ4i+XN+uCf9Yo0lwpZXxb0Q+Nrp8mLR0KvMEdb5VkQgFlzl1q+3v1YYamK0dYNLw0 AQhZKr7yK78xQIcPivUxMAjFCFZDr0RzAII/FJfHH4xM32eMGwx6uglQCUQD0qNG+DXS z+CZ6o0a1xhf1GgZ7um7xbSppezsRkene58kFggyjeFtA/l2epOrhswi77tIXHg9g3pP k2Mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=YhYZ47zvMT0a++wOZL0Bg5VQ35AEPyrocZUAtMVjskY=; fh=5EQyDiYgg+kua2A2AF9eJME8jasrrRA/Pgg86y+lzvY=; b=Zre7p3rtN+hMdna5Oosr/4OBXkAGuZFtsJe7niuWOjAAKO2TC0BgbJvMQQqPC7ZK1H 8oG6R9tOck7toEOkMW3yRjuzNfMEgJ1d3qy9fEKk10qjZZ7O7YdNP/aQe9irTYAf8PzD PrEtxZnVjfKOj7y7WbPtMSEN0l17r04tRTKDokos/OHkVb8CX9CxAhJWnyj992Rp2Hd4 nxZutdUvrtOSNruNJzRFk2zOVrhu89KcJ7uSKPro8vMLvou+m8GtHJLGST0RzZM1wfQQ F7i2JyDaWHMvq6qyNQ4FhcOVf9aR4WKM2VBGT3s0PkhFL+sgLF0F5PDzXjjBx30hIWBo T7xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b="Tn6ON1w/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=a+Hznjbh; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-203431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2073ca15si155509a12.158.2024.06.05.16.54.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:54:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b="Tn6ON1w/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=a+Hznjbh; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-203431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 54B92283B6D for ; Wed, 5 Jun 2024 23:54:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13A0616ABF7; Wed, 5 Jun 2024 23:52:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="Tn6ON1w/"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="a+Hznjbh" Received: from wfout2-smtp.messagingengine.com (wfout2-smtp.messagingengine.com [64.147.123.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7315A175563 for ; Wed, 5 Jun 2024 23:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.145 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631543; cv=none; b=IyyvFGm62n5R6z711meqmhQ9sbIu7m0Yoy9fsQ01sX5FEkrzfIqXBkrwRElTcHJPjfoHQOOv60bIGbPLtPDOxQHbO9vgCQtHMg04tRH93S/RtzXGZNg+DSvz7ZmlqHAjLG2COqDBGq066HdOlVr8MvWb5ZnpzmK0lK6rWHR3QhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717631543; c=relaxed/simple; bh=3iuK0NrtiFinpip/uVNKKVi8nhUphaZFCh8RR+1TZOI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T1okuMx57cX6l7Fb1XDBAH/LVi+n200ISQ9zc829We5WUHHWL4BlMf7X3jrxz3KsGjgl1jQwQEK9c1/aMJTqw7hWN3Ls9eBsLpQngZ5w6tWOCbk9Hlc6PaNO+mh33Eb02xAav0u8sTFywzLhB/xT9KSXz+cx6TVKOGEbaS5qrA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=Tn6ON1w/; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=a+Hznjbh; arc=none smtp.client-ip=64.147.123.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id A0F5A1C0012D; Wed, 5 Jun 2024 19:52:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 05 Jun 2024 19:52:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1717631541; x= 1717717941; bh=YhYZ47zvMT0a++wOZL0Bg5VQ35AEPyrocZUAtMVjskY=; b=T n6ON1w/AwhxRzf+DZ/QDpnuw3B0iIIohQ+0qh077GAnHcDCrVdhgK9PHv6QWVZ+r pCNDZI0KKG6EWKO1zG/ZaYoR6xsJZR2MRaHlx26kxs6CFzL6BaTBC59GD21DX5OB HqioJREy9QvtypYftr/HhmPeyTUb/X6TBt9MYRzvL3s7RFkCK6TMr92nvAtonRzk HxFdeeGYJ1KJW8pWLsdhVLE0Q0ijjmlABAQhh1q43zyxTsh61FBc3qc6kNHMARoo av6FkINNMNd77iaAFVMFczD8JptWJleMPNSLor/luMCrKu7GTZeCjakgtNLeKz0N dTzvZMEByirtfAJHVnvHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717631541; x= 1717717941; bh=YhYZ47zvMT0a++wOZL0Bg5VQ35AEPyrocZUAtMVjskY=; b=a +HznjbhNUem4NAKdtGW9Z32SAXA2FvtxaWb4kBPp2FX5fItTpE0j9wdSfzbzCJ4z 7LSxqvB9pjqq2DuPuJb2rhsetANCOwB5HIxknYJ84TDyqRhQAcSZtiQrismixaLI dCGGiT/1g9AKhHjKSYA5I58HaCtzRQGBcd5u171fTG9EopQL4XjWClZM38VgAnmz udKmz9GmsGOuGB6RhUEtGnrIkmeMqCpRU2VwA1zwDJ8yCULeC5GHkPIP1NIOfanC xCuxAU1h3I6jcKzqFfK5++GsLaGQ3xMe+c9SR98W5EbeAUe0CpY3vyMff9FVObB5 Pl0KnFNXTyfc1FQ31mZjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeljedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Jun 2024 19:52:20 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH 10/11] firewire: core: arrangement header inclusion for tracepoints events Date: Thu, 6 Jun 2024 08:51:54 +0900 Message-ID: <20240605235155.116468-11-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605235155.116468-1-o-takashi@sakamocchi.jp> References: <20240605235155.116468-1-o-takashi@sakamocchi.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit It is a bit inconvenient to put the relative path to local header from tree-wide header. This commit delegates the selection to include headers into users. Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-trace.c | 3 +++ drivers/firewire/core-transaction.c | 2 +- drivers/firewire/packet-header-definitions.h | 2 ++ include/trace/events/firewire.h | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/firewire/core-trace.c b/drivers/firewire/core-trace.c index 96cbd9d384dc..7cbf850f3719 100644 --- a/drivers/firewire/core-trace.c +++ b/drivers/firewire/core-trace.c @@ -1,5 +1,8 @@ // SPDX-License-Identifier: GPL-2.0-or-later // Copyright (c) 2024 Takashi Sakamoto +#include +#include "packet-header-definitions.h" + #define CREATE_TRACE_POINTS #include diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c index 571fdff65c2b..6868ff17dc10 100644 --- a/drivers/firewire/core-transaction.c +++ b/drivers/firewire/core-transaction.c @@ -29,8 +29,8 @@ #include #include "core.h" -#include #include "packet-header-definitions.h" +#include #define HEADER_DESTINATION_IS_BROADCAST(header) \ ((async_header_get_destination(header) & 0x3f) == 0x3f) diff --git a/drivers/firewire/packet-header-definitions.h b/drivers/firewire/packet-header-definitions.h index ab9d0fa790d4..87a5a31845c3 100644 --- a/drivers/firewire/packet-header-definitions.h +++ b/drivers/firewire/packet-header-definitions.h @@ -7,6 +7,8 @@ #ifndef _FIREWIRE_PACKET_HEADER_DEFINITIONS_H #define _FIREWIRE_PACKET_HEADER_DEFINITIONS_H +#include + #define ASYNC_HEADER_QUADLET_COUNT 4 #define ASYNC_HEADER_Q0_DESTINATION_SHIFT 16 diff --git a/include/trace/events/firewire.h b/include/trace/events/firewire.h index d695a560673f..1f4ef0ed65bc 100644 --- a/include/trace/events/firewire.h +++ b/include/trace/events/firewire.h @@ -11,7 +11,7 @@ #include -#include "../../../drivers/firewire/packet-header-definitions.h" +// Some macros are defined in 'drivers/firewire/packet-header-definitions.h'. // The content of TP_printk field is preprocessed, then put to the module binary. #define ASYNC_HEADER_GET_DESTINATION(header) \ -- 2.43.0