From: Julia Lawall Date: Wed, 2 Aug 2017 08:35:14 +0000 (+0200) Subject: orangefs: constify xattr_handler structure X-Git-Tag: v6.6-pxa1908~15774^2~3 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=121744440582004a1751c688a2622e5dfeaae09d;p=linux.git orangefs: constify xattr_handler structure The xattr_handler structure is only stored in an array of const structures. Thus the xattr_handler structure itself can be const. Signed-off-by: Julia Lawall Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c index a34b25be39c5..fed0e9aae23b 100644 --- a/fs/orangefs/xattr.c +++ b/fs/orangefs/xattr.c @@ -442,7 +442,7 @@ static int orangefs_xattr_get_default(const struct xattr_handler *handler, } -static struct xattr_handler orangefs_xattr_default_handler = { +static const struct xattr_handler orangefs_xattr_default_handler = { .prefix = "", /* match any name => handlers called with full name */ .get = orangefs_xattr_get_default, .set = orangefs_xattr_set_default,