Skip to contentSkip to conversation

xen/arm: Fix misplaced parentheses for PSCI version check

PATCH Superseded Artem Mygaiev 4 participants 6 messages Nov 30, 2016 – Dec 6, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Fix misplaced parentheses for PSCI version check

Fix misplaced parentheses for PSCI version check

---
 xen/arch/arm/psci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/psci.c +1 -1
index 7966b5e..34ee97e 100644
@@ -147,7 +147,7 @@ int __init psci_init_0_2(void)
     psci_ver = call_smc(PSCI_0_2_FN_PSCI_VERSION, 0, 0, 0);
 
     /* For the moment, we only support PSCI 0.2 and PSCI 1.x */
-    if ( psci_ver != PSCI_VERSION(0, 2) && PSCI_VERSION_MAJOR(psci_ver != 1) )
+    if ( psci_ver != PSCI_VERSION(0, 2) && PSCI_VERSION_MAJOR(psci_ver) != 1 )
     {
         printk("Error: Unrecognized PSCI version %u.%u\n",
                PSCI_VERSION_MAJOR(psci_ver), PSCI_VERSION_MINOR(psci_ver));

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reviewed-by on v1 1/1
#1 lore raw

Hi Artem,

Quoted 3 lines · Artem Mygaiev

Fix misplaced parentheses for PSCI version check

Can you please include the coverity ID:

Coverity-ID: 1381830

With that:

This has been introduced by me in commit 2831f20 "xen/arm: Add support of PSCI v1.0 for the host" in Xen 4.7. I am not sure whether we should backport it.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
Quoted 9 lines · Julien Grall

Hi Artem,

Quoted 3 lines · Artem Mygaiev

Fix misplaced parentheses for PSCI version check

Can you please include the coverity ID:

Quoted 8 lines

Coverity-ID: 1381830

With that:

This has been introduced by me in commit 2831f20 "xen/arm: Add support of PSCI v1.0 for the host" in Xen 4.7. I am not sure whether we should backport it.

I think we should backport it.

Wei, can I have a release-ack or do you want to wait until after the release?

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw
Quoted 16 lines · Stefano Stabellini
Quoted 15 lines · Julien Grall

Hi Artem,

Quoted 3 lines · Artem Mygaiev

Fix misplaced parentheses for PSCI version check

Can you please include the coverity ID:

Coverity-ID: 1381830

With that:

Quoted 7 lines
Quoted 2 lines

This has been introduced by me in commit 2831f20 "xen/arm: Add support of PSCI v1.0 for the host" in Xen 4.7. I am not sure whether we should backport it.

I think we should backport it.

Wei, can I have a release-ack or do you want to wait until after the release?

Please wait until after the release.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw
Quoted 20 lines · Wei Liu
Quoted 19 lines · Stefano Stabellini
Quoted 17 lines · Julien Grall

Hi Artem,

Quoted 3 lines · Artem Mygaiev

Fix misplaced parentheses for PSCI version check

Can you please include the coverity ID:

Coverity-ID: 1381830

With that:

This has been introduced by me in commit 2831f20 "xen/arm: Add support of PSCI v1.0 for the host" in Xen 4.7. I am not sure whether we should backport it.

Quoted 6 lines
Quoted 4 lines

I think we should backport it.

Wei, can I have a release-ack or do you want to wait until after the release?

Please wait until after the release.

In the meantime, I applied to xen-arm-next.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#5 lore raw
In reply to Julien Grall

Thanks, resent

Quoted 11 lines · Julien Grall

Hi Artem,

Quoted 3 lines · Artem Mygaiev

Fix misplaced parentheses for PSCI version check

Can you please include the coverity ID:

Coverity-ID: 1381830

Quoted 8 lines

With that:

This has been introduced by me in commit 2831f20 "xen/arm: Add support of PSCI v1.0 for the host" in Xen 4.7. I am not sure whether we should backport it.

Cheers,

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel