Skip to content

Commit

Permalink
locking/spinlock: add tabs to reduce patch size
Browse files Browse the repository at this point in the history
This also makes it more consistent to the other patch we are sending.

Signed-off-by: Miguel Ojeda <[email protected]>
  • Loading branch information
ojeda committed Aug 1, 2022
1 parent 3dd99eb commit c5ce2c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/linux/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,11 @@ static inline void __spin_lock_init(spinlock_t *lock, const char *name,
__raw_spin_lock_init(spinlock_check(lock), name, key, LD_WAIT_CONFIG);
}

# define spin_lock_init(lock) \
do { \
static struct lock_class_key __key; \
\
__spin_lock_init(lock, #lock, &__key); \
# define spin_lock_init(lock) \
do { \
static struct lock_class_key __key; \
\
__spin_lock_init(lock, #lock, &__key); \
} while (0)

#else
Expand Down

0 comments on commit c5ce2c4

Please sign in to comment.