Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2165887ybv; Fri, 14 Feb 2020 12:48:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzBhy7oV08zYjoaveE53uSvXhwxWDOcI54bOWvaNSFVX8Pv724Nuz8P8fIGvi6vWQF3pInP X-Received: by 2002:aca:484a:: with SMTP id v71mr3149010oia.39.1581713333834; Fri, 14 Feb 2020 12:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581713333; cv=none; d=google.com; s=arc-20160816; b=m9MDVx18dmaX2NDpLAR5N7HiB0Btt0fZ4NyDrkn3nBy9gk6QjjZl/lmvEV5LVp/5C4 14kgChcIgGEUY5/ZgtfMHuLIQ7OLKR49BsVYLnAhOAdYWo0ndccHQr+GDA0AiYCIh5nO /Re1wXOEyKgHZph05TKs/TKxTWdBuyKsNc0PYMcWNf58Uy5rAMteL2XzdQiQNA89D5g8 RMRHu8tOmj4hc15eB1ds+DDohzjgftrmg/C12bbEY+p1xMXwu5mmmjGxeB5vq4QkPJdU pmt7+BdaJs+yBeVInCPWpARk8xG9uO0GxUYkh/K+jcU77sQP+7rqyu/ANzNmKYhlq/Ar Simg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=svWQH5bugH4rv9PdjMQlH3m1D3zp07Szx/MlMua2nmM=; b=gR/ErkI7R39ZGYGg8muVNo9Xn3v1q5gOOBVZCIGvCbSZ8ZHm6a/mV6m+iV7v3JNco2 ChYGyuGWJPD2jR3lvJP13JtVv3vbZDeq1glRpV49wXLmIY7ei6mK6+Jix+ZHSZyGnlXn n43yGyt7BuuC57tEhyryXvafX9bkNS0YcoEjeXiwzAfHvh33F1z5Bua4MdooikomYSYn TiLEybM1l2g0bXxbpUbm96nSFQ7a7nYKP/AiLyb9+p9T/KOSRAurQhMnKR18CBOgMAAg XTQyBGltC1uWzwaLvo0rfPibO0SbpSXyxAx51KecoLyluK8K2M55cnmug9DyhHBeIJ4z rJlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d25mbnej; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si3709938otq.237.2020.02.14.12.48.41; Fri, 14 Feb 2020 12:48:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d25mbnej; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730372AbgBNUsb (ORCPT + 99 others); Fri, 14 Feb 2020 15:48:31 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45121 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727742AbgBNUsb (ORCPT ); Fri, 14 Feb 2020 15:48:31 -0500 Received: by mail-wr1-f65.google.com with SMTP id g3so12445335wrs.12 for ; Fri, 14 Feb 2020 12:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=svWQH5bugH4rv9PdjMQlH3m1D3zp07Szx/MlMua2nmM=; b=d25mbnej0nI68r+3RO9No+cjoBx00ANfQLGScaYyj3YVWZ3F79gOMgGk08rVSC9fE7 ESPUdTYdMEJNdvt61a44Y795P3LdRSyM/XykVD1Czy89+5mzPj7yN+ltcZLAw7bRWAq7 hAuPGBkighdkT0lApuOkPh70R2SfBWagEyXGyE/AK85ycLlET1VLXU9sNKaSnhL8xCMU 8MFrzULLv2IyMjuPlSGNDh5nwAYQN9FdQ6XKol89BH4AQdDVQNGiPWDiq9i6usmG0IEX +a5qFJdPOxBJ5qgW3b2MVp+jJAU48XgeEnsibzeEtoi8xdC5OLlpu+twoZGAOIRsa1EM z3pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=svWQH5bugH4rv9PdjMQlH3m1D3zp07Szx/MlMua2nmM=; b=tHMtZes39WOlbUgBdHgrv3qc9WXJT3zPKW6/nNhrpGnMluOp5gEy39QUIU6yczr4iI Y8RjukiXfcPBJWTxlyH7qNT4Zs7vExWRzFwa5Qhq5vO49u4gKxNO+5gSI028ECTaYPkv PVf5rZQvN+3bZMX4C4taSL7moMOXn5PPKnpOKCqsiOAmgiz/NoBe4GfWFat3FeQUNPbK vOwt6GWvjx++zqvXXeekpt+kZJDJv5veBXwm+DdvLHQtoUTRIiMNYnsXA81I9ApUnrn7 Vocw88BfHvvKS4SoktU5feDPf95Sl2ipLcws7iGInZAfpMvavOVUzG5+hPMXeYhK92RJ VXBw== X-Gm-Message-State: APjAAAVkqxCqHvnxTOmXCWsfbzYdgBktL8x/43Kma8vElGeeVk71bAEi kzHT2yOASb3Cyke6rGTG+COF6/P7EvB+ X-Received: by 2002:a05:6000:10c:: with SMTP id o12mr5918455wrx.106.1581713308959; Fri, 14 Feb 2020 12:48:28 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id y12sm8660782wmj.6.2020.02.14.12.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2020 12:48:28 -0800 (PST) From: Jules Irenge To: linux-kernel@vger.kernel.org Cc: boqun.feng@gmail.com, Jules Irenge , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), Enrico Weigelt , Allison Randal , Greg Kroah-Hartman , Neil Horman Subject: [PATCH 02/30] x86/apic/vector: Add missing annotation to lock_vector_lock(void) Date: Fri, 14 Feb 2020 20:47:13 +0000 Message-Id: <20200214204741.94112-3-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200214204741.94112-1-jbi.octave@gmail.com> References: <0/30> <20200214204741.94112-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at unlock_vector_lock() warning: context imbalance in unlock_vector_lock() - unexpected unlock The root cause is the missing annotation at unlock_vector_lock() Add the missing __releases(&vector_lock) annotation Signed-off-by: Jules Irenge --- arch/x86/kernel/apic/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index d7556939c6cf..8ee7848a355b 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -55,7 +55,7 @@ void lock_vector_lock(void) __acquires(&vector_lock) raw_spin_lock(&vector_lock); } -void unlock_vector_lock(void) +void unlock_vector_lock(void) __releases(&vector_lock) { raw_spin_unlock(&vector_lock); } -- 2.24.1