Page MenuHomeFreeBSD

LinuxKPI: add __counted_by_le()
ClosedPublic

Authored by bz on Sun, Oct 19, 11:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 20, 12:37 PM
Unknown Object (File)
Mon, Oct 20, 12:29 PM
Unknown Object (File)
Mon, Oct 20, 9:59 AM
Unknown Object (File)
Mon, Oct 20, 7:52 AM
Unknown Object (File)
Mon, Oct 20, 6:01 AM
Unknown Object (File)
Mon, Oct 20, 5:32 AM
Unknown Object (File)
Mon, Oct 20, 5:31 AM
Unknown Object (File)
Mon, Oct 20, 4:29 AM
Subscribers

Details

Summary

Needed by a wireless driver at v6.17.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Sun, Oct 19, 11:06 PM
sys/compat/linuxkpi/common/include/linux/compiler.h
83

This should apply on little endian systems only I believe.

Add add counted_by_le() and counted_by_be() and make them
endian conditional. Apparently there's still supported big-endian
out there even though we do not support wireless drivers on it
currently.

bz marked an inline comment as done.Mon, Oct 20, 5:03 AM
This revision is now accepted and ready to land.Mon, Oct 20, 3:17 PM
sys/compat/linuxkpi/common/include/linux/compiler.h
83

This needs sys/endian.h ; will be included in the commit. Funny it worked on a local kernel compile but on a clean tinderbox it failed.