Skip to content

Commit

Permalink
locking: don't check for __LINUX_SPINLOCK_TYPES_H on -RT archs
Browse files Browse the repository at this point in the history
Upstream uses arch_spinlock_t within spinlock_t and requests that
spinlock_types.h header file is included first.
On -RT we have the rt_mutex with its raw_lock wait_lock which needs
architectures' spinlock_types.h header file for its definition. However
we need rt_mutex first because it is used to build the spinlock_t so
that check does not work for us.
Therefore I am dropping that check.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
  • Loading branch information
Sebastian Andrzej Siewior authored and Tiejun Chen committed Feb 14, 2018
1 parent 91b5984 commit 4b8a054
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 60 deletions.
4 changes: 0 additions & 4 deletions arch/alpha/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef _ALPHA_SPINLOCK_TYPES_H
#define _ALPHA_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int lock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

#define TICKET_SHIFT 16

typedef struct {
Expand Down
4 changes: 0 additions & 4 deletions arch/arm64/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#if !defined(__LINUX_SPINLOCK_TYPES_H) && !defined(__ASM_SPINLOCK_H)
# error "please don't include this file directly"
#endif

#include <linux/types.h>

#define TICKET_SHIFT 16
Expand Down
4 changes: 0 additions & 4 deletions arch/blackfin/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

#include <asm/rwlock.h>

typedef struct {
Expand Down
4 changes: 0 additions & 4 deletions arch/hexagon/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
#ifndef _ASM_SPINLOCK_TYPES_H
#define _ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int lock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/ia64/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef _ASM_IA64_SPINLOCK_TYPES_H
#define _ASM_IA64_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int lock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/m32r/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef _ASM_M32R_SPINLOCK_TYPES_H
#define _ASM_M32R_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile int slock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/metag/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef _ASM_METAG_SPINLOCK_TYPES_H
#define _ASM_METAG_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int lock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/mn10300/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef _ASM_SPINLOCK_TYPES_H
#define _ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct arch_spinlock {
unsigned int slock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/powerpc/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef _ASM_POWERPC_SPINLOCK_TYPES_H
#define _ASM_POWERPC_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int slock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/s390/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
int lock;
} __attribute__ ((aligned (4))) arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/sh/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef __ASM_SH_SPINLOCK_TYPES_H
#define __ASM_SH_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int lock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions arch/tile/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#ifndef _ASM_TILE_SPINLOCK_TYPES_H
#define _ASM_TILE_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

#ifdef __tilegx__

/* Low 15 bits are "next"; high 15 bits are "current". */
Expand Down
4 changes: 0 additions & 4 deletions arch/xtensa/include/asm/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
volatile unsigned int slock;
} arch_spinlock_t;
Expand Down
4 changes: 0 additions & 4 deletions include/linux/spinlock_types_up.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#ifndef __LINUX_SPINLOCK_TYPES_UP_H
#define __LINUX_SPINLOCK_TYPES_UP_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

/*
* include/linux/spinlock_types_up.h - spinlock type definitions for UP
*
Expand Down

0 comments on commit 4b8a054

Please sign in to comment.