Page MenuHomeFreeBSD

LinuxKPI: byteorder.h
ClosedPublic

Authored by bz on May 24 2021, 6:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 14 2024, 7:50 PM
Unknown Object (File)
Feb 3 2024, 7:57 PM
Unknown Object (File)
Jan 16 2024, 12:44 AM
Unknown Object (File)
Dec 20 2023, 6:53 AM
Unknown Object (File)
Dec 14 2023, 10:26 PM
Unknown Object (File)
Dec 13 2023, 4:03 AM
Unknown Object (File)
Dec 2 2023, 12:42 PM
Unknown Object (File)
Nov 30 2023, 7:04 AM

Details

Summary

Add a few more le<n>_{tp,add}_cpu*() #defines/functions found in
wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC After: 2 weeks
Reviewed by:
Differential Revision:

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39420
Build 36309: arc lint + arc unit

Event Timeline

bz requested review of this revision.May 24 2021, 6:08 PM
sys/compat/linuxkpi/common/include/asm/byteorder.h
67–69

minor pedantic point, should these sort beside their other existing names, e.g. __le16_to_cpu following le16_to_cpu?

hselasky added inline comments.
sys/compat/linuxkpi/common/include/asm/byteorder.h
120

No need for extra parenthesis here!

((x)) -> (x)

sys/compat/linuxkpi/common/include/asm/byteorder.h
67–69

Should we just add all combinations whether or not Linux does or we'll need them and be done?

Reshuffle and fill all the gaps as (partialy) suggested by @emaste
(as I understood it at least).

bz marked 2 inline comments as done.May 24 2021, 10:02 PM
This revision is now accepted and ready to land.May 25 2021, 7:40 AM
sys/compat/linuxkpi/common/include/asm/byteorder.h
49

There's a bug here. I'll fix that before committing.

This revision was automatically updated to reflect the committed changes.