Skip to content

Commit ec8702d

Browse files
a-darwishPeter Zijlstra
authored andcommitted
seqlock: Align multi-line macros newline escapes at 72 columns
Parent commit, "seqlock: Extend seqcount API with associated locks", introduced a big number of multi-line macros that are newline-escaped at 72 columns. For overall cohesion, align the earlier-existing macros similarly. Signed-off-by: Ahmed S. Darwish <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 55f3560 commit ec8702d

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

include/linux/seqlock.h

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,18 @@ static inline void __seqcount_init(seqcount_t *s, const char *name,
8080
}
8181

8282
#ifdef CONFIG_DEBUG_LOCK_ALLOC
83-
# define SEQCOUNT_DEP_MAP_INIT(lockname) \
84-
.dep_map = { .name = #lockname } \
83+
84+
# define SEQCOUNT_DEP_MAP_INIT(lockname) \
85+
.dep_map = { .name = #lockname }
8586

8687
/**
8788
* seqcount_init() - runtime initializer for seqcount_t
8889
* @s: Pointer to the seqcount_t instance
8990
*/
90-
# define seqcount_init(s) \
91-
do { \
92-
static struct lock_class_key __key; \
93-
__seqcount_init((s), #s, &__key); \
91+
# define seqcount_init(s) \
92+
do { \
93+
static struct lock_class_key __key; \
94+
__seqcount_init((s), #s, &__key); \
9495
} while (0)
9596

9697
static inline void seqcount_lockdep_reader_access(const seqcount_t *s)
@@ -842,20 +843,20 @@ typedef struct {
842843
spinlock_t lock;
843844
} seqlock_t;
844845

845-
#define __SEQLOCK_UNLOCKED(lockname) \
846-
{ \
847-
.seqcount = SEQCNT_ZERO(lockname), \
848-
.lock = __SPIN_LOCK_UNLOCKED(lockname) \
846+
#define __SEQLOCK_UNLOCKED(lockname) \
847+
{ \
848+
.seqcount = SEQCNT_ZERO(lockname), \
849+
.lock = __SPIN_LOCK_UNLOCKED(lockname) \
849850
}
850851

851852
/**
852853
* seqlock_init() - dynamic initializer for seqlock_t
853854
* @sl: Pointer to the seqlock_t instance
854855
*/
855-
#define seqlock_init(sl) \
856-
do { \
857-
seqcount_init(&(sl)->seqcount); \
858-
spin_lock_init(&(sl)->lock); \
856+
#define seqlock_init(sl) \
857+
do { \
858+
seqcount_init(&(sl)->seqcount); \
859+
spin_lock_init(&(sl)->lock); \
859860
} while (0)
860861

861862
/**

0 commit comments

Comments
 (0)