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: 160786 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp755821jan; Thu, 21 Mar 2019 05:42:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJgdjfAIsHRJuyewy54npEf83kLZtuYcDVLYPRvtyp4Nnwb7+iJL1t+8OSt/9ASl7pkSpO X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr3390032pls.4.1553172169279; Thu, 21 Mar 2019 05:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553172169; cv=none; d=google.com; s=arc-20160816; b=kPNnjas9x653JhohOvPiJpEJohhCHu8IP4AAwyvY+WdvJYTDG5RgVyY3o+dh8maTT3 /rcuyjsrArViVqSOQHD2GNblpQO0YzkHSQOXdrCGWfBpOp336nRL9a2wMW687FjNHzJC MgpC6RwEjKMmdOwFnNRx3RZ067JGAdcX3tjUUt4TtANqP9qFdeY7bPCBMcawfrUb/TS8 ZRwZwF83f0EMnd4rF5exAdkE/ETP/z4u2/WVnRXhMYlOevm7MIFaH+9zr49SWYQxXFnf Q5NuVtmb+ui0g4lVMoVnCJRFd7n7ZSMHWZCPoYuMv2rZYepqpu1tYgd7CMPjUnP9Lker LLXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=v+6E09bg9nJlkq2kf1+OnJ+g1o6xdNM8ku6MYaz85oo=; b=1FsEIyTiwntMG/RVw5D3flnawnvhPSE0A5AWZ6aAs6dWoFmHDdyq63M7qQQlGibfdl vLvQHhTY30Ks8hflhjU/AaimbVELnq9mLSPsm5dDF6+Hpj7zLQpAQSGO6ix0/hFiScXu NQz2yR4Ei66DE+M/AqpgYFaDR8wROZiQ3ar4P8fLYa2woOqz5W/vJ3rBeNgUwO6AHRhm 6HkqJeAEOw4AHvH9YCD8J9oG8g8W0RO6A26gaCdPffUSeZMsdgLVd9SZ/KvSE5RYaR// /TAULeG+idhX9LKvHeEUW04pr1mKLjAac6pMewLFednIQBwqHYo0UEeVTu5bUVIwHWRG m0PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si4068573pfc.39.2019.03.21.05.42.49; Thu, 21 Mar 2019 05:42:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727986AbfCUMms (ORCPT + 1 other); 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-Spam-Flag: NO 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 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 --- drivers/spi/spi.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.0 Acked-by: Uwe Kleine-König 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"