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 0AB46C4338F for ; Sun, 15 Aug 2021 21:30:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E7B1260FD8 for ; Sun, 15 Aug 2021 21:30:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233414AbhHOVb0 (ORCPT ); Sun, 15 Aug 2021 17:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbhHOV3F (ORCPT ); Sun, 15 Aug 2021 17:29:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 729C0C06129E for ; Sun, 15 Aug 2021 14:28:19 -0700 (PDT) Message-ID: <20210815211303.484161136@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629062898; 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=x1jMXexlEPdAz0CqHsNuS5nqhi24x/wRfKCrdA19NWE=; b=NuDOfO+TDFfzwqd+CQYXW4y24ChhKpiLDRo1WmZnyE46NeaW1HAGmwxaytv2ydRDFkiLQ5 tadB/5ySeas7+4XgySoFbp19D8GCHchHciKqUsjlBMtd3IEsGiYruJtTrVGa+mmv2ZCx2w NuSuxRF54Symzj85vw9fmDmCm6Hi6Jr1iuabzPkSJlDKcmJ1IqCW+20N/BZF7sjoA36JRA PLRShDiMAV34yuupVX2HBos0bV/DzOAUJnRVbUT5GdPpSU2C6snowRxr3ir+BKWjY1dwaL oeTwUaEMFsAghHWsUtWVPk1+rlckVw0Hto9Upp5NrfikpVyvP8AlsMwxMD6ZUA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629062898; 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=x1jMXexlEPdAz0CqHsNuS5nqhi24x/wRfKCrdA19NWE=; b=wyLT+/cMTMvPusFJifCAzLE8evaxmdD0cVgqPTrPpIIkdSAU7GrWBxJLecTjnah7FHBaq8 4CViTI+1WaVhisDQ== 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 V5 27/72] locking/lockdep: Reduce includes in debug_locks.h References: <20210815203225.710392609@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-transfer-encoding: 8-bit Date: Sun, 15 Aug 2021 23:28:17 +0200 (CEST) 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(-) --- --- 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;