lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 24 Nov 2022 17:59:47 +0800
From:   Wang Honghui <honghui.wang@...s.com.cn>
To:     Sudeep Holla <sudeep.holla@....com>,
        Cristian Marussi <cristian.marussi@....com>,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH V2 3/3] arm_scpi: Rev last modify to support acpi

Rev last modify to support acpi

Signed-off-by: Wang Honghui <honghui.wang@...s.com.cn>
---
 drivers/firmware/arm_scpi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index e2e90dcc38bd..aca0a9780c12 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -908,7 +908,9 @@ static const struct of_device_id shmem_of_match[] __maybe_unused = {
 	{ }
 };
 
+#ifdef CONFIG_PHYTIUM_MBOX
 extern struct mbox_chan *phytium_mbox_request_channel(struct mbox_client *cl);
+#endif
 
 static int scpi_probe(struct platform_device *pdev)
 {
@@ -1047,6 +1049,7 @@ static int scpi_probe(struct platform_device *pdev)
 
                         ret = scpi_alloc_xfer_list(dev, pchan);
 
+#ifdef phytium_mbox_request_channel
                         if (!ret) {
                                 pchan->chan = phytium_mbox_request_channel(cl);
 
@@ -1058,6 +1061,7 @@ static int scpi_probe(struct platform_device *pdev)
                                         dev_err(dev, "failed to get channel%d err %d\n",
                                                 idx, ret);
                         }
+#endif
 
                         return ret;
                 }
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ