[PATCH] sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e'

Oleg Nesterov <[email protected]> Sun, 11 Jan 2026 18:28:14 +0100
Newsgroups org.kernel.vger.linux-sparse
Message-ID <[email protected]>
dissect() tries to provide as much info as possible, but from the
semind's perspective it doesn't make sense to store the enumerators
as members; this just complicates the searching.

Signed-off-by: Oleg Nesterov <[email protected]>
---
 semind.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/semind.c b/semind.c
index e9708444..92b8f243 100644
--- a/semind.c
+++ b/semind.c
@@ -746,6 +746,9 @@ static void r_member(unsigned mode, struct position *pos, struct symbol *sym, st
 	struct ident *ctx = &null;
 	struct index_record rec;
 
+	if (mem && mem->kind == 'e')
+		return r_symbol(mode, pos, mem);
+
 	update_stream();
 
 	if (semind_streams[pos->stream].id == -1)
-- 
2.52.0