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

Commit b20359f8 authored by Rahul Shahare's avatar Rahul Shahare Committed by Gerrit - the friendly Code Review server
Browse files

msm: sde: fix compilation when CONFIG_DEBUG_FS is disabled



Fix compilation error, when CONFIG_DEBUG_FS is disabled in
perf_defconfig.

Change-Id: I1a6f4f8d624cf7c94bd70519d7ee75247479a56d
Signed-off-by: default avatarRahul Shahare <rshaha@codeaurora.org>
parent 118fbcd1
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2020, 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
@@ -368,6 +368,15 @@ void sde_rsc_debug_dump(u32 mux_sel);
void dsi_ctrl_debug_dump(u32 *entries, u32 size);

#else
static inline
int sde_dbg_reg_register_cb(const char *name, void (*cb)(void *), void *ptr)
{
	return 0;
}
static inline
void sde_dbg_reg_unregister_cb(const char *name, void (*cb)(void *), void *ptr)
{
}
static inline struct sde_dbg_evtlog *sde_evtlog_init(void)
{
	return NULL;
+12 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, 2020, 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
@@ -41,8 +41,19 @@ enum sde_rot_dbg_evtlog_flag {
	sde_rot_evtlog_tout_handler(false, __func__, ##__VA_ARGS__, \
		SDE_ROT_EVTLOG_TOUT_DATA_LIMITER)

#if defined(CONFIG_DEBUG_FS)
void sde_rot_evtlog(const char *name, int line, int flag, ...);
void sde_rot_evtlog_tout_handler(bool queue, const char *name, ...);
#else
static inline
void sde_rot_evtlog(const char *name, int line, int flag, ...)
{
}
static inline
void sde_rot_evtlog_tout_handler(bool queue, const char *name, ...)
{
}
#endif

struct sde_rotator_device;