Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp131874lqp; Thu, 4 Apr 2024 08:49:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4k67uLPb8hOg2i4lU+8FWwhCAGVHt9I4IFAhP7lYyy1nl+RcMq+Yw3r614CrmO5eP7NAyo8zZu/GocYLLfKMx/cmAevHqMNsMsKvBVQ== X-Google-Smtp-Source: AGHT+IEhxUV+k876WEO4nk5JWIRFeKHB9GUQiirOuQQ4pzn62VlJ3T4W0/JKBukKziHmmVA7N3j1 X-Received: by 2002:a05:6218:260a:b0:183:f215:6468 with SMTP id oy10-20020a056218260a00b00183f2156468mr2857372rwc.11.1712245752478; Thu, 04 Apr 2024 08:49:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712245752; cv=pass; d=google.com; s=arc-20160816; b=lMpYOtwICtREVJwAajMdjLHgRvWgNQm9Xb82uy09th40q5xPW7vzn1KVAI0GoTXSe7 JK+UgEfOcnbYUMh5WcFT+4SMcO+JMwUmLxvf6pku944EJoWXTXUw18RDz6wlyKaWeu/D wgzS5fhj+AB/uNVU1WuISZBsekzENPD/+/2OwnipuhpEzbW7UkNCTNMP5Ix3NghTRCeX Yf1uKePPNdgwTU5YnGJt4QKxlTD/j1mAFt6QBO2WQWUd4W0sis9QCbH76UK0MuSbaR28 oJNBDBuvZd3cbTzg2RVdFpfsJTSVTGvQDuU1N4UMEcZFtWz3LAoQGO/hLWIrLao2pHEL P8mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G5rrMNHSqPSBCGVZqRVmxcAnVGI/ioS1AvddD0G2MZw=; fh=jwZ6yDO3BuauHifYyeeKTwK7jQZxseV76UJ1UEOb63M=; b=RkvPIMJ3/Uf8d9TPhnTyHbQ7sYjafUwW5agKBdIspG6jbMAZE1Hwz2WJz5ia4hO/FH wtSQRrkbh8F9W7/yuYCEeNu8T2mXBIpaNNA/QQv8lPiYgzMlEFo6B2e7HOsSHL30tFyi MWuAvT9KyFAH1nK3i2Y+a51T+rsPN/P4hvB7AveR9ZOto6BKvK9AXvumu062xiHkorHw PkrrjREDH+pMSPQz3Rri6sYeBFduYZvDGk/z6cz5HL0oCoFH3uaFLWTMD/Kf3lA/H4Ze HSxVGGoZABeu+220fB/5bka0kydeA7oQR7Awn9bsh1uUVBV1tuOEV17hoHi/lxr8C13r uDNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gmcVa4LM; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-131457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131457-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z13-20020a63e10d000000b005dc529adfbdsi15832376pgh.735.2024.04.04.08.49.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:49:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gmcVa4LM; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-131457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131457-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A54A2293B3D for ; Thu, 4 Apr 2024 12:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E879E762D0; Thu, 4 Apr 2024 12:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gmcVa4LM" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21948266D4 for ; Thu, 4 Apr 2024 12:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712234776; cv=none; b=hg1UcVDBxUspwg5QVHGJdpSa5vqvI6fBskyTI8JYD/RqiubtNB38GITcgZsp7gvYek95FjOVAJRnRi5gJhzBA3F4BYwq9+vOOXAAGzjKRG0GF0P74onBhMRez0EA7M8mogLXtxkkDF2EfAZUemMQwj7JuKB1slzkqfM7tKlgk/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712234776; c=relaxed/simple; bh=OykBJ3j9tsg0Me08qK0/ZsC1FrDJFQSCCcRe95z9Qc8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PxAXq/czsCgZGGsZfP4nDXEw8y3QrY70OF/9aLKQlr/G0zL3SLsElkRt4LNweRKkwscFUge5/qtlZmvTk6ar8xXOltgGhXFJ46eHmco8bG/faMv9FRHyIckrTWBuY31Kz5UaDcp2ln5GAU7Is6ZVoMZDaKnbRr/dlR3b3vmrzQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=gmcVa4LM; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=G5rrMNHSqPSBCGVZqRVmxcAnVGI/ioS1AvddD0G2MZw=; b=gmcVa4LMBNR18w++zQMkX0DzFg aSW4E1pe4FDk8iTfq9U37ujKqA/PqHx+d6bNB6C4JuFb91V97EuguVjqcJeU/CzAegL0T5dQd7xBR M4Az3K75m5SHeKM06yvdiPkycZ2d+eOqVQfbunGyGRwyJ36Nefzd+bWxuvNMWEkieoUms1PamuxkS Ha40l67uPbR9oxIkbv3WEIM7pghfpFPgDUi53wLrhbUiQ/Z6WeUqOXpG9QXFa884mx3CftYsvQ67l YCVwfiB55ol4biMKYrRrzpF1LPcvz7Wv65C45A9Oo2J8DmVbQI1uAmGt/s0thKdEK/21wbGPcFKVs bFZNK2dg==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsMTs-000000083UM-20uf; Thu, 04 Apr 2024 12:46:12 +0000 Date: Thu, 4 Apr 2024 13:46:12 +0100 From: Matthew Wilcox To: Mike Galbraith Cc: LKML Subject: Re: [patchlet] locking: fix trivial f70405afc99b RT build breakage Message-ID: References: <68731eaeb522ced5319e3c1e45f03cdca5c8fd2a.camel@gmx.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68731eaeb522ced5319e3c1e45f03cdca5c8fd2a.camel@gmx.de> On Thu, Apr 04, 2024 at 07:02:41AM +0200, Mike Galbraith wrote: > > Two trivial RT build issues arrived along with f70405afc99b: WARN_ON() being > undefined as added to include/linux/rwbase_rt.h, and the wrong parameter (typo) > being passed to rw_base_assert_held_write(). > > Fixes: f70405afc99b ("locking: Add rwsem_assert_held() and rwsem_assert_held_write()") > Cc: Matthew Wilcox (Oracle) > Signed-off-by: Mike Galbraith Is Sebastian's patch not merged yet? https://lore.kernel.org/lkml/20240319182050.U4AzUF3I@linutronix.de/ > include/linux/rwbase_rt.h | 1 + > include/linux/rwsem.h | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > --- a/include/linux/rwbase_rt.h > +++ b/include/linux/rwbase_rt.h > @@ -4,6 +4,7 @@ > > #include > #include > +#include > > #define READER_BIAS (1U << 31) > #define WRITER_BIAS (1U << 30) > --- a/include/linux/rwsem.h > +++ b/include/linux/rwsem.h > @@ -174,7 +174,7 @@ static inline void rwsem_assert_held_nol > > static inline void rwsem_assert_held_write_nolockdep(const struct rw_semaphore *sem) > { > - rw_base_assert_held_write(sem); > + rw_base_assert_held_write(&sem->rwbase); > } > > static __always_inline int rwsem_is_contended(struct rw_semaphore *sem) >