/* * Copyright 2013, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #ifndef _SELFTESTS_POWERPC_UTILS_H #define _SELFTESTS_POWERPC_UTILS_H #define __cacheline_aligned __attribute__((aligned(128))) #include #include #include #include "reg.h" /* Avoid headaches with PRI?64 - just use %ll? always */ typedef unsigned long long u64; typedef signed long long s64; /* Just for familiarity */ typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; void test_harness_set_timeout(uint64_t time); int test_harness(int (test_function)(void), char *name); extern void *get_auxv_entry(int type); int pick_online_cpu(void); static inline bool have_hwcap(unsigned long ftr) { return ((unsigned long)get_auxv_entry(AT_HWCAP) & ftr) == ftr; } #ifdef AT_HWCAP2 static inline bool have_hwcap2(unsigned long ftr2) { return ((unsigned long)get_auxv_entry(AT_HWCAP2) & ftr2) == ftr2; } #else static inline bool have_hwcap2(unsigned long ftr2) { return false; } #endif /* Yes, this is evil */ #define FAIL_IF(x) \ do { \ if ((x)) { \ fprintf(stderr, \ "[FAIL] Test FAILED on line %d\n", __LINE__); \ return 1; \ } \ } while (0) /* The test harness uses this, yes it's gross */ #define MAGIC_SKIP_RETURN_VALUE 99 #define SKIP_IF(x) \ do { \ if ((x)) { \ fprintf(stderr, \ "[SKIP] Test skipped on line %d\n", __LINE__); \ return MAGIC_SKIP_RETURN_VALUE; \ } \ } while (0) #define _str(s) #s #define str(s) _str(s) /* POWER9 feature */ #ifndef PPC_FEATURE2_ARCH_3_00 #define PPC_FEATURE2_ARCH_3_00 0x00800000 #endif #endif /* _SELFTESTS_POWERPC_UTILS_H */ t/refs/?h=nds-private-remove&id=2fb78e89405f4321b86274a0c24b30896dd50529'>refslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:36:39 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:36:39 -0800
commit2fb78e89405f4321b86274a0c24b30896dd50529 (patch)
tree4de241e242441b80bd3f0022fc546bb07374571f /net/openvswitch/flow_table.c
parentdd3b9f25c867cb2507a45e436d6ede8eb08e7b05 (diff)
parentc14024dbb156c8392908aaa822097d27c6af8ec8 (diff)
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
Pull block fixes from Jens Axboe: "A set of fixes for this series. This contains: - Set of fixes for the nvme target code - A revert of patch from this merge window, causing a regression with WRITE_SAME on iSCSI targets at least. - A fix for a use-after-free in the new O_DIRECT bdev code. - Two fixes for the xen-blkfront driver" * 'for-linus' of git://git.kernel.dk/linux-block: Revert "sd: remove __data_len hack for WRITE SAME" nvme-fc: use blk_rq_nr_phys_segments nvmet-rdma: Fix missing dma sync to nvme data structures nvmet: Call fatal_error from keep-alive timout expiration nvmet: cancel fatal error and flush async work before free controller nvmet: delete controllers deletion upon subsystem release nvmet_fc: correct logic in disconnect queue LS handling block: fix use after free in __blkdev_direct_IO xen-blkfront: correct maximum segment accounting xen-blkfront: feature flags handling adjustments
Diffstat (limited to 'net/openvswitch/flow_table.c')