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

Commit c72763df authored by Prateek Sood's avatar Prateek Sood Committed by Gerrit - the friendly Code Review server
Browse files

gsi: fix compilation when CONFIG_DEBUG_FS is disabled



Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.

Change-Id: If6bdcfa99da84cad15495b757b7d2f5474147a29
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
parent 605f75ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

gsidbg-$(CONFIG_DEBUG_FS) += gsi_dbg.o
gsidbg-$(CONFIG_GSI) += gsi_dbg.o
obj-$(CONFIG_GSI) += gsi.o gsidbg.o

obj-$(CONFIG_IPA_EMULATION) += gsi_emulation.o
+5 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/completion.h>
@@ -19,7 +19,9 @@
#define PRT_STAT(fmt, args...) \
		pr_err(fmt, ## args)

#ifdef CONFIG_DEBUG_FS
static struct dentry *dent;
#endif
static char dbg_buff[4096];
static void *gsi_ipc_logbuf_low;

@@ -670,6 +672,7 @@ const struct file_operations gsi_ipc_low_ops = {
	.write = gsi_enable_ipc_low,
};

#ifdef CONFIG_DEBUG_FS
void gsi_debugfs_init(void)
{
	static struct dentry *dfile;
@@ -741,4 +744,5 @@ void gsi_debugfs_init(void)
fail:
	debugfs_remove_recursive(dent);
}
#endif