On Fri, Feb 19, 2021 at 12:55 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > > On Fri, Feb 19, 2021 at 12:55:09PM -0700, Nathan Chancellor wrote: > > On Mon, Feb 15, 2021 at 08:49:09PM +0000, Matthew Wilcox (Oracle) wrote: > > > The generated html will link to the definition of the gfp_t automatically > > > once we define it. Move the one-paragraph overview of GFP flags from the > > > documentation directory into gfp.h and pull gfp.h into the documentation. > > > > > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > > > > This patch causes a clang warning in basically every file on linux-next > > now: > > > > include/linux/gfp.h:20:32: warning: redefinition of typedef 'gfp_t' is a C11 feature [-Wtypedef-redefinition] > > Seems like it's also a gnu89 feature. Is there a preprocessor define when using kernel doc that you could guard the redefinition with? See include/linux/phylink.h which uses: #if 0 /* For kernel-doc purposes only. */ to guard definitions for kernel-doc. -- Thanks, ~Nick Desaulniers