Re: [PATCH] lockd: constify nlmsvc_binding structure

2016-01-04 Thread J. Bruce Fields
On Wed, Dec 23, 2015 at 10:25:13PM +0100, Julia Lawall wrote: > The nlmsvc_binding structure is never modified, so declare it as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > > --- > > This assumes that whoever takes advantage of the EXPORT_SYMBOL will also > n

[PATCH] lockd: constify nlmsvc_binding structure

2015-12-23 Thread Julia Lawall
The nlmsvc_binding structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- This assumes that whoever takes advantage of the EXPORT_SYMBOL will also not want to write in the fields. Is that reasonable? fs/lockd/svc.c