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 3723CC07E9A for ; Wed, 14 Jul 2021 09:24:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0BA0C61106 for ; Wed, 14 Jul 2021 09:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238825AbhGNJ1Z (ORCPT ); Wed, 14 Jul 2021 05:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238291AbhGNJ1Y (ORCPT ); Wed, 14 Jul 2021 05:27:24 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32677C06175F for ; Wed, 14 Jul 2021 02:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=tUduBOkYiAiQvpqP+UoyvDWtfkTyBcV2MFwxlDV89tM=; b=oeSi9UyAyJEzy3vKgXOeCl8Ys9 xsuxyjVhwvewohVSIC6O0XFiDsAEI0tg66bgIV1w/RVO5eNmeB2C+s15xj0Qh8HxD3X5KKfhXStly xsALji3t7h/c3PsMZR/k37e9E0BtLO7v96nTntMukKjf9zT8ZSlaJkv0yTF0crRXjKPbkqFV9/Z/6 esx3F+g9+l3AEbK2LcVKBhWruHXShmLp8dTTk2Y3/PvosLxr7gFbCxrD7v3eak1GJCo3llPBlWC+y YJf11ecB/4R4NGsDjvRhccJFsk7iRnFLBaPqtld4TEi0eKstMO0pLS5uuYfamagR9nm7z1Jyl/LPb bS8Hw54g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3b7q-00HRRs-RY; Wed, 14 Jul 2021 09:24:19 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id B928798689D; Wed, 14 Jul 2021 11:24:16 +0200 (CEST) Date: Wed, 14 Jul 2021 11:24:16 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: LKML , Ingo Molnar , Juri Lelli , Steven Rostedt , Daniel Bristot de Oliveira , Will Deacon , Waiman Long , Boqun Feng , Sebastian Andrzej Siewior , Davidlohr Bueso , Arnaldo Carvalho de Melo Subject: Re: [patch 22/50] rbtree: Split out the rbtree type definitions Message-ID: <20210714092416.GE2725@worktop.programming.kicks-ass.net> References: <20210713151054.700719949@linutronix.de> <20210713160748.090645860@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210713160748.090645860@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 05:11:16PM +0200, Thomas Gleixner wrote: > 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. > > Split out the type definitions and move them into their own header file so > the rtmutex header can include just those. > > Signed-off-by: Sebastian Andrzej Siewior > Signed-off-by: Thomas Gleixner > --- > include/linux/rbtree.h | 30 +----------------------------- > include/linux/rbtree_types.h | 34 ++++++++++++++++++++++++++++++++++ This will mess up the tools/include/linux/ copy of these headers...