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 BA55BC07E95 for ; Tue, 13 Jul 2021 16:13:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9FE496127C for ; Tue, 13 Jul 2021 16:13:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233612AbhGMQQr (ORCPT ); Tue, 13 Jul 2021 12:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230273AbhGMQQZ (ORCPT ); Tue, 13 Jul 2021 12:16:25 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7526CC0613EF for ; Tue, 13 Jul 2021 09:13:35 -0700 (PDT) Message-Id: <20210713160747.999380797@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1626192814; 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=ybL4eQWJRMPJIx6nf99W6RVd4rsxPXFJjQkLHNfZ2Dg=; b=0WENqb0ySiHRdf21757dgrWqV7Hv/iYCfYt6kgsKaUpS7cLAoTKrhEN1IMW6LY4U43NTEC 9MB9mGlA/PvS2oLlJtxIcN9iC0A10xNO2uq7cMMhRhRc26orDyQ6hlC0rS2CcygpfJs4hN Qpgy5t6UQcAO8xxQDWVPk+d6K1YLjJmkljNpjZBA0QKm/BYlRjhI4/lbLiDv7+WuWqzq1D IGp3iky8LBY/F7EVzBgIXAMxJFrn1umCTfWTpKkxNUjMyuLR7FqZqAFWLP5R4AM/3eI8A2 pqljVvj9u+XkyqnKBoBUzgzsvmZxia2C2uiyg3PMKdv7Rsiqlt8cuqbYmaJOHQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1626192814; 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=ybL4eQWJRMPJIx6nf99W6RVd4rsxPXFJjQkLHNfZ2Dg=; b=7DdDV1yfP7gcybMjhoX7YYwFLRpgtXPuOZaIP3hUyyaE9enO5nJ58GESDNJtiUYuQgvzoI qdlg7G5oKy+Kw7Cg== Date: Tue, 13 Jul 2021 17:11:15 +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 21/50] locking/lockdep: Reduce includes in debug_locks.h 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 The inclusion of printk.h leads to a circular dependency if spinlock_t is based on rtmutexes on RT enabled kernels. Include only atomic.h (xchg()) and cache.h (__read_mostly) which is all what debug_locks.h requires. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/debug_locks.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index edb5c186b0b7..3f49e65169c6 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h @@ -3,8 +3,7 @@ #define __LINUX_DEBUG_LOCKING_H #include -#include -#include +#include struct task_struct;