Message ID | 1491860104-4103-3-git-send-email-ynorov@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0110F60231 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 10 Apr 2017 21:36:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4BB725D9E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 10 Apr 2017 21:36:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9530284CF; Mon, 10 Apr 2017 21:36:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 738A725D9E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 10 Apr 2017 21:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QfKKIT4GC8MxFIsVu2A+hQUGjSQhaAFjxw4hb1fr4sA=; b=fwSZGLDGc+OW19 rJG5pA1R76m/dsquJ0yuZXg65BZ1j3EKvQF0SzqpKwsrNKBTbQ8kU7cmYghZcDEkoeJCsKK4e8m+s wCZ49ylcYmyJ5zqS5RLz8+m674V/dRMN4+zyJQPsDVIkr2tklhQX7JGVV4QcXKp+1DTmpJ/uqLv+C Eo3t1dY15P+b+77MNqm20iFfJJfLejCPgqvamozBl1AtY/FNv8uKah/sTOTVopaZaAZ/m0o+aIYjy uFXPxRCS+LGxdAJBc2xQvV3+OTK8LElQyLbrCK8RYIINTsPuL+6ankCLH2JNYyYBf9srPDC+6eQuh bh2tZ5/HG+P/kJkrC6bQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cxgys-0003Pl-4q; Mon, 10 Apr 2017 21:36:14 +0000 Received: from mail-bn3nam01on0077.outbound.protection.outlook.com ([104.47.33.77] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cxgyY-0002lY-SG for linux-arm-kernel@lists.infradead.org; Mon, 10 Apr 2017 21:36:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YtaT9nQWmumvlkmxgNT31He+/yadwKZvAJa2TXPdLTQ=; b=bLZcQPpBVxqyqu0Lrz+D6qH7Vqyg3Oq3tCHSukIRJ6DhIArixlK+IOGBwqL/5+ThI9i0YAPdXZOpdL9FFLucroWlVAcG2kq2Idjf6fXmjEbrSBG46f/CpwQhBZySvN6R+CNWpearqoiS7NDZ0BaDSRxnnBvJMPA7mnM0LyCz4XY= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (217.118.90.188) by BN3PR0701MB1266.namprd07.prod.outlook.com (10.160.118.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Mon, 10 Apr 2017 21:35:31 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] asm-generic: don't #include <linux/atomic.h> in qspinlock_types.h Date: Tue, 11 Apr 2017 01:35:03 +0400 Message-Id: <1491860104-4103-3-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491860104-4103-1-git-send-email-ynorov@caviumnetworks.com> References: <1491860104-4103-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [217.118.90.188] X-ClientProxiedBy: DB6PR0501CA0033.eurprd05.prod.outlook.com (10.168.78.147) To BN3PR0701MB1266.namprd07.prod.outlook.com (10.160.118.140) X-MS-Office365-Filtering-Correlation-Id: 279059b2-8f44-42c0-b07d-08d480598420 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 3:Bdjel7H1mkprleTCdTQrT/Zu1FUyaaHVIkazdn2hpA0GkkgVGTv127pMuCJ3bH9WH3Av62+7+EsGEQbZ4fnCAp+rNwcVSMn+HXXShGER9u+dv9yw0H4OXLfEYfPJDL2Q/QeL3pomrRSp0id7avKxZ9/A8kDSiSqz0icavEdQI9V3J2ntNkmqV8bO2E9aCBEdlhwMlv8z9wwPv7/5CcbInTj/CaOogCeYYJbDCpcVA0yzQxD1Sw7V7BGpN3Lcjq3mbPxwbQKnVC8uFqEdDvbM1kBRhyNzuts8UoFHfEnlFllGxnYUdwoSCUK6A9u1E7YNJ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JjiU+TjJeYw9QXhFfyBQ2X6QgjU6RXBP7bcgtMzcDJszS7Xq6aMRbs1vY5FOTh7RuR9/LnGCaSLMZAylRY3d54ZKjbM0EBpPCzYSVYnyJVe+907IfEY5aKgWm66riAJiKbSpviWdlqP1EfKPaf/+oX3DZR3Q8oKz/vER/ZyZzftFShMt4mHkkYqlrakxrghqTLDkVbi3pfZSonn7scYkbEExTO6wEY2P80yKHh9Xwlvz0xfd0uDj9lkMypsb5pqr61c5rRk9BwYPQkLupQ82ld95Pdx+kHHAU9yUhfAJgwKDw4XwfRtaBA/afRnaD4QbAWkMK3iEDsqY= X-Microsoft-Antispam-PRVS: <BN3PR0701MB1266FC78B3E2609A0DBDDCC8EE010@BN3PR0701MB1266.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BN3PR0701MB1266; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 4:pKC7pmfKaXmGu3/qliaAw2LTBkKGKqV13BV52qbZzYPuEWD0wRHIzr92fEFCjrZilUhI31nCRuXsHpgz7WUjzStYpo/psMq2NAe4A/kWn050AsAUhyU5WjmZSYAYlL+PtofJTP8rqQ9mSMYB7XEV8WSY3uVuZ91T2WLWaj/t3FHWCFodSSY93aDNVzN55w3TKS5IugDlamyh5qeZeNWITg6k21lz28XFynPDb+gZoaU/KJ9KzPOlZ5Xc5fHqrNLX9QKp18ta+qXzAH7usiFTS4/03fVt0H+cgI+vmclYv95Eke1ulICEfCtZkVBwupjFi6MeEdeOYUIW5YoSGvD67DDqPFAKiyM/9mmAD3xELPhjxMoCBfwOhReLqDGvlYE6hA9TB3SnGq33XBbtwqrOcLLFdkZrqGbVl8eTeVPjwnKAL8GK9CcT9/MnIuZrz0bHK3sWuwjaxFd3Fr/Cl3j/dZa2KfAAXESx/ndsw3N0SZaxYBsBUvL0epHUlPe/ELU0bpipxxIDK2oJ81WOHy5x/ipqHqF2gjUmFYig764FWkFA17Ns+Cjdk+RFua40Sk21mzepXvPvEhcPEzC+saNqeKfEx2t1VPXpE4KihP+1g+Yyk6r92uECQzbafCUIjmEOOKd8tOr2hurwb4eADOuSt0LP99dW4Z24enS+/cHfBWhCPq+CdeMgHbojjJH2ugEoLMWSpYPbVJB9WTkLxlxQBg== X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39400400002)(39840400002)(39410400002)(39850400002)(39450400003)(5003940100001)(66066001)(189998001)(25786009)(3846002)(53936002)(42186005)(38730400002)(110136004)(107886003)(47776003)(5660300001)(4326008)(36756003)(54906002)(2950100002)(50226002)(6486002)(2906002)(8676002)(7736002)(33646002)(50466002)(48376002)(305945005)(6116002)(81166006)(76506005)(6666003)(6496005)(50986999)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1266; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1266; 23:fn8DmWDSPkCCmE7W7dy9hhqRkvmxmcCcXpue8r9?= =?us-ascii?Q?/5zeaKHejAT8vKfB2QMVgQ5CXpaeARRL05/246iAC9ysHssOU2dY4gNTRxXc?= =?us-ascii?Q?Y9W9VpdaCb4k7HcGCaFQhhG/oI4tGiyoALQRcNS4otvd7NSJ1XRfeDf8+Rge?= =?us-ascii?Q?icBs02Tozfe7eOZNFGuRKrWl/9gQK+1dZG1xT1G0fhnx7UesX2Gmp1hcURwV?= =?us-ascii?Q?zxVuBS5WxiexM4FeCyIIxXqq0noYt68FccRx4s3YjgNyS8lxMDhHcUngj0S8?= =?us-ascii?Q?li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atorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 21:35:31.8887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1266 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170410_143556_149875_755E0B5B X-CRM114-Status: UNSURE ( 7.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Arnd Bergmann <arnd@arndb.de>, Peter Zijlstra <peterz@infradead.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Yury Norov <ynorov@caviumnetworks.com>, Jan Glauber <jglauber@cavium.com>, Ingo Molnar <mingo@redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/asm-generic/qspinlock.h b/include/asm-generic/qspinlock.h index 9f0681b..5f4d42a 100644 --- a/include/asm-generic/qspinlock.h +++ b/include/asm-generic/qspinlock.h @@ -20,6 +20,7 @@ #define __ASM_GENERIC_QSPINLOCK_H #include <asm-generic/qspinlock_types.h> +#include <linux/atomic.h> /** * queued_spin_unlock_wait - wait until the _current_ lock holder releases the lock diff --git a/include/asm-generic/qspinlock_types.h b/include/asm-generic/qspinlock_types.h index 034acd0..a13cc90 100644 --- a/include/asm-generic/qspinlock_types.h +++ b/include/asm-generic/qspinlock_types.h @@ -18,15 +18,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 <linux/types.h> -#include <linux/atomic.h> -#endif typedef struct qspinlock { atomic_t val;
The "qspinlock_types.h" doesn't need linux/atomic.h directly. So because of this, and because including of it requires the protection against recursive inclusion, it looks reasonable to move the inclusion exactly where it is needed. This change affects the x86_64 arch, as the only user of qspinlocks at now. I have build-tested the change on x86_64 with CONFIG_PARAVIRT enabled and disabled. Signed-off-by: Yury Norov <ynorov@caviumnetworks.com> --- include/asm-generic/qspinlock.h | 1 + include/asm-generic/qspinlock_types.h | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-)