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,URIBL_BLOCKED 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 BC1E6C4338F for ; Thu, 5 Aug 2021 15:43:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A652561151 for ; Thu, 5 Aug 2021 15:43:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242646AbhHEPnh (ORCPT ); Thu, 5 Aug 2021 11:43:37 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:43820 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242394AbhHEPmB (ORCPT ); Thu, 5 Aug 2021 11:42:01 -0400 Message-ID: <20210805153954.389510254@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628178105; 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=ePGbhKE2F+pdLqGDckaId6eUuM3YumbfHtNk25es/Qs=; b=glQ7iUzGjVXUNthdl+QBsSpEQkIr0IE0so8RcsyE+tWRaw7gAlr2d4R9S9oN8ADZ4pHAHW WZYF0j9Idcs15a/92MVYApFbj6KkXa2+2nRE5QKh71rz0WVZNy2pIG9rl8ZhREyG9SMpih oi9CRet6M/bHOJ/easRw1fxaS5+pnaqu6tqTTnv1BhlYteub+dvwhAcndS6b58iRhY1r0R xzC3Szs3CGs7lLzqVPAVM8HH7x60nd4dfhyQ0fz7/EId4C8oHZQCd+tJuyiYGbyNBZqsYF A4Av1MM5CaOjFj6bZbhAeKTQG7047w9STSnvGgpaNYvaswLx4ufFInoIyHj1WQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628178105; 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=ePGbhKE2F+pdLqGDckaId6eUuM3YumbfHtNk25es/Qs=; b=aAMgMQ1+VqzCOaZ7NC6RnPu4rryJjkUhnHWgkyr2iQCMYKSXqKQIzcsHgfz8UOaDLlevr/ AuRV0J8bXOTEQpCA== Date: Thu, 05 Aug 2021 17:13:27 +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 , Mike Galbraith Subject: [patch V3 27/64] locking/rtmutex: Include only rbtree types References: <20210805151300.330412127@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(-) --- --- 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 */