From: Oleg Nesterov <oleg@redhat.com>
To: Chris Li <sparse@chrisli.org>, Luc Van Oostenryck <lucvoo@kernel.org>
Cc: Alexey Gladkov <legion@kernel.org>, linux-sparse@vger.kernel.org
Subject: [PATCH] sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e'
Date: Sun, 11 Jan 2026 18:28:14 +0100 [thread overview]
Message-ID: <aWPdrkv4DTnGRHPf@redhat.com> (raw)
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
reply other threads:[~2026-01-11 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aWPdrkv4DTnGRHPf@redhat.com \
--to=oleg@redhat.com \
--cc=legion@kernel.org \
--cc=linux-sparse@vger.kernel.org \
--cc=lucvoo@kernel.org \
--cc=sparse@chrisli.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.