From: Jan Kara Date: Tue, 18 Dec 2007 00:20:26 +0000 (-0800) Subject: Fix compilation warning in dquot.c X-Git-Tag: v2.6.24-rc6~27 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=087ee8d5bec1aa6d0a1dfe3067c7298375462ceb;p=linux-2.6-omap-h63xx.git Fix compilation warning in dquot.c Fix compilation warning about discarded const. Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/dquot.c b/fs/dquot.c index 2809768d9c4..686ab63a7c6 100644 --- a/fs/dquot.c +++ b/fs/dquot.c @@ -965,7 +965,7 @@ err_out: } #endif -static inline void flush_warnings(struct dquot **dquots, char *warntype) +static inline void flush_warnings(struct dquot * const *dquots, char *warntype) { int i; @@ -1216,7 +1216,7 @@ warn_put_all: for (cnt = 0; cnt < MAXQUOTAS; cnt++) if (inode->i_dquot[cnt]) mark_dquot_dirty(inode->i_dquot[cnt]); - flush_warnings((struct dquot **)inode->i_dquot, warntype); + flush_warnings(inode->i_dquot, warntype); up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); return ret; }