* [PATCH] sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e'
@ 2026-01-11 17:28 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2026-01-11 17:28 UTC (permalink / raw)
To: Chris Li, Luc Van Oostenryck; +Cc: Alexey Gladkov, linux-sparse
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 <oleg@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-11 17:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-11 17:28 [PATCH] sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e' Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox