diff options
| author | Chuck Lever <cel@kernel.org> | 2026-07-12 16:34:49 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-10 09:54:35 -0400 |
| commit | b75e1a256d9ed2425ad648fe4e17b9c89c415ec3 (patch) | |
| tree | 1abe172818e91955cab62a077103966f2b6b2bf7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e1391920c69464ca31a2c0448310d55f84dac0e3 (diff) | |
xdrgen: Reject specifications that define a name twice
When an RPC specification defines the same type or constant name
more than once, currently xdrgen emits every definition without
complaint. The duplication surfaces later as a C compiler error
about a redefined struct or function that points at generated code
instead of the actual offending line in the .x source.
RFC 4506 Section 6.4 places constant and type identifiers in a
single name space that must be unique within a specification. Add
a semantic check that enforces this rule.
Link: https://patch.msgid.link/20260712203451.124902-4-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
