Page MenuHomeFreeBSD

LinuxKPI: add __counted_by_le()
ClosedPublic

Authored by bz on Oct 19 2025, 11:05 PM.
Tags
None
Referenced Files
F163920956: D53203.diff
Mon, Jul 27, 4:55 AM
Unknown Object (File)
Sat, Jul 25, 9:38 PM
Unknown Object (File)
Wed, Jul 22, 8:24 AM
Unknown Object (File)
Wed, Jul 22, 2:10 AM
Unknown Object (File)
Tue, Jul 21, 1:12 PM
Unknown Object (File)
Mon, Jul 20, 9:46 PM
Unknown Object (File)
Wed, Jul 15, 3:53 PM
Unknown Object (File)
Wed, Jul 15, 3:36 PM
Subscribers

Diff Detail

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

Event Timeline

bz requested review of this revision.Oct 19 2025, 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.Oct 20 2025, 5:03 AM
This revision is now accepted and ready to land.Oct 20 2025, 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.