From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Tao Subject: [PATCH] vfs: constify dentry parameter in d_count() Date: Thu, 18 Jul 2013 22:09:08 +0800 Message-ID: <1374156548-5046-1-git-send-email-bergwolf@gmail.com> Cc: linux-fsdevel@vger.kernel.org, Peng Tao , Peng Tao To: Al Viro Return-path: Received: from mail-pd0-f181.google.com ([209.85.192.181]:50117 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757853Ab3GROPb (ORCPT ); Thu, 18 Jul 2013 10:15:31 -0400 Received: by mail-pd0-f181.google.com with SMTP id 14so3136194pdj.12 for ; Thu, 18 Jul 2013 07:15:30 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: so that it can be used in places like d_compare/d_hash without causing a compiler warning. Signed-off-by: Peng Tao --- include/linux/dcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 3092df3..b90337c 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -324,7 +324,7 @@ static inline int __d_rcu_to_refcount(struct dentry *dentry, unsigned seq) return ret; } -static inline unsigned d_count(struct dentry *dentry) +static inline unsigned d_count(const struct dentry *dentry) { return dentry->d_count; } -- 1.7.9.5