Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp622787pxj; Fri, 7 May 2021 16:41:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLPe4rXDij7Dd8Bo53cJhIL4/r7A9e7X3/H1h5Yz/YerVDN18iSTbdY4rljHSiWzFwth2f X-Received: by 2002:a05:6402:7c7:: with SMTP id u7mr14491657edy.2.1620430907594; Fri, 07 May 2021 16:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620430907; cv=none; d=google.com; s=arc-20160816; b=fUSiJczVjNZSWR6fHbv0Do0cFVJNFFwfNcHeyYn1B4FJ2eMYKS1jlufauZqrdryYw6 xB2x6AFZ3gr9eDnSdB2PTBXkwEp8HhqzfJgfTr/dcAlGr1G2xp0LTEeqPR5FkP0aAhYV /P7/r03A8fd1ALYFgvO2Flp85WRO6HdklBoim346lS1oOUKIkwSO4HsuO7dIvnZpEh4J hw3mcyZvKyaREjGlBCsct18J4XhfzFAMu4DfZhVIfoUFjij0CIPAopXJ7cElAZxNDzzh bne83W1aeszhGYm1oSR1tKk8ITo8n39tulyV6TRwRJSvoP8ZtCDC6mDZqNw6PnUwgpPR Ufig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2U2BWIpRIycYtZIsF2B1Z79kMbqCTRtm8heZyYE3xmI=; b=S3EUfv6vAZJfZF9u9XJFiK2OX7G+HNu3BwuTQTwpjF/AIY+gsD656mUMqcof0hkhpS mqiSDD5OLdc124+YfmyHI/8oN5amArEvK2YI+7fwvFieMhbqc3PocGrUOdY7aGTMNi9m AIKCcrHTI7ZxM4iedBv5Mfn2vyW56k8Zs6dNeFa3YGEA9eIgjt8fbb23NQ7Q6zGey4/R NCc5vQo8zMFU29YOVgfKZX5+FIsCwPxFmii5Vp87G9OdFrwZzhdywrbQDSyuFm+FTy/z R7MpiIlWj1U4mm3bJ4T/vzKht3pRKLbAlaAa8D7GnUlfMiwVkpME8HJxKTSvf9dRIv83 DlkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si5077082ejj.29.2021.05.07.16.41.24; Fri, 07 May 2021 16:41:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbhEGXlR (ORCPT + 99 others); Fri, 7 May 2021 19:41:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:47822 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbhEGXlP (ORCPT ); Fri, 7 May 2021 19:41:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 94636B03B; Fri, 7 May 2021 23:40:14 +0000 (UTC) From: Davidlohr Bueso To: a.darwish@linutronix.de Cc: bigeasy@linutronix.de, peterz@infradead.org, tglx@linutronix.de, shung-hsi.yu@suse.com, dave@stgolabs.net, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH] seqlock,lockdep: Only check for preemption_disabled in non-rt Date: Fri, 7 May 2021 16:39:51 -0700 Message-Id: <20210507233951.78950-1-dave@stgolabs.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This silences the writer hitting this nonsensical warning on PREEMPT_RT. Reported-by: Shung-Hsi Yu Signed-off-by: Davidlohr Bueso --- include/linux/seqlock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h index f61e34fbaaea..c8f9253f1a2f 100644 --- a/include/linux/seqlock.h +++ b/include/linux/seqlock.h @@ -268,7 +268,9 @@ static inline bool __seqprop_preemptible(const seqcount_t *s) static inline void __seqprop_assert(const seqcount_t *s) { +#ifndef CONFIG_PREEMPT_RT lockdep_assert_preemption_disabled(); +#endif } #define __SEQ_RT IS_ENABLED(CONFIG_PREEMPT_RT) -- 2.26.2