Page MenuHomeFreeBSD

LinuxKPI: adjust return value of __ffs64
AcceptedPublic

Authored by bz on Tue, Oct 13, 10:19 PM.
Referenced Files
F175895114: D60715.diff
Wed, Oct 14, 7:15 AM
F175889891: D60715.id.diff
Wed, Oct 14, 6:03 AM
F175875412: D60715.diff
Wed, Oct 14, 2:49 AM
F175872193: D60715.id189799.diff
Wed, Oct 14, 2:04 AM
F175868348: D60715.diff
Wed, Oct 14, 1:14 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