Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4909721ybv; Mon, 17 Feb 2020 08:15:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzvE2tdl2n3mQiUGydIIndOajQROtp2/B6fARsBZRbxf6OLKcVfuAl439f/kFISliiuE9cT X-Received: by 2002:a05:6830:1203:: with SMTP id r3mr13088313otp.230.1581956130145; Mon, 17 Feb 2020 08:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581956130; cv=none; d=google.com; s=arc-20160816; b=j61+FgsPMfA4//rMrARohNlzVmYL4O8vSLa+meOoYP+5mUNXPMclFbMJhG2LHKANz5 OhCnoQH7xTKWpVclsjyMW6NoUFouGG3UZ6BywVJl5SuLs8Ow+ecUf/nme5kJJgs8nilw XOtK0g3XFGHsDp6XVKTvP/saA4EbeD2zawhw4C3KFEtO4V52Vce3PC6apvBDGbvTaKNd PiWhE00fgWha911DLs4M/tryfofJFD4buuIb+YddARyo8QO6oqCSbABU9bigpxzeEo7T MZNpY0I67MxVBhBe8y3mUbxcPU8I8/aLZF5n9uucKJXspoi+x9fmCu5J4IdEzt2umkP0 DA9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=e467rUZYaCMvOE4ooD/YQtOGXGd3zWjf5JywBz9tOgI=; b=NTpRsp/LFk1u7esLaWikPZV56AWBnvUy9sghjWpUErmfIfQP8ZgxPFVMT4mxXeUeU4 5NXC44mybVursRf16lclGwb8fxK57qILXGyGs8QPNoDPAaxjd+JG5OUuTlE6mXaEu9jK j8Skn2SVeSqNzPTXeb5EEPtC9MuA0b3MiIWiWKFiZ6MPtGEBzveXXNXvgX0OjhPDzGwM s3/GieLtTIk9mbAodiNAtS0EMioXX62BkldYxeNvIHF231TutM6OzygI+exrTablirq0 XodNpl0GOJ+ds22F3mOKgchjqEF3YVrkMhUTdqYZXyD1vzU1Xbqy0B9cg/S/kjOSVDqx sGTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 24si6103701oip.248.2020.02.17.08.15.17; Mon, 17 Feb 2020 08:15:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729074AbgBQQMU (ORCPT + 99 others); Mon, 17 Feb 2020 11:12:20 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:22542 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728776AbgBQQMU (ORCPT ); Mon, 17 Feb 2020 11:12:20 -0500 Received: from droid13.amlogic.com (116.236.93.172) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.1591.10; Tue, 18 Feb 2020 00:12:41 +0800 From: Jianxin Pan To: Kevin Hilman , CC: Jianxin Pan , Stephen Rothwell , Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: [PATCH] soc: amlogic: fix compile failure with MESON_SECURE_PM_DOMAINS & !MESON_SM Date: Tue, 18 Feb 2020 00:12:13 +0800 Message-ID: <1581955933-69832-1-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [116.236.93.172] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When MESON_SECURE_PM_DOMAINS & !MESON_SM, there will be compile failure: .../meson-secure-pwrc.o: In function `meson_secure_pwrc_on': .../meson-secure-pwrc.c:76: undefined reference to `meson_sm_call' Fix this by adding depends on MESON_SM for MESON_SECURE_PM_DOMAINS. Fixes: b3dde5013e13 ("soc: amlogic: Add support for Secure power domains controller") Reported-by: kbuild test robot Reported-by: patchwork-bot+linux-amlogic Reported-by: Stephen Rothwell Signed-off-by: Jianxin Pan --- drivers/soc/amlogic/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 6cb06e7..321c5e2 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -50,7 +50,7 @@ config MESON_EE_PM_DOMAINS config MESON_SECURE_PM_DOMAINS bool "Amlogic Meson Secure Power Domains driver" - depends on ARCH_MESON || COMPILE_TEST + depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM depends on PM && OF depends on HAVE_ARM_SMCCC default ARCH_MESON -- 2.7.4