SUSE / clang-extract

Other
7 stars 3 forks source link

Unused struct definition kept in the closure #23

Open marcosps opened 1 month ago

marcosps commented 1 month ago

When extraction function ip6_route_multipath_add from net/ipv6/route.c file in older codestreams (SLE12.5 or SLE15.5), the struct

struct uncached_list {
        spinlock_t              lock;
        struct list_head        head;
}; 

is kept, but it's not being referenced in the file. It also doesn't contain any includes after this definition, which would mean that the definition was needed there. This can't be reproduced on upstream kernel because of #22 .

marcosps commented 3 weeks ago

It's reproducible now that #22 was fixed, and it's still there.