Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 54652 Build 51541: arc lint + arc unit
Event Timeline
sys/compat/linuxkpi/common/include/linux/container_of.h | ||
---|---|---|
1 | I am not sure you can do that given the majority of the file was taken from a different Copyright and Licensed file. | |
3 | _LINUXKPI_LINUX_.. | |
8 | Also please really preserve the original wrapping. In general our implementation and adjustments are older than the ones I looked up in OpenBSD so please preserve them. | |
10 | Either way you need to include something here (also for offsetoff and uintptr_t above). typeof lives in compiler.h; funny enough we have a TYPEOF_MEMBER in sys/sys/stats.h but __typeof() could just be used? |
Comment Actions
Add LINUXKPI to guard #define
Use FreeBSD container_of implementation
typeof -> __typeof
Not based on OpenBSD version now