mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
ringtest: test build fix
Recent changes to ptr_ring broke the ringtest which lacks a likely() stub. Fix it up. Fixes: 982fb490c298896d15e9323a882f34a57c11ff56 ("ptr_ring: support zero length ring") Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
3b2fbb3f06
commit
52012619e5
@ -13,6 +13,7 @@
|
||||
#define cache_line_size() SMP_CACHE_BYTES
|
||||
#define ____cacheline_aligned_in_smp __attribute__ ((aligned (SMP_CACHE_BYTES)))
|
||||
#define unlikely(x) (__builtin_expect(!!(x), 0))
|
||||
#define likely(x) (__builtin_expect(!!(x), 1))
|
||||
#define ALIGN(x, a) (((x) + (a) - 1) / (a) * (a))
|
||||
typedef pthread_spinlock_t spinlock_t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user