Re: [RFC] scripts: kernel-doc: fix attribute capture in function parsing

2021-03-05 Thread Lukas Bulwahn
On Fri, Mar 5, 2021 at 8:38 PM Aditya wrote: > > On 6/3/21 12:13 am, Matthew Wilcox wrote: > > On Fri, Mar 05, 2021 at 11:50:00PM +0530, Aditya Srivastava wrote: > >> Provide a simple fix by adding "__attribute_const__" in the corresponding > >> regex expression. > >> > >> A quick evaluation by ru

Re: [RFC] scripts: kernel-doc: fix attribute capture in function parsing

2021-03-05 Thread Aditya
On 6/3/21 12:13 am, Matthew Wilcox wrote: > On Fri, Mar 05, 2021 at 11:50:00PM +0530, Aditya Srivastava wrote: >> Provide a simple fix by adding "__attribute_const__" in the corresponding >> regex expression. >> >> A quick evaluation by running 'kernel-doc -none' on kernel-tree reveals >> that no a

Re: [RFC] scripts: kernel-doc: fix attribute capture in function parsing

2021-03-05 Thread Matthew Wilcox
On Fri, Mar 05, 2021 at 11:50:00PM +0530, Aditya Srivastava wrote: > Provide a simple fix by adding "__attribute_const__" in the corresponding > regex expression. > > A quick evaluation by running 'kernel-doc -none' on kernel-tree reveals > that no additional warning or error has been added or rem

[RFC] scripts: kernel-doc: fix attribute capture in function parsing

2021-03-05 Thread Aditya Srivastava
Currently, kernel-doc warns for function prototype parsing on the presence of additional attributes in the definition. E.g., running kernel-doc -none on include/rdma/iw_cm.h causes this warning: "warning: cannot understand function prototype: 'const char *__attribute_const__ iwcm_reject_msg(int r