Changes in kernel/generic/include/verify.h [fc81981:09a0bd4a] in mainline
- File:
-
- 1 edited
-
kernel/generic/include/verify.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/verify.h
rfc81981 r09a0bd4a 39 39 #ifdef CONFIG_VERIFY_VCC 40 40 41 #define ATOMIC __specification_attr("atomic_inline", "") 42 43 #define READS(ptr) __specification(reads(ptr)) 44 #define WRITES(ptr) __specification(writes(ptr)) 45 #define REQUIRES(...) __specification(requires __VA_ARGS__) 46 47 #define EXTENT(ptr) \extent(ptr) 48 #define ARRAY_RANGE(ptr, nmemb) \array_range(ptr, nmemb) 49 50 #define REQUIRES_EXTENT_MUTABLE(ptr) \ 51 REQUIRES(\extent_mutable(ptr)) 52 53 #define REQUIRES_ARRAY_MUTABLE(ptr, nmemb) \ 54 REQUIRES(\mutable_array(ptr, nmemb)) 41 #define ATOMIC __spec_attr("atomic_inline", "") 42 #define REQUIRES(...) __requires(__VA_ARGS__) 55 43 56 44 #else /* CONFIG_VERIFY_VCC */ 57 45 58 46 #define ATOMIC 59 60 #define READS(ptr)61 #define WRITES(ptr)62 47 #define REQUIRES(...) 63 64 #define EXTENT(ptr)65 #define ARRAY_RANGE(ptr, nmemb)66 67 #define REQUIRES_EXTENT_MUTABLE(ptr)68 #define REQUIRES_ARRAY_MUTABLE(ptr, nmemb)69 48 70 49 #endif /* CONFIG_VERIFY_VCC */
Note:
See TracChangeset
for help on using the changeset viewer.
