Skip to content

Commit

Permalink
[ARM] Add linux/compiler.h includes where required
Browse files Browse the repository at this point in the history
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: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 16, 2005
1 parent 994e128 commit 8dc39b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-arm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define __ASM_ARM_ATOMIC_H

#include <linux/config.h>
#include <linux/compiler.h>

typedef struct { volatile int counter; } atomic_t;

Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#ifdef __KERNEL__

#include <linux/compiler.h>
#include <asm/system.h>

#define smp_mb__before_clear_bit() mb()
Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#ifndef __ASM_ARM_MMU_CONTEXT_H
#define __ASM_ARM_MMU_CONTEXT_H

#include <linux/compiler.h>
#include <asm/cacheflush.h>
#include <asm/proc-fns.h>

Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#ifdef __KERNEL__

#include <linux/compiler.h>
#include <asm/fpstate.h>

#define THREAD_SIZE_ORDER 1
Expand Down

0 comments on commit 8dc39b8

Please sign in to comment.