[PATCH] check_release_resource: Remove some test about functions that are no more part of linux

Christophe JAILLET <[email protected]> Mon, 30 May 2022 21:17:30 +0200
Newsgroups org.kernel.vger.smatch
Message-ID <431423a8007e01b8e6e122ece3fb9442beed2d84.1653938236.git.christophe.jaillet@wanadoo.fr>
request_mem_resource() and release_mem_resource() seem to not exist in
recent kernel. Remove them.

Signed-off-by: Christophe JAILLET <[email protected]>
---
I've tried to find it in older version. I randomly tried some search
with elixir, up to 2.6, but never found these function. Any idea where it
comes from?
---
 check_release_resource.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/check_release_resource.c b/check_release_resource.c
index 7ea2c291c259..1c0fdfd93154 100644
--- a/check_release_resource.c
+++ b/check_release_resource.c
@@ -84,7 +84,5 @@ void check_release_resource(int id)
 
 	add_function_hook("request_resource", &match_request, INT_PTR(1));
 	add_function_hook("release_resource", &match_release, INT_PTR(0));
-	add_function_hook("request_mem_resource", &match_request, INT_PTR(0));
-	add_function_hook("release_mem_resource", &match_release, INT_PTR(0));
 	add_hook(&match_end_func, END_FUNC_HOOK);
 }
-- 
2.34.1