Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 621478b7 authored by Maria Yu's avatar Maria Yu
Browse files

soc: qcom: pil: Fix CONFIG_MSM_PIL not defined compile fail



Need to add define for trace_pil_notify when CONFIG_MSM_PIL
not defined, because it is used outside of pil driver.

Change-Id: If88b6ece834c613a6e3f7eb2f9eb91092fa3a8d9
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent fce0dd25
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017, 2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -40,6 +40,7 @@ TRACE_EVENT(pil_event,
		__get_str(fw_name))
);

#ifdef CONFIG_MSM_PIL
TRACE_EVENT(pil_notif,

	TP_PROTO(const char *event_name, unsigned long code,
@@ -64,6 +65,9 @@ TRACE_EVENT(pil_notif,
		__entry->code,
		__get_str(fw_name))
);
#else
#define trace_pil_notif(event_name, code, fw_name) do { } while (0)
#endif

TRACE_EVENT(pil_func,