On Sat, 07 Oct 2023, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > Can we have a way to enable kernel-doc coverage on a per-directory basis? > It will stop us from regressing. I got mm/ down to zero warnings, and > that promptly regressed. If we force kernel-doc to run on files under > mm/, developers will notice breakage quickly. It's not exactly pretty, but we do this in i915. Unfortunately, it needs to be done separately and in different ways for kernel-doc in .c and .h. Check out drivers/gpu/drm/i915/Makefile for ideas. BR, Jani. -- Jani Nikula, Intel