Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp101412rdb; Mon, 15 Jan 2024 13:54:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt5jhXOCIjqEU1Jgb1p9QxhaLnaP2iDz6MBjQ0yb23UfjbJu338T1p9xk3LMPZ5dCdsINk X-Received: by 2002:a05:6871:89:b0:203:c872:12d with SMTP id u9-20020a056871008900b00203c872012dmr8431738oaa.73.1705355681177; Mon, 15 Jan 2024 13:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705355681; cv=none; d=google.com; s=arc-20160816; b=omr372hHOyZ0KZBHl4Qc5GrkuvlHixDtct0bpUIQdggGIRYSIRC1uZ4NyvgMetG+HU sJb7o9Wcm8nPogCMfFCFQfV1hiPnzXKLZRKfN6HEKUkX0zfPZ+W/WwHO21GVNDj1DHpw vzllYni4sH9C4IAtOxHZmilzVwAlnZyFGvNBnU1D1eL2gVQbZGuUi2KJszaNuZMhyJ7S aGqVoOcKcCDPt/uyssdDx/EMM5UShLvzeHJZix15TxqOTanJKv9mQDJM6gGQuGVQmj+o vcPJwr3vXnLMQl01WQdfXKiSX6KSapDlKb52dLCZ7lQa2FGriF6bNUCZBKP2m1LAACoF fkEQ== ARC-Message-Signature: i=1; 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:dkim-signature:date; bh=z0x0GB0Pul9J7I/1BQmRcmuBiTcTNJXeQ9oH4E0KOIY=; fh=B+Lz1HSnletVxVNPTxGKZHdTgxUrejyxi6K8rJijheU=; b=PzcwWlAlQhBRoY4HFHmSVpo4eo4nhJN2Uxzdtv3+JEKN4IHLh1IoqciNVzJucnDm2A xlv9KnqUcNn2wOxRvltPY3W4KT9otV5mLBe8oB+4vZ9e3aQiMxZD2qcKYWihuyMZdII9 MEEVx11hwQjIxUG8f4YqHOpa+rRf8E2wiciL4qAxA15LZI/dIdXXmZnL6oHek8sgG5Ij xqcYyrW4rZ5Tf1eKXq7euxMlGa2Y+rWPq25+K2oLCTBgYaHo20mg1AJZork5tVSurB6n RRw4krVc8qDjM+cDDwG+jBw1ekSBHNtvYrua1QRJngajPOo64EokLolB3seMxINzT48u klfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VCth2YlI; spf=pass (google.com: domain of linux-kernel+bounces-26513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 207-20020a6300d8000000b005cf1b38c7cesi9759860pga.732.2024.01.15.13.54.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 13:54:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VCth2YlI; spf=pass (google.com: domain of linux-kernel+bounces-26513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F1D31B22069 for ; Mon, 15 Jan 2024 21:54:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BE201B29F; Mon, 15 Jan 2024 21:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="VCth2YlI" Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 B870C1B296 for ; Mon, 15 Jan 2024 21:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Mon, 15 Jan 2024 16:54:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705355657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=z0x0GB0Pul9J7I/1BQmRcmuBiTcTNJXeQ9oH4E0KOIY=; b=VCth2YlIj2i3L7MGL9YIxztpp/byTJft+gT/yRMawu7buCw1ctT6v2B83hDxFanNg9x8ht CP2QAHVN7u19pjg1mk7EUUJq863p99lqikq07isD1q8MF+y9RA7gzo6PsFjTQQ0qMyCZB8 U1Ua5aisE6yUzBPGO35n3LHVzXazg50= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Leonardo Bras Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Marcelo Tosatti , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] spinlock: Fix failing build for PREEMPT_RT Message-ID: References: <20240115201935.2326400-1-leobras@redhat.com> 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: <20240115201935.2326400-1-leobras@redhat.com> X-Migadu-Flow: FLOW_OUT On Mon, Jan 15, 2024 at 05:19:34PM -0300, Leonardo Bras wrote: > Since 1d71b30e1f85 ("sched.h: Move (spin|rwlock)_needbreak() to > spinlock.h") build fails for PREEMPT_RT, since there is no definition > available of either spin_needbreak() and rwlock_needbreak(). > > Since it was moved on the mentioned commit, it was placed inside a > !PREEMPT_RT part of the code, making it out of reach for an RT kernel. > > Fix this by moving code it a few lines down so it can be reached by an > RT build, where it can also make use of the *_is_contended() definition > added by the spinlock_rt.h. > > Fixes: d1d71b30e1f85 ("sched.h: Move (spin|rwlock)_needbreak() to > spinlock.h") > Signed-off-by: Leonardo Bras I've picked this up - thanks!