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: 361242 Delivered-To: patch@linaro.org Received: by 2002:a17:906:fb05:0:0:0:0 with SMTP id lz5csp486942ejb; Tue, 12 Jan 2021 11:23:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0gVHZ+4VQ+wUxKiw5+OX8KDZ4APj4tKbqRQVRZWg2DfLmNr9cxT7gVlE6AA3VIuIlXWUe X-Received: by 2002:a17:906:e15:: with SMTP id l21mr220647eji.509.1610479387378; Tue, 12 Jan 2021 11:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610479387; cv=none; d=google.com; s=arc-20160816; b=tfvnA2uYfZoNkzb2aOHfYWxRuojytSZwh7kc+oHz5j7lerv2bBMeyuEt4bY3/HMsQ7 fw+YGYAVWzw15ufeugyUpF3A50WTffhO1imNGpK2TMYDplATfFcE+hBE653KjrPXB3Rj 6agHDHeBNSHLG0eyhcIJ/iMz4yPs+DMrz7hxNRTUq3asmAIm2V5OZryw94IVWOjKRsJc SAcl28iVg3LKgekNINrwCM6y5uwicqsmtB8twzNPtBrrvIn3o+SBvfYpgYqZ5VrGAePB GNV6IBr1KrV716gT5f5cIF0xssd/A1EsMU+lVbGb0a2BYlTw+8s0SnfS3zBw2RBVsaRe Kc+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=W4tq1P7BnAkatrqNGDQpHOpe5z56inFlYg2XDNhNI+Q=; b=ErPraXdA+HIXKsPyK/KAwwHbf+vDjkFChrRPCrLUYReUIQkoHiP49Miw0BICfJnFlF 7DYKRH70/8RKqpZcV/2Z8mBMnhbqD1DsqfqaLOnFyMMgT1JEqb+Oe/XOJpWoZa500aC1 hqCloyOCetOsAdrdKbEjzzobqwLlq70WeT+GApY0gyViYVau5KGcopvpSkbMi7b2Bm3n Rp3kixetybhDAABDEUIR1gYTX7r+opDjyVmZ6fLBOWUA25zXm9AdMlTwvhT4UQRNKilT 2qwqHMULmb/rNYzEGbbBw6YJ2caBJ3fJJz0OcaaguBZRW8g8Rliip4Be7doBATE+EkQX C8iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=biaMRh0O; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 33si1731454edr.343.2021.01.12.11.23.07; Tue, 12 Jan 2021 11:23:07 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=biaMRh0O; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392862AbhALTWT (ORCPT + 7 others); 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-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 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 --- drivers/net/ipa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 Acked-by: Randy Dunlap # build-tested Reviewed-by: Bjorn Andersson 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