Page MenuHomeFreeBSD

LinuxKPI: adjust return value of __ffs64
AcceptedPublic

Authored by bz on Tue, Oct 13, 10:19 PM.
Referenced Files
F176368131: D60715.diff
Sun, Oct 18, 7:15 AM
F176343309: D60715.diff
Sun, Oct 18, 2:00 AM
Unknown Object (File)
Thu, Oct 15, 10:48 AM
Unknown Object (File)
Thu, Oct 15, 2:18 AM
Unknown Object (File)
Wed, Oct 14, 5:24 PM
Unknown Object (File)
Wed, Oct 14, 11:06 AM
Unknown Object (File)
Wed, Oct 14, 7:15 AM
Unknown Object (File)
Wed, Oct 14, 6:03 AM
Subscribers

Details

Reviewers
emaste
Group Reviewers
linuxkpi
Summary

ffsll() returns an int; there is no need for __ffs64 to return an
unsigned long; reduce it to an unsigned int which callers may expect.
As the result is undefined for no bits set we do not have to worry about
the -1.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 78154
Build 75037: arc lint + arc unit