From: Mika Kukkonen CC fs/dquot.o fs/dquot.c:208: warning: type qualifiers ignored on function return type Once again with extra gcc warnings enabled. Every user of the function is expecting unsigned value, not int in first place, and I think the const is just misplaced. Signed-off-by: Andrew Morton --- 25-akpm/fs/dquot.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff -puN fs/dquot.c~correct-return-type-of-hashfn-in-fs-dquotc fs/dquot.c --- 25/fs/dquot.c~correct-return-type-of-hashfn-in-fs-dquotc Wed Jul 7 14:13:39 2004 +++ 25-akpm/fs/dquot.c Wed Jul 7 14:14:24 2004 @@ -206,9 +206,12 @@ struct dqstats dqstats; static void dqput(struct dquot *dquot); -static inline int const hashfn(struct super_block *sb, unsigned int id, int type) +static inline unsigned int +hashfn(const struct super_block *sb, unsigned int id, int type) { - unsigned long tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); + unsigned long tmp; + + tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); return (tmp + (tmp >> dq_hash_bits)) & dq_hash_mask; } _