Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp31794ybh; Mon, 20 Jul 2020 09:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRvdVkrzAPB6fSKsdc/Wwd1U6ABQTOoPVx4G96re/XAdD03nQHmmaBFd0Ma8y0PL3+ZV+g X-Received: by 2002:a17:906:97d7:: with SMTP id ef23mr22014014ejb.450.1595262988277; Mon, 20 Jul 2020 09:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595262988; cv=none; d=google.com; s=arc-20160816; b=IfhWZzEBHGuMrlHRB/kkUJOQgHZnGg1eV4TUIzGw1cP2RBqBfUSxriR8BSsK3QgZEq 5okEDFUqQ/KQD4Lxeq8fcVfMasIBpE1EaKrS+y/3LZXamneACQNPFT3Vs+Rz1CorL5rE uia0ottgPmdgl4RU6vJ7Zh4YFrkAkkgF1FiUJ6KR67tqzGmQjcQ7JM6EyedLOjE1fT3l Wg348DfjRo+GGHYJE3m+RxaBAUxLuhhFm6atiGw6n33/PtcFcjUvBNa9xMm8ubstSXlX kkQmVAY5khOtCB/XbdQkYd+hTKF49aB9cRUTG4BxL75f1TJ2GuakmLCFoUY8Q3F0lbN4 dnhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=9sMvdfPqgkfiJMGReS66DVtI2iXr+XlSYrSm8LW2usk=; b=wssHy3qbT0zMjUiDFYogLpwnKdcXPK8/9hzmtv8xkRI7JC3PL589M4ld5imSNJ3RcZ SiisK/0OQyL6Grq9Kyuq0248Y6kC1wUJPiGu2xFhHoqsNaxtn3SlZ8akiyii+7UAu2H2 3DlnJwOdvvfpHQi2R0HoYv0Oxx63daXR/HRGP6ce+0utH/6VOt803zDZxqjwbIKV87YC RQvkuOziMjX9qwe0bUOtY6OIEfOP0OWgK7q5bAMHF1F4NGqSAwMktNVHC6504vvJvKEt +zhLCUtXKl7gzBdjK6CqicKn2L2/oConwFPNifNDSCqrQGzlnABr7pg3fWvkfhNK6exG V/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=28osquip; dkim=neutral (no key) header.i=@vger.kernel.org header.b=p1bz2hWO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b30si10888959edj.204.2020.07.20.09.36.04; Mon, 20 Jul 2020 09:36:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=28osquip; dkim=neutral (no key) header.i=@vger.kernel.org header.b=p1bz2hWO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731815AbgGTP4j (ORCPT + 99 others); Mon, 20 Jul 2020 11:56:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:58800 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731531AbgGTP4V (ORCPT ); Mon, 20 Jul 2020 11:56:21 -0400 From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595260579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9sMvdfPqgkfiJMGReS66DVtI2iXr+XlSYrSm8LW2usk=; b=28osquip+6Q7PbCFEqpoMl35F/GbwYKz30TejevbtAYTwhhEDG+9f/5tEt4f3+SQBfy2bd e8/ML7Nt0hXuIWXWzTMvy0PbGZ/I1OyF0MPCJSw2H97QK8JIZAt1kROgBqBut22Tcu/YYM nilnqPn/fgEQ+V6QeuSkW5ZdyRp2PXB8XKpZsTFK0iI52RWbba8UruyqMKPLwmGnlfOX7X TUFASJZYG8a4Tmr84lFSlKFk1jzQ13Lav0fLWtm0Nj85MoEUbQiGXY+l6wNwm4C0sy5mI1 F0st6FaRLqlL757p4Dk/szpjKnk3dlZQxZx5HwkPlw1R1jfT3JlMIndDRSV3Cw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595260579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9sMvdfPqgkfiJMGReS66DVtI2iXr+XlSYrSm8LW2usk=; b=p1bz2hWO+seggOtH06CdEzJVmBRBgK7cylyIjkZNWU//Br38Z8YBxh30MAENma7JePcVWs rc6kLF5MTzeXRcCw== To: Peter Zijlstra , Ingo Molnar , Will Deacon Cc: Thomas Gleixner , "Paul E. McKenney" , "Sebastian A. Siewior" , Steven Rostedt , LKML , "Ahmed S. Darwish" Subject: [PATCH v4 10/24] seqlock: Align multi-line macros newline escapes at 72 columns Date: Mon, 20 Jul 2020 17:55:16 +0200 Message-Id: <20200720155530.1173732-11-a.darwish@linutronix.de> In-Reply-To: <20200720155530.1173732-1-a.darwish@linutronix.de> References: <20200519214547.352050-1-a.darwish@linutronix.de> <20200720155530.1173732-1-a.darwish@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/seqlock.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h index 8c16a494c968..b48729988325 100644 --- a/include/linux/seqlock.h +++ b/include/linux/seqlock.h @@ -80,17 +80,18 @@ static inline void __seqcount_init(seqcount_t *s, const char *name, } #ifdef CONFIG_DEBUG_LOCK_ALLOC -# define SEQCOUNT_DEP_MAP_INIT(lockname) \ - .dep_map = { .name = #lockname } \ + +# define SEQCOUNT_DEP_MAP_INIT(lockname) \ + .dep_map = { .name = #lockname } /** * seqcount_init() - runtime initializer for seqcount_t * @s: Pointer to the seqcount_t instance */ -# define seqcount_init(s) \ - do { \ - static struct lock_class_key __key; \ - __seqcount_init((s), #s, &__key); \ +# define seqcount_init(s) \ + do { \ + static struct lock_class_key __key; \ + __seqcount_init((s), #s, &__key); \ } while (0) static inline void seqcount_lockdep_reader_access(const seqcount_t *s) @@ -842,20 +843,20 @@ typedef struct { spinlock_t lock; } seqlock_t; -#define __SEQLOCK_UNLOCKED(lockname) \ - { \ - .seqcount = SEQCNT_ZERO(lockname), \ - .lock = __SPIN_LOCK_UNLOCKED(lockname) \ +#define __SEQLOCK_UNLOCKED(lockname) \ + { \ + .seqcount = SEQCNT_ZERO(lockname), \ + .lock = __SPIN_LOCK_UNLOCKED(lockname) \ } /** * seqlock_init() - dynamic initializer for seqlock_t * @sl: Pointer to the seqlock_t instance */ -#define seqlock_init(sl) \ - do { \ - seqcount_init(&(sl)->seqcount); \ - spin_lock_init(&(sl)->lock); \ +#define seqlock_init(sl) \ + do { \ + seqcount_init(&(sl)->seqcount); \ + spin_lock_init(&(sl)->lock); \ } while (0) /** -- 2.20.1