devtools: alert on new calls to exit from libs
authorArnon Warshavsky <arnon@qwilt.com>
Thu, 26 Jul 2018 22:10:58 +0000 (01:10 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 31 Jul 2018 12:12:57 +0000 (14:12 +0200)
commit7413e7f2aeb3972e8f76e751243a6d4a4c84b38e
tree64859c89f02b01257724b4413f7a59ad43f3cd90
parent23888166d99682b1491a917277e4ff0ff01639b2
devtools: alert on new calls to exit from libs

This patch adds a new function that is called
per every checked patch,
and alerts for new instances of rte_panic/rte_exit.
The check excludes comments, and alerts in the case
of a positive balance between additions and removals.

Signed-off-by: Arnon Warshavsky <arnon@qwilt.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Tested-by: Kevin Traynor <ktraynor@redhat.com>
devtools/checkpatches.sh