]> git.baikalelectronics.ru Git - kernel.git/commit
spi: export tracepoint symbols to modules
authorArnd Bergmann <arnd@arndb.de>
Thu, 21 Mar 2019 12:42:25 +0000 (13:42 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Mar 2019 15:05:07 +0000 (15:05 +0000)
commit687f4f1a2347526c860b70238eb22370fe9eb36d
tree970ffec46e52cc6abb6b5e4f5e7a958c316419a4
parent3981159a3b72a5a2e1135cdb2ddff5efaf62e2fb
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: af923e8007fc ("spi: mxs: add tracing to custom .transfer_one_message callback")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c