From patchwork Tue Jan 12 19:21:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 12014643 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EC7BC4332B for ; Tue, 12 Jan 2021 19:22:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 224282313B for ; Tue, 12 Jan 2021 19:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392862AbhALTWT (ORCPT ); Tue, 12 Jan 2021 14:22:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbhALTWS (ORCPT ); Tue, 12 Jan 2021 14:22:18 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49359C061786 for ; Tue, 12 Jan 2021 11:21:38 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id y19so6486317iov.2 for ; Tue, 12 Jan 2021 11:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W4tq1P7BnAkatrqNGDQpHOpe5z56inFlYg2XDNhNI+Q=; b=biaMRh0O9oDOQvx+oUwwPRWjjh/FX6NN135X/N2buus5TzUhR55MoJv4zuKpIoYAIZ Qpk2fPpgtGqm3IMUGA6Ut6s4dlU1YV6VwT/1nmR6PisW2nZxCtwkZQEYYJbktm91R+pD zOcMUAD5BhEnxHcec2DUcBehAwEN53a+9pJmMOLCugznPyks1zjPcDykKJL2HlnIlW/e Yb0io3THIRc8zzANyucGE9xIuS6jJTosYJzhjoK5qMhTuUblS+yHIhmfQH3N9F/qr21K oeEAlM50SXxIOxrXf78GzSs4F+MqZ/Zx6yfUh4YpnVg2Moh7qlwixYve2ADb/AMp5zIC Pb8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W4tq1P7BnAkatrqNGDQpHOpe5z56inFlYg2XDNhNI+Q=; b=AIZW4hXUFUhsLG5/wu1dpHa1+Y4St1qK9gMgI1/rkD4jjqRky4IUCAZzbWk2mtXHhX bi76R0FuvRJkntn12thiWJqqiu/iM1FQ4RJRWWNsXdQddgQbB4avOeW2f8UFsxKG2NBH uRGY4pv4c0oJrGooa4NAdU53ozCPd2gZhX346ooCkaQEuhShCHKPFfMU96W2EUhLsLX1 tZWAu70yTrgMDk+u3sP9bu1c7ZsRJ0CaqnpgkfuMj6i+ue5utw1cvoOGVzX+M6u0hmGx 051NF0gg0uxB5upgN4QkLJg6f7qNuVYs99TFSolTg2ruzqAgWWep9wOL5QP9K7k9Twxz Zq/g== X-Gm-Message-State: AOAM530dfrffmhaMYzqdyjgz0RxHBHe0cNMlSsvBPADD0gsYvxEJDBlA ii1u+yFal6ydJDgTRxHoNHYucA== X-Google-Smtp-Source: ABdhPJxpPxmhQHrmSjY3rRV/bFSkL94mUsO5XSD8ArciPST0jxNWcLFah6PJ0XjEYkWj1KHuJp0D+Q== X-Received: by 2002:a92:cb44:: with SMTP id f4mr539177ilq.131.1610479297674; Tue, 12 Jan 2021 11:21:37 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id x64sm2112147ilk.47.2021.01.12.11.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 11:21:36 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, rdunlap@infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: ipa: add config dependency on QCOM_SMEM Date: Tue, 12 Jan 2021 13:21:34 -0600 Message-Id: <20210112192134.493-1-elder@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The IPA driver depends on some SMEM functionality (qcom_smem_init(), qcom_smem_alloc(), and qcom_smem_virt_to_phys()), but this is not reflected in the configuration dependencies. Add a dependency on QCOM_SMEM to avoid attempts to build the IPA driver without SMEM. This avoids a link error for certain configurations. Reported-by: Randy Dunlap Fixes: 38a4066f593c5 ("net: ipa: support COMPILE_TEST") Signed-off-by: Alex Elder Acked-by: Randy Dunlap # build-tested Reviewed-by: Bjorn Andersson --- drivers/net/ipa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipa/Kconfig b/drivers/net/ipa/Kconfig index 10a0e041ee775..b68f1289b89ef 100644 --- a/drivers/net/ipa/Kconfig +++ b/drivers/net/ipa/Kconfig @@ -1,6 +1,6 @@ config QCOM_IPA tristate "Qualcomm IPA support" - depends on 64BIT && NET + depends on 64BIT && NET && QCOM_SMEM depends on ARCH_QCOM || COMPILE_TEST depends on QCOM_RPROC_COMMON || (QCOM_RPROC_COMMON=n && COMPILE_TEST) select QCOM_MDT_LOADER if ARCH_QCOM