From patchwork Fri Nov 18 16:15:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9436989 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 08EE560237 for ; Fri, 18 Nov 2016 16:15:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EECB429999 for ; Fri, 18 Nov 2016 16:15:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2E312999B; Fri, 18 Nov 2016 16:15:38 +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=-6.9 required=2.0 tests=BAYES_00,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 65C9E29999 for ; Fri, 18 Nov 2016 16:15:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864AbcKRQPh (ORCPT ); Fri, 18 Nov 2016 11:15:37 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:64331 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbcKRQPh (ORCPT ); Fri, 18 Nov 2016 11:15:37 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MOU8z-1cAodA10Cr-005m2D; Fri, 18 Nov 2016 17:15:29 +0100 From: Arnd Bergmann To: Bjorn Andersson Cc: Arnd Bergmann , Ohad Ben-Cohen , Vinod Koul , Peter Griffin , Lee Jones , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] remoteproc: wcnss-pil: add QCOM_SMD dependency Date: Fri, 18 Nov 2016 17:15:06 +0100 Message-Id: <20161118161528.775709-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:yK+Y7NzeTpppQilIQmnkDRe0GMsHaeYpLEswfr+MYSJN7ZFkMqF /JrKfb/r1P3/a7CVCxecYeljmErjkXe0dgYx3JXztAdkzIEL4kgGDR3P4z8KlfpjFu6/1xa XyfsNYYg5T1rXOVuBYcapy1N4+JDJpPPExnJQuAXA8NDwmlIcjXqmrdGmiLtN+LiS/IkRGh pXtTwahS8izrF79BY24cA== X-UI-Out-Filterresults: notjunk:1; V01:K0:dbqri/f2umo=:RqQOFe3Z+gZtniygMTcCMp HdKuvjFAMPpkShj6wOQPbn3VsMuUUFtefrt0iTGfbFYXodKDB+vFKNIkPdimIU/weN8WgNaIS CIXbtDWF2j0QUAATCGL4tOQKVazLaOgTv/IF17x9koNx/A7BtRzup31RpM3rFQ19GLrd0XGvr oMsFJyZuLccYmbL604HH2wWRQiBexCAPugscDQJ0v38ah2i5FIowH2AUEp9/ZNVDi+tKHzXK9 anwSo/zdOpKcTsAPd9CDVUWfn+j4bC5PrqPx6F3clklyaRbU7r+laTnAaQt74i78hwAfEXJ3P 71oBQKljmkZXcu0PbziF/8ptSwXjNcvR9w8378wYeVnftRz2vht6lQq8T7PyZyKTlCMiTVvMW EOeVvh0NnDidtglQuIiOlmfWdg3+/u3BhzX8nbiQzQ9NzZZ82nNt0fEy5q3+D5L/nlhogOO7+ i/Q0t33dxbPpjcFKcSKrWTeJpPSgvJvdD7J/MyOPS+IX0TCtPFGQCWAyQYnMB+RTP41T0p5pT 3s4dgCaNtN5mpi99ITUEQqWLymjPcvR1btN5TH8Ehaxacp+7KHPOzTM+zoPo9OICu7FkM6CpD Umdsru/r54y9OqCIUSystL2DppRbMWRDx1LtdvMxZXavVxWK7/CMtxfXLdEVg1w7qBejgYD9H 1PazxtlLffqfexLMJJPkFqWex+hfocq1IMZZQtPmpP0riw9KqOvoZfyacgSiS3WRqJ70= Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When qcom_smd is a loadable module and adsp-pil is built-in, we get a link error: drivers/remoteproc/qcom_wcnss_pil.o: In function `wcnss_smd_remove': qcom_wcnss_iris.c:(.text.wcnss_smd_remove+0x10): undefined reference to `qcom_smd_unregister_edge' drivers/remoteproc/qcom_wcnss_pil.o: In function `wcnss_smd_probe': qcom_wcnss_iris.c:(.text.wcnss_smd_probe+0x12): undefined reference to `qcom_smd_register_edge' This adds a Kconfig dependency to avoid this. We can still allow build-testing with SMD disabled. Signed-off-by: Arnd Bergmann --- drivers/remoteproc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index 5a0019ce7555..677b3fede83d 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -106,6 +106,7 @@ config QCOM_Q6V5_PIL config QCOM_WCNSS_PIL tristate "Qualcomm WCNSS Peripheral Image Loader" depends on OF && ARCH_QCOM + depends on QCOM_SMD || (COMPILE_TEST && QCOM_SMD = n) depends on QCOM_SMEM depends on REMOTEPROC select QCOM_MDT_LOADER