Re: warning: comparison is always false due to limited range ofdata type

From: Paul Jackson
Date: Sat Aug 07 2004 - 19:43:11 EST


david+challenge-response@xxxxxxxxxxxxx wrote:
> fs/smbfs/inode.c:563: warning: comparison is always false due to limited
> range of data type
> fs/smbfs/inode.c:564: warning: comparison is always false due to limited
> range of data type

You're lucky you're still on the cc list David - please don't use reply
addresses that require editing.

Adding Andi Kleen <ak@xxxxxx> to cc list - looks from the bk log that he
might have some interest in this.

fs/smbfs/inode.c
1.46 03/12/01 07:04:55 ak@xxxxxx[torvalds] +2 -2
UID16 fixes

bk diffs -r1.45..1.46 fs/smbfs/inode.c
===== fs/smbfs/inode.c 1.45 vs 1.46 =====
554,555c554,555
< mnt->uid = OLD_TO_NEW_UID(oldmnt->uid);
< mnt->gid = OLD_TO_NEW_GID(oldmnt->gid);
---
> SET_UID(mnt->uid, oldmnt->uid);
> SET_GID(mnt->gid, oldmnt->gid);

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/