scripts: gen_syscall: ignore Coverity overrun check
Coverity does not understand syscall mechanism and will already complain when any function argument is not of exact size as uintptr_t. So tell Coverity to ignore this particular rule here. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
94e8c2eb81
commit
4725db8722
1 changed files with 6 additions and 0 deletions
|
|
@ -193,6 +193,12 @@ def wrapper_defs(func_name, func_type, args):
|
|||
% (len(mrsh_args),
|
||||
", ".join(mrsh_args + [syscall_id])))
|
||||
|
||||
# Coverity does not understand syscall mechanism
|
||||
# and will already complain when any function argument
|
||||
# is not of exact size as uintptr_t. So tell Coverity
|
||||
# to ignore this particular rule here.
|
||||
wrap += "\t\t/* coverity[OVERRUN] */\n"
|
||||
|
||||
if ret64:
|
||||
wrap += "\t\t" + "(void)%s;\n" % invoke
|
||||
wrap += "\t\t" + "return (%s)ret64;\n" % func_type
|
||||
|
|
|
|||
Loading…
Reference in a new issue