From 652e152d66a87bcc23c1635cad41a1a1d28ac9d3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 21 Mar 2020 11:38:00 -0600 Subject: [PATCH] tools/nxstyle: Ignore stub names that begin with STUB_* The names use for stub functions follows a non-standard convention: They begin with STUB_ --- tools/nxstyle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 5c12d55017..8ed453619b 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -1459,7 +1459,8 @@ int main(int argc, char **argv, char **envp) */ if ((strncmp(&line[ident_index], "PRIx", 4) == 0) || - (strncmp(&line[ident_index], "SYS_", 4) == 0)) + (strncmp(&line[ident_index], "SYS_", 4) == 0) || + (strncmp(&line[ident_index], "STUB_", 5) == 0)) { /* No error */ }