All of lore.kernel.org
 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
  0 siblings, 0 replies; 8+ messages in thread
From: Randy Dunlap @ 2023-07-12  2:37 UTC (permalink / raw)
  To: Linux Doc Mailing List, Jonathan Corbet
  Cc: amd-gfx list, dri-devel@lists.freedesktop.org,
	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] 8+ messages in thread

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

Thread overview: 8+ 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  2:37 ` Randy Dunlap
2023-07-12  3:32 ` Akira Yokosawa
2023-07-12  3:32   ` Akira Yokosawa
2023-07-12  3:45   ` Randy Dunlap
2023-07-12  3:45     ` Randy Dunlap
2023-07-12  5:42     ` Mauro Carvalho Chehab
2023-07-12  5:42       ` Mauro Carvalho Chehab

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.