sleeping in atomic: silence some duplicate warnings
commit3ed42e4c7c785b60415b0c1260aefa7f2f689edc
authorDan Carpenter <error27@gmail.com>
Thu, 9 Feb 2023 10:00:53 +0000 (9 13:00 +0300)
committerDan Carpenter <error27@gmail.com>
Thu, 9 Feb 2023 10:00:53 +0000 (9 13:00 +0300)
treef190b0fde77a7a4c35be3fe412c85eef45d05728
parent6ee436ad6cee08f81795e584744f25e95adeaafb
sleeping in atomic: silence some duplicate warnings

The issue here is that Smatch is looking at the whole call tree and you
have stuff like:

void wrapper_function(void)
{
sleeping_function();
}

void caller(void)
{
if (foo)
return;
wrapper_function();
}

Smatch will print two sleeping in atomic warnings.  One in the caller()
function and another in the wrapper_function().  We only want the warning
from the caller() function.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_preempt.c