Skip to contentSkip to conversation

drm/xe/xe_vm: Convert comma to semicolon

PATCH In review Chen Ni 4 participants 4 messages Mar 27 – Mar 30

Subsystems (2)
lore
Share & tools
lore

Chen Ni

author
#0 lore raw

PATCH 1/1 drm/xe/xe_vm: Convert comma to semicolon

Using a ',' in place of a ';' can have unintended side effects. Although that is not the case here, it seems best to use ';' unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

---
 drivers/gpu/drm/xe/xe_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_vm.c +2 -2
index d96e0a0c5605..21844217dccd 100644
@@ -626,9 +626,9 @@ void xe_vm_add_fault_entry_pf(struct xe_vm *vm, struct xe_pagefault *pf)
 	e->address_precision = SZ_4K;
 	e->access_type = pf->consumer.access_type;
 	e->fault_type = FIELD_GET(XE_PAGEFAULT_TYPE_MASK,
-				  pf->consumer.fault_type_level),
+				  pf->consumer.fault_type_level);
 	e->fault_level = FIELD_GET(XE_PAGEFAULT_LEVEL_MASK,
-				   pf->consumer.fault_type_level),
+				   pf->consumer.fault_type_level);
 
 	list_add_tail(&e->list, &vm->faults.list);
 	vm->faults.len++;
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 18 lines · Chen Ni

Using a ',' in place of a ';' can have unintended side effects. Although that is not the case here, it seems best to use ';' unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

---
 drivers/gpu/drm/xe/xe_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_vm.c +0 -0
index d96e0a0c5605..21844217dccd 100644

drivers/gpu/drm/xe/xe_vm.c void xe_vm_add_fault_entry_pf(struct xe_vm *vm, struct xe_pagefault *pf) · line 631

Quoted 8 lines
drivers/gpu/drm/xe/xe_vm.c +2 -2
@@ -626,9 +626,9 @@ void xe_vm_add_fault_entry_pf(struct xe_vm *vm, struct xe_pagefault *pf)
 	e->address_precision = SZ_4K;
 	e->access_type = pf->consumer.access_type;
 	e->fault_type = FIELD_GET(XE_PAGEFAULT_TYPE_MASK,
-				  pf->consumer.fault_type_level),
+				  pf->consumer.fault_type_level);
 	e->fault_level = FIELD_GET(XE_PAGEFAULT_LEVEL_MASK,
-				   pf->consumer.fault_type_level),
+				   pf->consumer.fault_type_level);

This code is not present in our tree.

In the xe_pagefault.c where this FIELD_GET commands are actually implemented, the comma is the right way.

Quoted 6 lines
drivers/gpu/drm/xe/xe_vm.c +0 -0
 	list_add_tail(&e->list, &vm->faults.list);
 	vm->faults.len++;
Signature · 1 line
2.25.1
#2 lore raw

✗ LGCI.VerificationFailed: failure for drm/xe/xe_vm: Convert comma to semicolon

In reply to Chen Ni
== Series Details ==

== Series Details ==

Series: drm/xe/xe_vm: Convert comma to semicolon
URL : https://patchwork.freedesktop.org/series/164081/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist, which prevents CI from being triggered for this patch. If you want Intel GFX CI to accept this address, please contact the script maintainers at [email protected]. Exception occurred during validation, bailing out!

Reviewed-by on v1 1/1
#3 lore raw
In reply to Chen Ni
Quoted 9 lines · Chen Ni

Using a ',' in place of a ';' can have unintended side effects. Although that is not the case here, it seems best to use ';' unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

LGTM.

BTW, it is blocked by the CI due to the mail address restriction. Let me re-send it for CI validation. Thanks.

Quoted 23 lines
---
 drivers/gpu/drm/xe/xe_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_vm.c index renamed from drivers/gpu/drm/xe/xe_vm.c +0 -0

d96e0a0c5605..21844217dccd 100644

drivers/gpu/drm/xe/xe_vm.c +2 -2
@@ -626,9 +626,9 @@ void xe_vm_add_fault_entry_pf(struct xe_vm *vm,
 struct xe_pagefault *pf)
 	e->address_precision = SZ_4K;
 	e->access_type = pf->consumer.access_type;
 	e->fault_type = FIELD_GET(XE_PAGEFAULT_TYPE_MASK,
-				  pf->consumer.fault_type_level),
+				  pf->consumer.fault_type_level);
 	e->fault_level = FIELD_GET(XE_PAGEFAULT_LEVEL_MASK,
-				   pf->consumer.fault_type_level),
+				   pf->consumer.fault_type_level);
 
 	list_add_tail(&e->list, &vm->faults.list);

vm->faults.len++;
--
2.25.1