Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751514AbdHaJvD (ORCPT ); Thu, 31 Aug 2017 05:51:03 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35356 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbdHaJvC (ORCPT ); Thu, 31 Aug 2017 05:51:02 -0400 X-Google-Smtp-Source: ADKCNb5VacrOhs1QYC0aqJ8n6ZabO+ZP0iiy2kqABf2hRt2exsDVar8gnzNCudkK1bqyKs8Lm79s0g== From: Arvind Yadav To: hubcap@omnibond.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] orangefs: constify xattr_handler Date: Thu, 31 Aug 2017 15:20:34 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 25 xattr_handler are not supposed to change at runtime. "struct super_block" working with xattr_handler provided by work with const xattr_handler. So mark the non-const structs as const Signed-off-by: Arvind Yadav --- fs/orangefs/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c index 237c9c0..5f86bf9 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, -- 1.9.1