[Samba] kenrel 2.6.4 patch for fixing warning of smbfs on high gid/uid

Alexander Stohr Alexander.Stohr at gmx.de
Thu Mar 11 18:17:48 GMT 2004


Hello,

when i compiled latest linux 2.6.4 kernel source with gcc 3.3.2 on
Linux/x86,
i got a few warnings about varaibles beeing compared against constants
where the range of the variable is so that the expression is always
constant.
The explicit comparison has to do with the code for high-uid and gid sheme.

attached you will find a diff which does eliminate this error message
by introducing an inline function that wont result in the message but
it will result in compareable dense binary code with normal optimisations.

-Alex.

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


More information about the samba mailing list