From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D5D9C07E96 for ; Tue, 13 Jul 2021 16:14:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 591CA611AC for ; Tue, 13 Jul 2021 16:14:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233638AbhGMQQs (ORCPT ); Tue, 13 Jul 2021 12:16:48 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:54372 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232017AbhGMQQ1 (ORCPT ); Tue, 13 Jul 2021 12:16:27 -0400 Message-Id: <20210713160748.193301909@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1626192816; 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: content-transfer-encoding:content-transfer-encoding: references:references; bh=r6+Tmh1fK+3G0fPXhZWNahGp7cta6WhkPmBzkc+Fdu0=; b=h8/No+2iiTWTGrxrpFkjHtH25eCvScxJPNbgHe4IfCsgFqxUEMdiqVT5/2g35SAA37h50Q ZczaADFP/2Adqtz4bBuKBHzeYL6gx+Ct+FeSc5euGKCE51LG3sJcSWDSf1ZHdxnu0SK6EG EiI6Zvd/qoU5N+NKDN5YIbD/29dJMwThTOTuqeb23V1CJpaM5Jx9uAsx/X7fRqqOShItcO 95MsJ4hYFznDlrdEOwLvjtylQCBLhr+fR6UBWZHdyvOAEy3o7yH9HmIYjwG/5WwQy8x+qP Dw1jL2Y3Bn2vuX+fjoNAUFBilb3nbUSW54FCAo6KGhpRqt9kXsosGcSTnq9UBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1626192816; 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: content-transfer-encoding:content-transfer-encoding: references:references; bh=r6+Tmh1fK+3G0fPXhZWNahGp7cta6WhkPmBzkc+Fdu0=; b=S41fe9bGT1/dSRzEw/yHBdDYWoCsFnonHLImMiHx53mm4WT38i6kjo1+m3ih3gwORqMHFH Yex6J71oRgR2bJAQ== Date: Tue, 13 Jul 2021 17:11:17 +0200 From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Ingo Molnar , Juri Lelli , Steven Rostedt , Daniel Bristot de Oliveira , Will Deacon , Waiman Long , Boqun Feng , Sebastian Andrzej Siewior , Davidlohr Bueso Subject: [patch 23/50] locking/rtmutex: Include only rbtree types References: <20210713151054.700719949@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-transfer-encoding: 8-bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sebastian Andrzej Siewior rtmutex.h needs the definition of struct rb_root_cached. rbtree.h includes kernel.h which includes spinlock.h. That works nicely for non-RT enabled kernels, but on RT enabled kernels spinlocks are based on rtmutexes which creates another circular header dependency as spinlocks.h will require rtmutex.h. Include rbtree_types.h instead. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/rtmutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h index 9c1c67f2d810..7bbee67720dc 100644 --- a/include/linux/rtmutex.h +++ b/include/linux/rtmutex.h @@ -14,7 +14,7 @@ #define __LINUX_RT_MUTEX_H #include -#include +#include #include extern int max_lock_depth; /* for sysctl */