]> git.ipfire.org Git - people/ms/linux.git/blobdiff - include/linux/types.h
Importing "grsecurity-3.1-3.19.2-201503201903.patch"
[people/ms/linux.git] / include / linux / types.h
index a0bb7048687f565ea959ae21fde70d2cec8282ce..f511c773c2f4948d6cfbc885e21ab69c7e091bc3 100644 (file)
@@ -177,10 +177,26 @@ typedef struct {
        int counter;
 } atomic_t;
 
+#ifdef CONFIG_PAX_REFCOUNT
+typedef struct {
+       int counter;
+} atomic_unchecked_t;
+#else
+typedef atomic_t atomic_unchecked_t;
+#endif
+
 #ifdef CONFIG_64BIT
 typedef struct {
        long counter;
 } atomic64_t;
+
+#ifdef CONFIG_PAX_REFCOUNT
+typedef struct {
+       long counter;
+} atomic64_unchecked_t;
+#else
+typedef atomic64_t atomic64_unchecked_t;
+#endif
 #endif
 
 struct list_head {