Skip to content

Commit

Permalink
Fix compilation warning in dquot.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Dec 18, 2007
1 parent d5dbac8 commit 087ee8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 087ee8d

Please sign in to comment.