[PATCH 2/6] Coccinelle: ptr_err_to_pe: Reduce repetition of the key word “virtual”

From: Markus Elfring

Date: Tue Sep 30 2025 - 13:35:40 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Sep 2025 17:11:48 +0200

This SmPL script is using three input variables. They can be specified
in a more succinct way. Thus adjust the corresponding SmPL code layout.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
scripts/coccinelle/misc/ptr_err_to_pe.cocci | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/coccinelle/misc/ptr_err_to_pe.cocci b/scripts/coccinelle/misc/ptr_err_to_pe.cocci
index 1a373c0a8180..26888d2c9c83 100644
--- a/scripts/coccinelle/misc/ptr_err_to_pe.cocci
+++ b/scripts/coccinelle/misc/ptr_err_to_pe.cocci
@@ -10,9 +10,7 @@
// Copyright: (C) 2025 NVIDIA CORPORATION & AFFILIATES.
// Options: --no-includes --include-headers

-virtual context
-virtual org
-virtual report
+virtual context, report, org

@r@
expression ptr;
--
2.51.0