Changeset 33c4f72 in mainline for kernel/generic/include/verify.h


Ignore:
Timestamp:
2010-06-25T13:38:30Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc81981
Parents:
09a0bd4a
Message:

improve annotations
move to the newest VCC syntax
use VCC specifications as a separate vcc.h header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/verify.h

    r09a0bd4a r33c4f72  
    3939#ifdef CONFIG_VERIFY_VCC
    4040
    41 #define ATOMIC         __spec_attr("atomic_inline", "")
    42 #define REQUIRES(...)  __requires(__VA_ARGS__)
     41#define ATOMIC         __specification_attr("atomic_inline", "")
     42#define READS(...)     __specification(reads(__VA_ARGS__))
     43#define WRITES(...)    __specification(writes(__VA_ARGS__))
     44#define REQUIRES(...)  __specification(requires __VA_ARGS__)
     45
     46#define REQUIRES_EXTENT_MUTABLE(...) \
     47        REQUIRES(\extent_mutable(__VA_ARGS__))
    4348
    4449#else /* CONFIG_VERIFY_VCC */
    4550
    4651#define ATOMIC
     52#define READS(...)
     53#define WRITES(...)
    4754#define REQUIRES(...)
     55
     56#define REQUIRES_EXTENT_MUTABLE(...)
    4857
    4958#endif /* CONFIG_VERIFY_VCC */
Note: See TracChangeset for help on using the changeset viewer.