[PATCH 5.15 506/913] libbpf: Skip forward declaration when counting duplicated type names