From patchwork Mon Apr 10 21:35:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9674311 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 6161260231 for ; Mon, 10 Apr 2017 21:35:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50FA125D9E for ; Mon, 10 Apr 2017 21:35:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4434C284CF; Mon, 10 Apr 2017 21:35:59 +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 CC4D525D9E for ; Mon, 10 Apr 2017 21:35:58 +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=w15qrMXMiM1SfcB11xjnjH/38Plg2D/ju1jw7ss+a3U=; b=shwqXo/V9+Y3Pe 6sQpLghmVHAijB+AsWmprh0xeCjw8JkWgcneAguNmQTsX0Db9VtOO6O6fG27UJ7JoQgHu9LrtSNgI R222t3NJLB5Q5QdOmapj9SCOcv7cEyQbWS25TavNOSxm1s2WYGsUr9FBpc/44FJITgRySnrwianQs AEqnBOLNKrUxXtmnys5fD67h/uB1agPWcsatrk7ZvY5lTXxDK+5Tz5EIqMVQY8JDiFP2sZIc454RB FAzjYFxg4jnpMrNdGfU1EyqEdIcbNrkMTwWQAq7/6gupMOgOCjDvuqt9CQXBVhOq97eVzfyRQQ1he SxAdhSsshf5URQWnaq/g==; 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 1cxgya-000323-Oz; Mon, 10 Apr 2017 21:35:56 +0000 Received: from mail-dm3nam03on0077.outbound.protection.outlook.com ([104.47.41.77] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cxgyS-0002kr-5q for linux-arm-kernel@lists.infradead.org; Mon, 10 Apr 2017 21:35:51 +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=SPETlbORshdRVUMtERNIvdIJ6kGSkzQk/gjo8eTFGkg=; b=CTMVsMD4S0MF2vJ33R2R7fHUFv9X2AOfn/wN0dtdh5/8XjAUrS/LCPltT6Aouqa0tq6GqLEBpWkWD6mhC/SVIeioHmVVl1IV4rf1I7ozBjZ8QZ+qlkR/Ic2C9hYOit1hyibLGFgajQoWUFjYaww5QxKiG++AxFRykAh+eipEgEU= 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 BN3PR0701MB1268.namprd07.prod.outlook.com (10.160.118.142) 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:24 +0000 From: Yury Norov To: 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: Tue, 11 Apr 2017 01:35:02 +0400 Message-Id: <1491860104-4103-2-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: AM4PR0701CA0003.eurprd07.prod.outlook.com (10.165.102.13) To BN3PR0701MB1268.namprd07.prod.outlook.com (10.160.118.142) X-MS-Office365-Filtering-Correlation-Id: 3e49291c-925d-4136-3ac5-08d480597f74 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1268; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1268; 3:PTfkNoOi9fX6wmYJ6FU1UwKf7cz/xQmIKwo11/1JCXRvFYd2bsUPUQOfcy3tS0kOu3DmoRxovaXHA+VB/BlUkgFRB/53KxtPdlDm5qtZNJ8s1B3tELjeJ9SzEfAjk1SvwIcegwqP27PeW5Xl34g77x3WsKL/oyWgyLGy0KOVM2woipxI2DPqwOmaVXT6Py+W1XYFD3zH2fJLjc7J6c8keeiq7TBTM3Gjl7O0ktUmBZMuifv5LwS/zgbPxmI0NAxbdM+bQTF3nMTwtGOqmkcBatstfkn+tvQy03NZwK2rx6OizRbFAv59B2wjEYxYQ8T/gH+q3lv9qzx5JclTQXoBMA==; 25:Vq/NShXF6CnvtxFn84RaTg6NHEm7UmQ3Q5RqY/YrUMNN/VuoSRNqeShn/oTShdStxdUd9tA6cWcT2VwNutKoSHIxMtdgppU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loX3z9WGgVVADoXlUwKa6x8C2E2Mk7LS7kroIN7osA/maWIjqq7V9fvvtPco5qkRBqyOQvkenp+oHMGTov3um5zRZQ0YiDHmYXidS25/Plw3XPiOnL97LRtRSElb+FTsCu2TtjfY2X6SeC8bqUlKaQqdcxARWkM5PAUx7UaWiTiRN0ed8hiH5YZYc5+ENA4FsFggpECOK1rWkPY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:BN3PR0701MB1268; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1268; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1268; 4:ibm1EJYIUvibszsVx8auk70zGBNABGT51V5uGzNZ4UduhvoaIMOVx0hIE0JGLkN2AYKDuYiAbl9NTvVMgiyOZHzWmzt8IcCG5Qn/R1GwQeUPxW9+MZzQeo9yBdf2wJFS+Kn87kFhFmTkeYpARC0Mrbssd13aS4JOOprhoIXbDIvJoh/j5mWRRNu/onjN4nl/yXSSMIwWpgcmr6GbhKqtNi9c3lf3BLxOU5jWpNJavpaoi6jAm1+6frCIXt+/LFCSskhqF10D4uKJbleycNLNZ5Zifg6sdgI7uhwSk47no3yZPIxsCE5gekJk8SQLxN9m56WGHw28f/gda44gCaxpzs1OI7VqCjb4lwMQAJO0Fy7cOYqFbc8zMh8OR/gbFj0G+zho4gBawXOV7VlKwXny3YX2XZzQYw+GZRhwgqk9/8dWewVaLSGjhLWSI6BZe3Q/HQdbD3FKcZlvhUuGEj0bf7Fo6VtngllZOdfBNAs3fMmXl3JrUNDeO/nrDsjjxUPzskwWsFM2LOa7NYDaFZn+O7IdstidB7eDzmkPTxUstKMKpBrAquQrAkTleZi3tfrFywAeq27gsDTMCCIFU4d2AYL23aikt/1QFefJuYO+ngaM9VAqSdzY249nYXaDfn7RsKyYNqbkBTdlKbjH4rMB+rJYQjYlQ4X5wi72tV+dJcVxTDNe6feTrU+CCe0mr8qnff+ZJfsV1aai9zHJd4m13g== X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39840400002)(39850400002)(39450400003)(39400400002)(39410400002)(6666003)(54906002)(53936002)(6496005)(6486002)(6116002)(42186005)(50986999)(76176999)(3846002)(25786009)(2950100002)(76506005)(2906002)(33646002)(189998001)(4326008)(107886003)(38730400002)(110136004)(81166006)(50226002)(5660300001)(8676002)(5003940100001)(575784001)(66066001)(36756003)(48376002)(50466002)(47776003)(305945005)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1268; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1268; 23:J6kLhBwCFypAnkhSjOiBMRXcX4FwadUq2tO8TDW?= =?us-ascii?Q?Wy6tJIw3WjLTxyT1Uy9dbpnTe+cp7hrfzB4kV9LAbU6fYcZ+lPY8HhvV7rEe?= =?us-ascii?Q?4aPQTNYrtojTs9v1o3Dwmlv5ZZWX90hck7NIVLW/koHFV018gsdBXn4epeiB?= =?us-ascii?Q?w5XEVYClb2UFCHExSt5wHXSSv66HuQgxV+d6iwrNbrJgBDgG5Fot9WFiC49P?= =?us-ascii?Q?beXxxOP0YMAyWZJS3erUKBcVGG3QdiyL7eqSttfVKHplmwkYIPWOtRZv1cDn?= =?us-ascii?Q?Q2KIuumVw0MbQ32v8ylut2vmbVm8gvGLjN+wTkqmTt3/2eJHRb5hTwrXv0Dh?= =?us-ascii?Q?g3uzaEl57dp9hogVknU6geSxRIak9J8eYabC5MBGgvFgTbCdqb6ieta4ZFZW?= =?us-ascii?Q?vDf12vAyFhrV5Gzhgad26mizPWbW5+gPdKCL3O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OfnAksE3IfBEcnHeqq1AgsxD4rvxSP2YeF6M7wo19UN+2kP58lu2uBerqkedednp8zXGIS7KRNpY7FEVqoLMOQhz9ZATfAHzUM3B8aksWLWBznuyE3EMNm5IEnIeyln1QV6B1mhhCku6X/u/kf2HFuFB44ViNnQe/OmtaLi8XJXJGuVM3pIEJv5k3KT8Kaq9dLknnL7VlG9d3kpcgT9/+nnKUWi45Pw==; 5:/tqz4fQSrDCXsRGSCYK2rf0c6wB+yHVxuHIBUpQikpHjSGNMWwRV3P3+TOOqqmJHRxowzf2csyeepp92zBSFZYiZM/cB9J17T3DQ6E4VoNVjZkBK19Vv9mwP/DXRLPnQ+9agLNouXaGDj+AMCS9dXQ==; 24:uyiPiIkR0zPtg+KXQFjHNQjMR14CdMh895EyO3AvfI5H7I+2sMxDu1bRtoymIXRJj1AXq4pOylPBziiITt7suGa82C+R/FKVvFuzMo0akTg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1268; 7:Eu8HcxxkTw4hqRznB9cB49BZUIVzi54RtJHD2TzA96hXwdVn8O56qAJ0dR4TXLv6y7pCb4ml7ZZe4VcYYwVv6qZ8r6kAXwOq3vxJh6c4fiVoVPXnB6uAgfawUYA+pxwKr9D73kbNySOFFNwr/CQ0f+K/KKbMKUvtlJp/+TAi1XH4naeqaR/iN5o66W79KjGeo8HzhWw7eEXtMHkNJNGRKuQcpaYipGrXeP15SF2XoYcNeNxXX6haZCKEXS0TF6HbWVz5c8sv2+fMB1TTUAvVCA0OndPNuuk3d+skymNFFntqJEm1uJz5p7j+KG//B8Nm7WBQzJlnOdOL57Krtr57Dw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 21:35:24.0790 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1268 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170410_143548_603911_0CDBDD8B X-CRM114-Status: UNSURE ( 7.16 ) 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: Arnd Bergmann , Peter Zijlstra , Catalin Marinas , Will Deacon , 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 cc3ed0c..6fb4292 100644 --- a/kernel/locking/qrwlock.c +++ b/kernel/locking/qrwlock.c @@ -20,6 +20,7 @@ #include #include #include +#include #include /*