From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933504AbcINWQF (ORCPT ); Wed, 14 Sep 2016 18:16:05 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37026 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765900AbcINWP7 (ORCPT ); Wed, 14 Sep 2016 18:15:59 -0400 From: Rasmus Villemoes To: Alexander Viro Cc: Rasmus Villemoes , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/internal.h: add const to ns_dentry_operations declaration Date: Thu, 15 Sep 2016 00:15:34 +0200 Message-Id: <1473891334-9294-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The actual definition in fs/nsfs.c is already const. Signed-off-by: Rasmus Villemoes --- Maybe fs/nsfs.c (and fs/buffer.c) should grow includes of internal.h. I think they are the only two providing stuff declared there but not including it. fs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/internal.h b/fs/internal.h index ba0737649d4a..395887882315 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -156,7 +156,7 @@ extern void mnt_pin_kill(struct mount *m); /* * fs/nsfs.c */ -extern struct dentry_operations ns_dentry_operations; +extern const struct dentry_operations ns_dentry_operations; /* * fs/ioctl.c -- 2.1.4