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

Commit 077ffb87 authored by Wesley Cheng's avatar Wesley Cheng Committed by Gerrit - the friendly Code Review server
Browse files

platform: msm: Export usb_bam symbols for module compilation



Some symbols utilized by f_qdss are not exported, which leads to symbol
undefined errors when compiling usb_bam as a module.  Export the symbols
remaining symbols used by f_qdss.

Change-Id: I3f01cee19bbbc990487df4437e15c3c5aa2a98e5
Signed-off-by: default avatarWesley Cheng <wcheng@codeaurora.org>
parent 47ea7558
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -445,6 +445,7 @@ int usb_bam_alloc_fifos(enum usb_ctrl cur_bam, u8 idx)
	}
	return 0;
}
EXPORT_SYMBOL(usb_bam_alloc_fifos);

int usb_bam_free_fifos(enum usb_ctrl cur_bam, u8 idx)
{
@@ -521,6 +522,7 @@ int usb_bam_free_fifos(enum usb_ctrl cur_bam, u8 idx)

	return 0;
}
EXPORT_SYMBOL(usb_bam_free_fifos);

static int connect_pipe(enum usb_ctrl cur_bam, u8 idx, u32 *usb_pipe_idx,
							unsigned long iova)
@@ -635,6 +637,7 @@ int get_qdss_bam_info(enum usb_ctrl cur_bam, u8 idx,

	return 0;
}
EXPORT_SYMBOL(get_qdss_bam_info);

int usb_bam_connect(enum usb_ctrl cur_bam, int idx, u32 *bam_pipe_idx,
						unsigned long iova)
@@ -691,6 +694,7 @@ int usb_bam_connect(enum usb_ctrl cur_bam, int idx, u32 *bam_pipe_idx,

	return 0;
}
EXPORT_SYMBOL(usb_bam_connect);

int usb_bam_get_pipe_type(enum usb_ctrl bam_type, u8 idx,
			  enum usb_bam_pipe_type *type)
@@ -945,6 +949,7 @@ int usb_bam_disconnect_pipe(enum usb_ctrl bam_type, u8 idx)

	return 0;
}
EXPORT_SYMBOL(usb_bam_disconnect_pipe);

static void usb_bam_sps_events(enum sps_callback_case sps_cb_case, void *user)
{