Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753177AbdDJVf3 (ORCPT ); Mon, 10 Apr 2017 17:35:29 -0400 Received: from mail-dm3nam03on0089.outbound.protection.outlook.com ([104.47.41.89]:38560 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752940AbdDJVf0 (ORCPT ); Mon, 10 Apr 2017 17:35:26 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=caviumnetworks.com; From: Yury Norov To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Yury Norov , Peter Zijlstra , Ingo Molnar , Arnd Bergmann , Catalin Marinas , Will Deacon , Jan Glauber 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 Content-Type: text/plain 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/53KxtPdlDm5qtZNJ8s1B3tELjeJ9SzEfAjk1SvwIceg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BRX2Tfcf8v/AIralNvFytxsTaCt3Jz6pHQ+ZSK7h010A7yYCVxzxy7t1qHk+jvqQAavjmJT4gnavnABcNPKPAVR1D4aYepgHjdOYduTVicxlyicYPQbsFlYfQNEHesN9NX1/YYf8+0LARD2YCXKlghpX/F/G2tE8WAEi2vssxzG23FTbhQj+EqxAZnABGDkYI+w3HJOhnZwaqAHGk8EMqbezPUQqcVKE3v34W9P7vtapMfp1JBgwFgVb2R3y1fYiBneFC2hGrJ8n/3WoZC6ddkaPmPCRMmR3PZQiytGswfzwUoDtrL7C/9SloX3z9WGgVVADoXlUwKa6x8C2E2Mk7LS7kroIN7osA/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?w5XEVYClb2UFCHExSt5wHXSSv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=?us-ascii?Q?Ju3h3Ar8=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1268;6:zIX99QKdh9VNU4OI8u92p0XSvHhBirJvU6q4eDSNxnYB5OtVxbJuJFyZewCJBdnHMiFOSL2/munVVgT4q85zRLN+CMsVPHNa4skoj5IjLTD+OwM43e5tvh64at2kht3SZxKLD0Flln046iWT5nKdX80R7FUXrKCcHw8kup0bGdLNGzFbYkEiEje0no5f2TjmQG1YUIT96DJgbUMB6wDjFTp/4uCB0B0ePTHrCCaQGwCaMwzADLkgNuFOfnAksE3IfBEcnHeqq1AgsxD4rvxSP2YeF6M7wo19UN+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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 24 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 /* -- 2.7.4