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

Commit dabbb9d3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "gsi: fix compilation when CONFIG_DEBUG_FS is disabled"

parents ee80a1d4 795c3dd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
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
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-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
@@ -25,7 +25,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;

@@ -697,6 +699,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;
@@ -768,4 +771,5 @@ void gsi_debugfs_init(void)
fail:
	debugfs_remove_recursive(dent);
}
#endif