Re: atomic_cmpxchg and 64-bit values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brent Casavant <bcasavan@xxxxxxx> writes:

> Is there some particular reason we need the cast to int on the
> return path for atomic_cmpxchg()?  It looks to me as if this
> macro would work equally well with an atomic_t or an atomic64_t.

No, this is won't work, atomic_cmpxchg is strictly only defined for
atomic_t.  See commit 4a6dae6d382e9edf3ff440b819e554ed706359bc.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux