From patchwork Wed May 3 14:51:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9709945 Return-Path: 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 76BE660362 for ; Wed, 3 May 2017 14:53:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 677A028557 for ; Wed, 3 May 2017 14:53:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A4A92863E; Wed, 3 May 2017 14:53:08 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham 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 CEB8628631 for ; Wed, 3 May 2017 14:53:07 +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=R4AD4qYCWTSTlacaynG3xGQqbfVAus9k6FoZxsmJqdA=; b=SWUBrEOv8xr6qk dc0HDN45A2a2TdkKmuN7LJlzHbmVz1eP7DrqaW2RG01tqdMdytgv27hUbNF7W6Nfv9py3X1PRvchR ddSM2vyYnRa3ikdivNaW+DhYUBgunM5j5Ee5R2hgjeOEDxJ3CDjxjY7t5ngq8eMw7gu3BM1sl5MEJ KmJ7iuklAjn6UYBfWyfiLau/oAubpffQcPoYIu/tOAO18ACoEP/CIIalwbjbr7zohM/esQw4ZfBJ6 7t8eE8yrR+aBI6hPqW15LfKgcbXse9JlR8dP8QLqCqvULia9sP1VbaOIqE5pH5qsRlDTQqM8DIIHu /m49nGpOLyknGsO0ETPw==; 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 1d5veN-0002J1-2r; Wed, 03 May 2017 14:53:07 +0000 Received: from mail-sn1nam02on0051.outbound.protection.outlook.com ([104.47.36.51] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5veK-0002FA-4U for linux-arm-kernel@lists.infradead.org; Wed, 03 May 2017 14:53:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=u5DAdcV8AKIdxGcyvkSdh3y291+i94LKJXVAGREvzig=; b=XxEnOK+JvCtnwhzixKOuQ5VsmUHs/Kg9u5aIW6lRRtDgwafIdcFuraxcMaTnjeLR7EU3UjkaIQ06yKjJnO0aHhDJvrImrVVJ+yZMaSe7SHV2hKgZJDgOEx+LsafjWD0hcGuqIpwHQZ8YxHKIE0Nh6e26a7eRXiu7FrmPsoJxgKU= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (176.59.53.57) by BY1PR0701MB1269.namprd07.prod.outlook.com (10.160.108.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Wed, 3 May 2017 14:52:39 +0000 From: Yury Norov To: Will Deacon , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] kernel/locking: #include in qrwlock.c Date: Wed, 3 May 2017 17:51:39 +0300 Message-Id: <20170503145141.4966-2-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170503145141.4966-1-ynorov@caviumnetworks.com> References: <20170503145141.4966-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.53.57] X-ClientProxiedBy: VI1PR0602CA0024.eurprd06.prod.outlook.com (10.175.26.162) To BY1PR0701MB1269.namprd07.prod.outlook.com (10.160.108.156) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea7cd74f-63ea-43b9-679f-08d492340bac X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1269; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1269; 3:u148ccG1MUs3i1fmLtln6+tEEzERPFw5Q7sp+BQ2J5RAy03d6FtF6J/zjHvuW8blX6Oix9q2UJ8vx/FaywCxURM46QmI8jbZBZwowuI96rwX/zSpUCbk9Swt/bMc4YHg/SpPgwL6YEQgZJw7Q25Ggdk/1tpSIRsvU8Te6JRQYgyejK4g7cYZWnB81vSU8kY1T9/631Bp9jpSes4p7VMnBDjLnzPacgwCL9Cc+MKNCgIYqQY0/l4+O2uePRY2LW0wo4UqC0sm8IXZYpxsGM7pdRvktwWEZvfrzTTxkC/PUlrkASQwrzv9gdjQvn3BeYQjcRW0uy8chf6eBBbTc2gLvA==; 25:/+LL8K6iKpjAAOOt2LWyyv79cZcWA+7YlghRGYHZyuJGWzsrNz+pJfMzWjCXD+SaPFkUdMO2YcPgAsUKewLuWa6lvuhOJKMm3MHeujKoeMWZNI40jCQqejmq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nt0D9tjehGr2PAV+NODJ2vDmsNzzv56TRDKtfiJO/Td54rhGMyyoHlKTqDAXgc49/7xDhxyhW7yT+ZMwmLRKrTbVGy0zLkRARMWVhNstoZH2Ee9lYeE4cCHxnuG/u9QcwkJ2s+oBrMg0bq2ZbbLJqrjlJjFqqJu+0MHnIoVub9cGvQNhzU6W/UCxxECG9+jIYgAOxSkts= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(6041248)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:BY1PR0701MB1269; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1269; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1269; 4:oowKVbfsHsCuZnc/Vtvx7neW58QcKAhQHEfVKS2F/TV8feJH6femem7/K/JlKPgugjeO3622gGxLSVuwNRjKHD26OqJ4w6PH4Ikztyzc521K3qDhuqf+WUJ8sz8p+HJtkiM1SlhNudsCZfa2ye8HOTk+4pLWvu/eB+TrTryTVVUiVD29kNSXLtg/uKKtQ9hWyPKM+eUH9opToCvGHpqyVRhR+f5CyM4hUwvFlUMrsbObG9tvcLLOgwGKHFXy1MifBefT4hVRXf4qu+AY2R4sWpR7kZUR8hJpda095QVns61g6gUaos3NY6wpHki99gWgAw6dD3baryK0FUy8WmaVwL4XUH3VWkPcbQODo8ffDyfmBcrS/TsqtgjTgObo18ZoWwYE0qYTf1Hj9+krwzR7MgvtutkCShSR/nC/osy+hVKQheHbOWjh/qHWN3qp1NGbgGS2/MdpFHc6+QVn8fEvlnnOrgvdT9vGMVVFGMH8jbTNlKun6KPbyCT/wPh+WT8xg3+EWbdHXsk1oJahanvAKURaguGgRiQHQxkBROz5b48OMX1Tkunn/Ur1Ps5K5k2R7t8Q8Eq5h+NFFXz1QcWub+acvKomAXBymDQ5i4BhlcTp6jEhKlW+XpuswqdlqbEVVvWCPFNPqL6wPqDzGNKOQ8a59NtKt/PpKzd1pM/WN7Qn3Buxzl7BjimhdAJp4hH4lWz2zLt28bmHfd8sfQuO0QgI3Dcvu31spKPgrjkueC8AyBFoDUTi1M/T+72xKDACMd8B3Y79t953rydQIIA9zw== X-Forefront-PRVS: 029651C7A1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39840400002)(39850400002)(39450400003)(39400400002)(36756003)(2906002)(54906002)(575784001)(53936002)(47776003)(2950100002)(42882006)(6116002)(7416002)(48376002)(305945005)(1076002)(5003940100001)(33646002)(5660300001)(50466002)(6486002)(7736002)(42186005)(3846002)(81166006)(8676002)(66066001)(38730400002)(4326008)(6496005)(25786009)(50986999)(478600001)(76176999)(189998001)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1269; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1269; 23:Mls1k5vUUhNCiwivS40qkkjrE/RizDB3zenty3v?= =?us-ascii?Q?tnSWXPpBAZTGD6q2dEOAseMLDE/aBrnV0S4yaTq6aje+O5AqZapCknL4/FKD?= =?us-ascii?Q?U1TiSTbuwx6vu5Vp+q8H5y4qz1BxkbFKjui2gZR4JRUEDYOZC5GyfEPB5zVg?= =?us-ascii?Q?FicknlTewzAOqf9PFfcfdr7oCNbsDi5eLvtFiuhHqMhXKDk6jnzI6aCenwTZ?= =?us-ascii?Q?4x8tjEsvsoZltAtv9WzFVEmf2yix8B7jIPQM5W/ifwrr72RbPLPMa/bqMNLx?= =?us-ascii?Q?3PkMCJLjoG+800pIIe2tkTyDN5yUb+UPLpoJgyDJf5Sx86uMrnL2zgeDx6yL?= =?us-ascii?Q?BmaFMnJa+7IJTbP5dTHe1ljT23omTwCpO1OyN+VELNNb5k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C+mh0fl0IrddvUOv8/TNNT+WJjUb01nwvy5ii1by+wjM9X+G2RU5Bq/fxcMFATqRFXWTCjx9gEGDo7rYOh92idL+oTe2I9gEBXrDq0q2P/j3MGvqxhmXf0AOFEFt8iWBsrXHAw4FuSahuqvidk7IoQxUM5e6KTl5SIeKZD49okJSsCpjpjKG5CmEotDnJWnffBFDIx688TXeQa8tVPye0G48O+DsXlxpfVQSdDe5XTQSXrvB+TU+tr4DiSaUduqa84BOxLPx8VbDWzRjG2HxwdJZpKhZ3kXz7ZKxjE98SsS7R71Aag8Fc33k4jVQQ==; 5:c8Nlmpq6p22vKsqy+TV1GzcxYFXTrCOyCKZusJIX8TAuvSNDZw+NnynSO6CKbZFyEnhEM9NRy3bsKefoBkOfhoBLvN++qEI6rlspDbNf4Zv/Y3R3V2WHfYEmpEZ7GMscFZDClQFRGxV7zlUN1Wtifw==; 24:YtQFlpkL+xLeNzSkQOyvDD3YsJPWPvIN42S1ic0Yhfx0JEaK795O5YicTdmHeVClL4LE2CLdaYvCnTeH9zc3n77325su1CGsUsHSiDNDeWU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1269; 7:7DGV6TyvvLi0DOk+EyMH9kW5/98zgfHY9dnJsFq/Hmfbh5s6kihtSkAH+NxF/gTFBxQAGMh9fCbF+3JElClFVzVDWGSCVRDsg6njbxEOYIKsPvjV8B0hQN8jVtTv/hUNy7jGtYhbo1iUIkylOXAqs8c+tY/esz71NL+wkCZZ5ZKBNfwV2yDb5vScvns+BXhhTqiFRAB4cNVEh6L9QJRbvW2+f07u45UPRwzJvUouYFQfmTobk6gv4FtnMpNsC7RwU/b92UXApJOiFXru0MFKYdGwrHGI84X6kV1K7wC8jgGNyMSOgL2JNdW4jwq2OYttXKA7dc76vP21ZN5Ew7u1mQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2017 14:52:39.2260 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1269 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170503_075304_278634_01C1D68E X-CRM114-Status: UNSURE ( 7.81 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Pinski , Pan Xinhui , Arnd Bergmann , Catalin Marinas , Adam Wallis , Yury Norov , Jan Glauber , Ingo Molnar Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP qrwlock.c calls arch_spin_lock() and arch_spin_unlock() but doesn't include the asm/spinlock.h, where those functions are defined. It may produce "implicit declaration of function" errors. This patch fixes it. Signed-off-by: Yury Norov --- kernel/locking/qrwlock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/locking/qrwlock.c b/kernel/locking/qrwlock.c index cc3ed0ccdfa2..6fb42925b201 100644 --- a/kernel/locking/qrwlock.c +++ b/kernel/locking/qrwlock.c @@ -20,6 +20,7 @@ #include #include #include +#include #include /*