[Linux-kernel-mentees] [PATCH 25/30] engine: check_exhaustive_pattern: Reflect Macrodecl attributes
Jaskaran Singh
jaskaransingh7654321 at gmail.com
Sun May 24 17:19:30 UTC 2020
Macrodecl attributes are added to the SmPL AST. Reflect these changes in
check_exhaustive_pattern.ml.
Signed-off-by: Jaskaran Singh <jaskaransingh7654321 at gmail.com>
---
engine/check_exhaustive_pattern.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/engine/check_exhaustive_pattern.ml b/engine/check_exhaustive_pattern.ml
index 903c32ff..2f1ef4a3 100644
--- a/engine/check_exhaustive_pattern.ml
+++ b/engine/check_exhaustive_pattern.ml
@@ -63,7 +63,7 @@ let dumb_astcocci_decl = function
| A.Init (stg, typa, sa, attr, _, expa, _) -> ()
| A.FunProto _ -> ()
| A.TyDecl (typa, _) -> ()
- | A.MacroDecl(stg, fn, _, eas, _, _) -> ()
+ | A.MacroDecl(stg, fn, _, eas, _, _, _) -> ()
| A.MacroDeclInit(stg, fn, _, eas, _, _, _, _) -> ()
| A.MetaDecl _ -> ()
| A.AsDecl _ -> ()
@@ -76,7 +76,7 @@ let dumb_astcocci_initialiser = function (* seems same as the above *)
A.Init(stg,ty,id,attr,eq,ini,sem) -> ()
| A.UnInit(stg,ty,id,attr,sem) -> ()
| A.FunProto _ -> ()
- | A.MacroDecl(_, fn, _, eas, _, _) -> ()
+ | A.MacroDecl(_, fn, _, eas, _, _, _) -> ()
| A.MacroDeclInit(_, fn, _, eas, _, _, _, _) -> ()
| A.TyDecl(ty,sem) -> ()
| A.Typedef(d,ty1,ty2,pv) -> ()
--
2.21.1
More information about the Linux-kernel-mentees
mailing list