mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Fix unused function errors for ack user build
In Android's user-build, debugfs is not configured. This has led to
multiple warning errors related to Debugfs usage in the nvidia-oot
build. Add CONFIG_DEBUG_FS conditional compilation around the
functions that use it.
drivers/scsi/ufs/ufs-tegra-common.c:39:13: error: unused function
'ufs_tegra_init_debugfs' [-Werror,-Wunused-function]
static void ufs_tegra_init_debugfs(struct ufs_hba *hba)
^
1 error generated.
drivers/platform/tegra/aon/tegra-aon-debug.c:732:13:
error: unused function 'tegra_aondbg_recv_msg'
[-Werror,-Wunused-function]
static void tegra_aondbg_recv_msg(struct mbox_client *cl, void *rx_msg)
^
drivers/platform/tegra/aon/tegra-aon-debug.c:749:12:
error: unused function 'aon_dbg_init' [-Werror,-Wunused-function]
static int aon_dbg_init(struct tegra_aondbg *aon)
^
2 errors generated.
Bug 4230728
Change-Id: I4210c3574b4d76205fdca45990e9ccc02c18620a
Signed-off-by: Jian-Min Liu <jianminl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2964635
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
37b53e8d72
commit
6f90c6d858
@@ -16,5 +16,8 @@ tegra234-aon-objs += \
|
||||
../tegra-ivc.o \
|
||||
tegra-aon-mail.o \
|
||||
tegra-aon-module.o \
|
||||
aon-hsp-mbox-client.o \
|
||||
tegra-aon-debug.o
|
||||
aon-hsp-mbox-client.o
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_FS), y)
|
||||
tegra234-aon-objs += tegra-aon-debug.o
|
||||
endif
|
||||
|
||||
@@ -787,7 +787,6 @@ clean:
|
||||
return PTR_ERR(d);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
int tegra_aon_debugfs_create(struct tegra_aon *aon)
|
||||
{
|
||||
struct tegra_aondbg *aondbg = &aondbg_dev;
|
||||
@@ -867,4 +866,3 @@ void tegra_aon_debugfs_remove(struct tegra_aon *aon)
|
||||
mbox_free_channel(aondbg->mbox);
|
||||
debugfs_remove_recursive(aondbg->aon_root);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "ufs-tegra.h"
|
||||
#include "ufs-provision.h"
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static void ufs_tegra_init_debugfs(struct ufs_hba *hba)
|
||||
{
|
||||
struct dentry *device_root;
|
||||
@@ -46,6 +47,7 @@ static void ufs_tegra_init_debugfs(struct ufs_hba *hba)
|
||||
if (ufs_tegra->enable_ufs_provisioning)
|
||||
debugfs_provision_init(hba, device_root);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void ufs_tegra_set_clk_div(struct ufs_hba *hba, u32 divider_val)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user