]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: export tracepoint symbols to modules
authorArnd Bergmann <arnd@arndb.de>
Thu, 21 Mar 2019 12:42:25 +0000 (13:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:50 +0000 (06:43 -0700)
commited49bb0dd557d28aa4a05ac3a1e23799469ecf5a
tree34ea01ccb131a940e846d88ee0f491d4e9a07ef0
parentd82c47c58b7994c2802770c9351eb36c338c4857
spi: export tracepoint symbols to modules

[ Upstream commit ca1438dcb34c7fcad63b6ce14ea63a870b92a69b ]

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 <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi.c