linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* scripts/kernel-doc does not handle duplicate struct & function names (e.g., in amdgpu)
@ 2023-07-12  2:37 Randy Dunlap
  2023-07-12  3:32 ` Akira Yokosawa
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2023-07-12  2:37 UTC (permalink / raw)
  To: Linux Doc Mailing List, Jonathan Corbet
  Cc: dri-devel@lists.freedesktop.org, amd-gfx list,
	linux-kernel@vger.kernel.org

[just documenting this for posterity or in case someone wants to fix it.]

In drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c, one can find both

struct amdgpu_vm_tlb_seq_cb {...};

and
static void amdgpu_vm_tlb_seq_cb(...)

Of course C has no problem with this, but kernel-doc reports:

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:833: WARNING: Duplicate C declaration, also defined at gpu/amdgpu/driver-core:115.

And of course, if the name of one of them is changed, kernel-doc is all happy...
not that I am suggesting that one of them should be changed.

I just want to make people aware of this. (or maybe people are already aware of this?)

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-12  5:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12  2:37 scripts/kernel-doc does not handle duplicate struct & function names (e.g., in amdgpu) Randy Dunlap
2023-07-12  3:32 ` Akira Yokosawa
2023-07-12  3:45   ` Randy Dunlap
2023-07-12  5:42     ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).