Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp941702rdb; Wed, 6 Dec 2023 04:37:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFH6R7EJvt/hQwIlGKo8qg21+GxAj2CrnVRoiLKntQLpma0yaDNI0PvthcgDfA5UCUxjIfn X-Received: by 2002:a17:903:1104:b0:1d0:b37b:a1f8 with SMTP id n4-20020a170903110400b001d0b37ba1f8mr548151plh.28.1701866276381; Wed, 06 Dec 2023 04:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701866276; cv=none; d=google.com; s=arc-20160816; b=0NONLVN172Hx5DnuFnd1HDXOR201XCnOCo200J5mjsg9HVy+dg23nNL8uczICfxJrW H+jOAnAWqtUpNWFnTT503jLdwiVyuoqKPcuxOPiESFswxLezGyLv9dtH/yqnscQsKUtT ZKiH8R7dQP7FgCxJTdbDfZq+V848xkKzkdDkkrcNaCC1og1yazJH106oVvGmUR4JWZ5m CPYFryh5nM+iTsuvqs+vov2cfw4OLGcfXVKjh5PmCzeotgI71gWtpC8YP7QIoswA8cxI U2tMDzJDg6yGdx2eAe25BlzGU0OO0QNFcwZviw+FbO8Y7vE9pv8cgDzQyj6TT/+JgNhe 0Gtw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=13QqR0Vd3JkcD9EZktAU42tvtefMCdb2Z0Kj0sBSEiE=; fh=6Z5YsCnRFDO78wNp50DzLAl4uab/sFZ0IX43ZxTOUh4=; b=hQT5MDa6iGQj/wJKQCeTnpsaupGkOaKwixOBrlMZkWNHI9BbFZBUDGwVHtERsBu7dm jiSdmEsA43BanIzCloAMPSBbnt/YkPbQWbYKbEHYarJsPAXTozCEA78iqsLTA8wR2PjI cLnOv26bymKCcopbOBvb7JCqWyUhRB0ySji1q2+gVU+yB1vfUsjObqqOaoZKizSNiqAn p79IFhxRXEPS8KZBwV4ZCTOP1IPKdnfrkfXJ4qDK0Q7DC/aRsfjNHgzatsBDwzSqiUYp zS+4EzY+lHOLmHVjhpcrpXSXHpXKzGk1q1MgOoWVC3SSqAIF6xZZ+SoSwQK9s8XWOWlt lv0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aqStE1Fj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y17-20020a17090322d100b001cffe364a3esi6970210plg.233.2023.12.06.04.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 04:37:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aqStE1Fj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E3445826E61E; Wed, 6 Dec 2023 04:37:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378329AbjLFMhj (ORCPT + 99 others); Wed, 6 Dec 2023 07:37:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378290AbjLFMhi (ORCPT ); Wed, 6 Dec 2023 07:37:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BFC1D4E for ; Wed, 6 Dec 2023 04:37:44 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 297A7C433C8; Wed, 6 Dec 2023 12:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701866264; bh=ADJ2QTgdrL4qnigrFQHFb2Ou59LIW/2P5BY+VaVUnI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aqStE1Fje2FGe68gp0llFETF/lI7zCt6KDJO/DA8l7htMiMHkVP5pFCGhPpzkZE6+ OLhZ7Qv8k2kRAzI0NgPlsCDy5yO7DxLtXndtu7ZQpRpSxx4nmct6h91JWitQP+7PbO t+Y3B8voX+GchPJJXMfZRkMuOLq35zi3F/apKfacUBNYaEU5xLrnZy3AA9pP/0jm1E MVB/lxNzKRvD/fYGBtSAgWfx+GvxFUOuSTlBwriNJTGhG7MCE1yxBcLrkiqzgfFc8o dqEAeiRCPlWg3EbghGzd6bH1nd9pIWZKfsAyzvtUcjZATiM6IswXXxoo5rXE56/hTS K8Fg5gea4PwKQ== From: Arnd Bergmann To: Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: Arnd Bergmann , Dmitry Baryshkov , Neil Armstrong , Ulf Hansson , AngeloGioacchino Del Regno , Souradeep Chowdhury , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] soc: qcom_stats: add AOSS_QMP dependency Date: Wed, 6 Dec 2023 13:37:07 +0100 Message-Id: <20231206123717.524009-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231206123717.524009-1-arnd@kernel.org> References: <20231206123717.524009-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 04:37:54 -0800 (PST) From: Arnd Bergmann Using the QMP functions fails in a built-in driver when QMP is a loadable module: aarch64-linux-ld: drivers/soc/qcom/qcom_stats.o: in function `qcom_ddr_stats_show': qcom_stats.c:(.text+0x6f4): undefined reference to `qmp_send' aarch64-linux-ld: drivers/soc/qcom/qcom_stats.o: in function `qcom_stats_probe': qcom_stats.c:(.text+0x117c): undefined reference to `qmp_get' Fixes: e84e61bdb97c ("soc: qcom: stats: Add DDR sleep stats") Signed-off-by: Arnd Bergmann --- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index bf213b514a52..a55f9d6c392a 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -222,6 +222,7 @@ config QCOM_STATS tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver" depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST depends on QCOM_SMEM + depends on QCOM_AOSS_QMP || !QCOM_AOSS_QMP help Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read the shared memory exported by the remote processor related to -- 2.39.2