提交 087ee8d5 编写于 作者: J Jan Kara 提交者: Linus Torvalds

Fix compilation warning in dquot.c

Fix compilation warning about discarded const.
Signed-off-by: NJan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d5dbac87
......@@ -965,7 +965,7 @@ static void send_warning(const struct dquot *dquot, const char warntype)
}
#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 @@ int dquot_alloc_inode(const struct inode *inode, unsigned long number)
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册