From patchwork Thu Mar 21 12:42:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10863437 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDAD913B5 for ; Thu, 21 Mar 2019 12:42:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1BA228D19 for ; Thu, 21 Mar 2019 12:42:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9635029FB4; Thu, 21 Mar 2019 12:42:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DC5828D19 for ; Thu, 21 Mar 2019 12:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727986AbfCUMms (ORCPT ); Thu, 21 Mar 2019 08:42:48 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:37919 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727878AbfCUMms (ORCPT ); Thu, 21 Mar 2019 08:42:48 -0400 Received: from wuerfel.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MdNoW-1gXcDB18xU-00ZOR0; Thu, 21 Mar 2019 13:42:41 +0100 From: Arnd Bergmann To: Mark Brown Cc: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Arnd Bergmann , Boris Brezillon , Geert Uytterhoeven , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: export tracepoint symbols to modules Date: Thu, 21 Mar 2019 13:42:25 +0100 Message-Id: <20190321124240.901884-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:Pd3t12x6dNGCoSiDpwb2zoqrttMlgcEFDesLvGE0x5eBuDxvKo5 pa3tdrqN9r0LRzNe6P+oy5fdAbLOuw+zhnwsd2lOwYuqw9KfmnUvnZXbZpbky/158XZXTk+ ZxZ5NWIIwm0gKN0iSlGz4WvkOZ7L8fDo/ztpDivccI++V81X96t/wFfw9dEuRZDxWsAn1N+ 3E7dm4/2x1Jx/SikkpnlQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:9b7YripScv0=:TEO795keyctp8mgUBkIt74 h9wtxbJeyJV8X2SaurOfPFt+zYaQQUa4kihoyEmgXdOE/82y+mjSAueXjU7oChzpZZDUz3iRs ryj9a8EFhWDn44MKP1RgFJkX935jSHm0lx66ldQ4QFgTVc4EiZwekcdGcgbSMsd8xQXmjIBLg LvrBZm1DOuSLy5uSoqnsuyIaRIdQvhQl2ntnmyUnBoZ5cWDUKEAHTges1+gD/kTU2Dd898VoV ZKYhVbsqMga7m6ySrDwpkKeULssVC0y6oYtLritAvqdPn3XnVMQL+SLkYpp6o+7xhSdbHJyov GmGLVWuukkKOJOEFafIA7wmMbKDRFATon4IyYxGjX4JG6A8Zx1UsGk6X+CMPHH8MctPjbQ0zJ Ryc9tMYlaXXXTk4CpS0Vo9Pi/rGHD90NLqjVr/k3nj1eP3hO5hDhFh3xp7qgfW4dnc3mT3F2C QWcQPYHWIF/xyoEqGsQzRpu0x6hLA2RWWGQys8DG1bK52JipIcXsnETjgHaVNks2bkwGSiapA 3aoi19L/9anG3r4efCAdm9a5Wt4wxykndoTTZNwrs/3g072G8aUmHXksvqLYw0V0di5TTYPwS /4VlkokLbfaGvtNqbFLUwoud0rNnI5rwGLs2SL1TLR4OkLnRq90r9/R0rJE9V9SF4DdlP5+Ma afON4XZbBnLblDagSXg+pdKiNx98dnkMQzRagFvVMtjVM4f8qDypuq83K3yP2QhljZKzhBSD4 /dOnnwqz0PrY7qYG1jv8Knv25zl6CD4ifluz/w== Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Uwe Kleine-König --- drivers/spi/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 93986f879b09..e5d38152888a 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -36,6 +36,8 @@ #define CREATE_TRACE_POINTS #include +EXPORT_TRACEPOINT_SYMBOL(spi_transfer_start); +EXPORT_TRACEPOINT_SYMBOL(spi_transfer_stop); #include "internals.h"