mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Fix compilation warning in dquot.c
Fix compilation warning about discarded const. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d5dbac87b4
commit
087ee8d5be
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue