From 1aed810c86069f8b9b117ccccf083e98bf0da74c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 8 Apr 2025 14:11:26 +0200 Subject: tools/syz-declextract: extend test data Add few interesting cases for scope analysis. Move functions related to resource to the header file, they must be visible in every file to work. --- tools/syz-declextract/testdata/functions.c.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/syz-declextract/testdata/functions.c.json') diff --git a/tools/syz-declextract/testdata/functions.c.json b/tools/syz-declextract/testdata/functions.c.json index ecb95affc..6d636233e 100644 --- a/tools/syz-declextract/testdata/functions.c.json +++ b/tools/syz-declextract/testdata/functions.c.json @@ -44,7 +44,8 @@ }, { "name": "__fget_light", - "file": "functions.c", + "file": "include/fs.h", + "is_static": true, "scopes": [ { "arg": -1 @@ -53,7 +54,8 @@ }, { "name": "alloc_fd", - "file": "functions.c", + "file": "include/fs.h", + "is_static": true, "scopes": [ { "arg": -1, @@ -84,7 +86,8 @@ }, { "name": "from_kuid", - "file": "functions.c", + "file": "include/fs.h", + "is_static": true, "scopes": [ { "arg": -1, -- cgit mrf-deployment