Page MenuHomeFreeBSD

linuxkpi: atomic: Add atomic_fetch_inc
ClosedPublic

Authored by manu on Jul 26 2022, 9:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 5:49 PM
Unknown Object (File)
Sat, Jan 18, 9:26 PM
Unknown Object (File)
Fri, Jan 17, 2:47 PM
Unknown Object (File)
Mon, Jan 6, 1:06 PM
Unknown Object (File)
Dec 4 2024, 9:16 AM
Unknown Object (File)
Nov 16 2024, 11:42 PM
Unknown Object (File)
Nov 6 2024, 11:43 PM
Unknown Object (File)
Nov 4 2024, 11:34 PM

Details

Summary

Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

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

Event Timeline

manu requested review of this revision.Jul 26 2022, 9:30 AM
This revision is now accepted and ready to land.Jul 26 2022, 9:36 AM
sys/compat/linuxkpi/common/include/asm/atomic.h
58

It might be an idea to add a (int) cast for the return value or create an inline function for this, to avoid problems with clang making assumptions about the return values.

Convert to an inline function

This revision now requires review to proceed.Jul 26 2022, 3:19 PM

Extra ()'s, but else looks perfect.

This revision is now accepted and ready to land.Jul 26 2022, 3:58 PM
This revision was automatically updated to reflect the committed changes.