@@ -133,20 +133,20 @@ static inline void seqcount_lockdep_reader_access(const seqcount_t *s)
133
133
*/
134
134
135
135
#ifdef CONFIG_LOCKDEP
136
- #define __SEQ_LOCKDEP (expr ) expr
136
+ #define __SEQ_LOCK (expr ) expr
137
137
#else
138
- #define __SEQ_LOCKDEP (expr )
138
+ #define __SEQ_LOCK (expr )
139
139
#endif
140
140
141
141
#define SEQCOUNT_LOCKTYPE_ZERO (seq_name , assoc_lock ) { \
142
142
.seqcount = SEQCNT_ZERO(seq_name.seqcount), \
143
- __SEQ_LOCKDEP (.lock = (assoc_lock)) \
143
+ __SEQ_LOCK (.lock = (assoc_lock)) \
144
144
}
145
145
146
146
#define seqcount_locktype_init (s , assoc_lock ) \
147
147
do { \
148
148
seqcount_init(&(s)->seqcount); \
149
- __SEQ_LOCKDEP ((s)->lock = (assoc_lock)); \
149
+ __SEQ_LOCK ((s)->lock = (assoc_lock)); \
150
150
} while (0)
151
151
152
152
/**
@@ -161,7 +161,7 @@ do { \
161
161
*/
162
162
typedef struct seqcount_spinlock {
163
163
seqcount_t seqcount ;
164
- __SEQ_LOCKDEP (spinlock_t * lock );
164
+ __SEQ_LOCK (spinlock_t * lock );
165
165
} seqcount_spinlock_t ;
166
166
167
167
/**
@@ -192,7 +192,7 @@ typedef struct seqcount_spinlock {
192
192
*/
193
193
typedef struct seqcount_raw_spinlock {
194
194
seqcount_t seqcount ;
195
- __SEQ_LOCKDEP (raw_spinlock_t * lock );
195
+ __SEQ_LOCK (raw_spinlock_t * lock );
196
196
} seqcount_raw_spinlock_t ;
197
197
198
198
/**
@@ -223,7 +223,7 @@ typedef struct seqcount_raw_spinlock {
223
223
*/
224
224
typedef struct seqcount_rwlock {
225
225
seqcount_t seqcount ;
226
- __SEQ_LOCKDEP (rwlock_t * lock );
226
+ __SEQ_LOCK (rwlock_t * lock );
227
227
} seqcount_rwlock_t ;
228
228
229
229
/**
@@ -257,7 +257,7 @@ typedef struct seqcount_rwlock {
257
257
*/
258
258
typedef struct seqcount_mutex {
259
259
seqcount_t seqcount ;
260
- __SEQ_LOCKDEP (struct mutex * lock );
260
+ __SEQ_LOCK (struct mutex * lock );
261
261
} seqcount_mutex_t ;
262
262
263
263
/**
@@ -291,7 +291,7 @@ typedef struct seqcount_mutex {
291
291
*/
292
292
typedef struct seqcount_ww_mutex {
293
293
seqcount_t seqcount ;
294
- __SEQ_LOCKDEP (struct ww_mutex * lock );
294
+ __SEQ_LOCK (struct ww_mutex * lock );
295
295
} seqcount_ww_mutex_t ;
296
296
297
297
/**
@@ -329,7 +329,7 @@ __seqcount_##locktype##_preemptible(seqcount_##locktype##_t *s) \
329
329
static inline void \
330
330
__seqcount_##locktype##_assert(seqcount_##locktype##_t *s) \
331
331
{ \
332
- __SEQ_LOCKDEP (lockdep_assert_held(lockmember)); \
332
+ __SEQ_LOCK (lockdep_assert_held(lockmember)); \
333
333
}
334
334
335
335
/*
0 commit comments