Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1085209ybg; Wed, 29 Jul 2020 05:34:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynVQEUyVpD48uczmpOd21DBO880VqP16BL0/kUXalVOyw3AYy+KJe3Hw2KwaJYaN42LcV0 X-Received: by 2002:a17:906:6d41:: with SMTP id a1mr10315800ejt.384.1596026040234; Wed, 29 Jul 2020 05:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596026040; cv=none; d=google.com; s=arc-20160816; b=AAYtVbIJVT/Y99CFBVClDY9bIUxVniudcK3fGZWYC500az4KUBBiuNfDDQ2ANCAuvB /ILHMtAsB0ovMxWuasoM8iAHZuqFLvqA0V++JANV7hp/j/cKbYTKPF0Z6v7ybvN7CAlS 8nziBPYZrnJCVXPcJ1PpV2oAyWYyBXIFIrD2PBvxE9nX4zSYk+g0fBU4avR6Tdem5ksW lqxaGWQGZnOzE/epiEmAV1YAM6gZu2AOeIa56GQyXc1sUJ07QdNo8B/9mlhf94aa30nf cwlHsBS+nZALMguSeO0gKu3XXbQKvJn2KrtesEeoR+qtXU4hLcvo6Zq2IxrmjCFmolDN 0/Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=y3uHf5VuQu9F9oKgSWnQA9h2ojeI5Q+FFjUciX2prh0=; b=h8o+4gibhMSaAV/qGvRW6r7BOT6QSXWwC3Sgk5VZ4a+LbESkkjqsML1arGDFCjAHSx U0DzoLXLuVO2xZsWFGZi2dzqgQtOGzj3vD2CW5jq7YqSxMPV7xfOH0IaR1kYrK5egVqR mdBjG/YqH/bbWDNheYf+wUiPW4wSCJ9YVfX8AcYqwxV5GBk46P977UruxwgGHyQvPFfT iClBowGxY2uIpCJ4/2cN2iyuQ52TIA92W/dRvVbv8x4LNim/GA3gGtKW8xxaF0vuUPO+ ri+WS57vtFjTBrATcE+gHA5Y3jXSD57QuTNhbrfoktV6YpL/6Ony/Pvikm3MTX8HfQdX 43qQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn23si422496edb.206.2020.07.29.05.33.36; Wed, 29 Jul 2020 05:34:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgG2MdZ (ORCPT + 99 others); Wed, 29 Jul 2020 08:33:25 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:60012 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgG2MdZ (ORCPT ); Wed, 29 Jul 2020 08:33:25 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1k0lGm-0000oL-A6; Wed, 29 Jul 2020 22:33:17 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 29 Jul 2020 22:33:16 +1000 Date: Wed, 29 Jul 2020 22:33:16 +1000 From: Herbert Xu To: Stephen Rothwell Cc: Petr Mladek , Linux Next Mailing List , Linux Kernel Mailing List , Sergey Senozhatsky , Andy Shevchenko , "Steven Rostedt (VMware)" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Waiman Long Subject: [PATCH 2/2] locking/qspinlock: Do not include atomic.h from qspinlock_types.h Message-ID: <20200729123316.GC7047@gondor.apana.org.au> References: <20200729210311.425d0e9b@canb.auug.org.au> <20200729114757.GA19388@gondor.apana.org.au> <20200729122807.GA7047@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200729122807.GA7047@gondor.apana.org.au> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch breaks a header loop involving qspinlock_types.h. The issue is that qspinlock_types.h includes atomic.h, which then eventually includes kernel.h which could lead back to the original file via spinlock_types.h. As ATOMIC_INIT is now defined by linux/types.h, there is no longer any need to include atomic.h from qspinlock_types.h. This also allows the CONFIG_PARAVIRT hack to be removed since it was trying to prevent exactly this loop. Signed-off-by: Herbert Xu diff --git a/include/asm-generic/qspinlock.h b/include/asm-generic/qspinlock.h index 38ca14e79a86..4fe7fd0fe834 100644 --- a/include/asm-generic/qspinlock.h +++ b/include/asm-generic/qspinlock.h @@ -11,6 +11,7 @@ #define __ASM_GENERIC_QSPINLOCK_H #include +#include #ifndef queued_spin_is_locked /** diff --git a/include/asm-generic/qspinlock_types.h b/include/asm-generic/qspinlock_types.h index 56d1309d32f8..2fd1fb89ec36 100644 --- a/include/asm-generic/qspinlock_types.h +++ b/include/asm-generic/qspinlock_types.h @@ -9,15 +9,7 @@ #ifndef __ASM_GENERIC_QSPINLOCK_TYPES_H #define __ASM_GENERIC_QSPINLOCK_TYPES_H -/* - * Including atomic.h with PARAVIRT on will cause compilation errors because - * of recursive header file incluson via paravirt_types.h. So don't include - * it if PARAVIRT is on. - */ -#ifndef CONFIG_PARAVIRT #include -#include -#endif typedef struct qspinlock { union { -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt