summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2017-07-12 23:04:44 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2017-07-12 23:04:44 +0000
commit82d230eee9cee5087d440ba4e672c278a0ab65fe (patch)
tree627d0c656413f5665b83fd7a692137a8106be511
parent8ca28fbdb3b68ff72fb06ca163a919f296cf8770 (diff)
linux-next-rejects
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--include/linux/ipc.h2
-rw-r--r--include/linux/sem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ipc.h b/include/linux/ipc.h
index 5591f055e13f..fadd579d577d 100644
--- a/include/linux/ipc.h
+++ b/include/linux/ipc.h
@@ -23,6 +23,6 @@ struct kern_ipc_perm {
struct rcu_head rcu;
atomic_t refcount;
-} ____cacheline_aligned_in_smp;
+} ____cacheline_aligned_in_smp __randomize_layout;
#endif /* _LINUX_IPC_H */
diff --git a/include/linux/sem.h b/include/linux/sem.h
index be5cf2ea14ad..de2deb8676bd 100644
--- a/include/linux/sem.h
+++ b/include/linux/sem.h
@@ -41,7 +41,7 @@ struct sem_array {
unsigned int use_global_lock;/* >0: global lock required */
struct sem sems[];
-};
+} __randomize_layout;
#ifdef CONFIG_SYSVIPC