Commit 1ccfd1a4 authored by Takashi Sakamoto's avatar Takashi Sakamoto

firewire: core: arrangement header inclusion for tracepoints events

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.

Link: https://lore.kernel.org/r/20240605235155.116468-11-o-takashi@sakamocchi.jpSigned-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
parent f9a22836
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (c) 2024 Takashi Sakamoto // Copyright (c) 2024 Takashi Sakamoto
#include <linux/types.h>
#include "packet-header-definitions.h"
#define CREATE_TRACE_POINTS #define CREATE_TRACE_POINTS
#include <trace/events/firewire.h> #include <trace/events/firewire.h>
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include "core.h" #include "core.h"
#include <trace/events/firewire.h>
#include "packet-header-definitions.h" #include "packet-header-definitions.h"
#include <trace/events/firewire.h>
#define HEADER_DESTINATION_IS_BROADCAST(header) \ #define HEADER_DESTINATION_IS_BROADCAST(header) \
((async_header_get_destination(header) & 0x3f) == 0x3f) ((async_header_get_destination(header) & 0x3f) == 0x3f)
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef _FIREWIRE_PACKET_HEADER_DEFINITIONS_H #ifndef _FIREWIRE_PACKET_HEADER_DEFINITIONS_H
#define _FIREWIRE_PACKET_HEADER_DEFINITIONS_H #define _FIREWIRE_PACKET_HEADER_DEFINITIONS_H
#include <linux/types.h>
#define ASYNC_HEADER_QUADLET_COUNT 4 #define ASYNC_HEADER_QUADLET_COUNT 4
#define ASYNC_HEADER_Q0_DESTINATION_SHIFT 16 #define ASYNC_HEADER_Q0_DESTINATION_SHIFT 16
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <linux/firewire-constants.h> #include <linux/firewire-constants.h>
#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. // The content of TP_printk field is preprocessed, then put to the module binary.
#define ASYNC_HEADER_GET_DESTINATION(header) \ #define ASYNC_HEADER_GET_DESTINATION(header) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment