aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2019-03-21 12:42:25 +0000
committerMark Brown <[email protected]>2019-03-21 15:05:07 +0000
commitca1438dcb34c7fcad63b6ce14ea63a870b92a69b (patch)
tree970ffec46e52cc6abb6b5e4f5e7a958c316419a4 /drivers/spi/spi.c
parentspi: pxa2xx: Debug print DMA burst size (diff)
downloadkernel-ca1438dcb34c7fcad63b6ce14ea63a870b92a69b.tar.gz
kernel-ca1438dcb34c7fcad63b6ce14ea63a870b92a69b.zip
spi: export tracepoint symbols to modules
The newly added tracepoints in the spi-mxs driver cause a link error when the driver is a loadable module: ERROR: "__tracepoint_spi_transfer_stop" [drivers/spi/spi-mxs.ko] undefined! ERROR: "__tracepoint_spi_transfer_start" [drivers/spi/spi-mxs.ko] undefined! I'm not quite sure where to put the export statements, but directly after the inclusion of the header seems as good as any other place. Fixes: f3fdea3af405 ("spi: mxs: add tracing to custom .transfer_one_message callback") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 2be394d3bc59..bd2a424672df 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -36,6 +36,8 @@
#define CREATE_TRACE_POINTS
#include <trace/events/spi.h>
+EXPORT_TRACEPOINT_SYMBOL(spi_transfer_start);
+EXPORT_TRACEPOINT_SYMBOL(spi_transfer_stop);
#include "internals.h"