Commit 8dc39b88 authored by Russell King's avatar Russell King Committed by Russell King

[ARM] Add linux/compiler.h includes where required

atomic.h, bitops.h and mmu_context.h are using likely/unlikely.
thread_info.h uses __attribute_const__.  Hence these files require
linux/compiler.h to be included.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 994e1280
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#define __ASM_ARM_ATOMIC_H #define __ASM_ARM_ATOMIC_H
#include <linux/config.h> #include <linux/config.h>
#include <linux/compiler.h>
typedef struct { volatile int counter; } atomic_t; typedef struct { volatile int counter; } atomic_t;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/compiler.h>
#include <asm/system.h> #include <asm/system.h>
#define smp_mb__before_clear_bit() mb() #define smp_mb__before_clear_bit() mb()
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#ifndef __ASM_ARM_MMU_CONTEXT_H #ifndef __ASM_ARM_MMU_CONTEXT_H
#define __ASM_ARM_MMU_CONTEXT_H #define __ASM_ARM_MMU_CONTEXT_H
#include <linux/compiler.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/proc-fns.h> #include <asm/proc-fns.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/compiler.h>
#include <asm/fpstate.h> #include <asm/fpstate.h>
#define THREAD_SIZE_ORDER 1 #define THREAD_SIZE_ORDER 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment