Commit 087ee8d5 authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds

Fix compilation warning in dquot.c

Fix compilation warning about discarded const.
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d5dbac87
...@@ -965,7 +965,7 @@ err_out: ...@@ -965,7 +965,7 @@ err_out:
} }
#endif #endif
static inline void flush_warnings(struct dquot **dquots, char *warntype) static inline void flush_warnings(struct dquot * const *dquots, char *warntype)
{ {
int i; int i;
...@@ -1216,7 +1216,7 @@ warn_put_all: ...@@ -1216,7 +1216,7 @@ warn_put_all:
for (cnt = 0; cnt < MAXQUOTAS; cnt++) for (cnt = 0; cnt < MAXQUOTAS; cnt++)
if (inode->i_dquot[cnt]) if (inode->i_dquot[cnt])
mark_dquot_dirty(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); up_read(&sb_dqopt(inode->i_sb)->dqptr_sem);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment