Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1275476lqj; Mon, 3 Jun 2024 16:29:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWhSoVRiDhTs4Nyw8RnbrQp6jvzbFiyqyk28+KcFHP5hzSIzHqdS+hG6fO+vd/XHv2V1AUACSKZbjP1K2RZQXFoh88fiHzYgGWCNXvIw== X-Google-Smtp-Source: AGHT+IFO673+EGJZR+OQ5G4kTs0XQJv/fteFpLalRQlhAZmY7YEzBtDqQEvQAb8GGlqfT4bRUphM X-Received: by 2002:a05:6358:39a6:b0:199:8d7:4386 with SMTP id e5c5f4694b2df-19b490d6420mr1240443255d.31.1717457369821; Mon, 03 Jun 2024 16:29:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717457369; cv=pass; d=google.com; s=arc-20160816; b=TmS3kXIFNRDe+80VRF7ePWLRO7JWD4+pAOaVCYF9ruvEZRldpLyqGwVDFCKEFlhhuw 0UeuxZiCtAPrDsYk1oGbqu0Wqc84V5291bfCacv4y6zB4YK2APJ2tsbJqfkevcOjklOs OvpvkNFY1YQQhyP56R/FxPJmJTdo7UQ1GuACk3igO9P4yrh2BzWgnqcjmPn7WYJiW/sK HhwHiGzK330H75WrOWwHefY7Z2y9Lstg8eBctaHOZGb7ruD9jck3cUCYZsLDrTg5S2oC 3yQFx5AzO4DpET+kHwd/GSV6ErsHPojJL9RZ09P56MKnqtDNqJDdqB7hRSm95OuU7M0H iHWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:dkim-signature:dkim-signature:from; bh=zafvitEOgF5mld5sjHSWRZF0NYguns43RcruL3VlP+g=; fh=MDgMdjT6tCKnnq48mxbn/QyxMjDiRaYgvoVUNMqeQJs=; b=nf8RppT0ni0BrMqVLQk5eEv9WYK7b+PktVUZnW4fEc8nWduzW+nDdT0yj2NA4Uoz+/ Fbg49G/u2kjWDKeygtJAmEJiCJ1VPQ+QcmALCgqyX4rjU2q6KWTE2NuFYh+W42uH9QKH 8d09sPbkoLIGwsq73GPju5Rt9egXnUC3RBU4IMPtEQpfy/kq50AoiLNGQQeV2704t/oW oNyFGHJjsNzKV1S5LtR4INwTyPhGqbpePmI6YTbMGecsVN8lKP0H6Y2mbJP2pJQlZ1fk ycUeII/aIsT1Kj7iAq8qRsKlq7Ly+bTO5+M/0o/55bxje1ObunYjnZl0+fouLq5kuk5T SgPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p3b0apQe; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-199832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fb2c9si7430790a12.171.2024.06.03.16.29.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 16:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=p3b0apQe; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-199832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0578A28A00A for ; Mon, 3 Jun 2024 23:27:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0FC013FD80; Mon, 3 Jun 2024 23:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p3b0apQe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i+49gCML" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2274013D60F; Mon, 3 Jun 2024 23:25:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717457103; cv=none; b=QPmsv+Vbi/iLM1h646CdbZN9e62WoguK2tR6zFyeKVmb1HPRd4ZRvaKnSjtrh6gkWRQMoSWboiGhvHR0tjCugm0RXKzdYukzlhCEpcITTnbUJGz6hOCkHIflskLnsilSD/eQAPzURdzY0bWE8WVxqe8QqGtwi3YZI/MhjX1YbVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717457103; c=relaxed/simple; bh=pchBdNX+BmV4rvRNTuOxcexxXxAppL6xw8kp2sflklw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hB3ZWn0hI9MCbYBi6fQXwUPFtWB7jar1RI2Jxf3vx5WTRALop37acmsUMRGkL7+suUhEpcJH3yUJE4iq4cx9jyqvw3oJ3q2gc7RrEz2+WFYxQskfpwqXZzkCZNEydlzCIZYmKFZ/IOIBZT+cI5mM4QQjGhSzjS2ysptDftlJuoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=p3b0apQe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=i+49gCML; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717457099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zafvitEOgF5mld5sjHSWRZF0NYguns43RcruL3VlP+g=; b=p3b0apQet3+byj/c+ay4whwYOricKXpiRJt8AoHBquQEtVv7lnlGii6YVC9+3X3xFPGY+U xkXYpnVt6bOIEN9EgkDTB5k785x6l9+L3HrKUK0j00+1AQnRyd8OGLIEzoGqaSu8ekzeSm cnCZ+Sc/Y3MhvGc12IRWfnmPXY3rXi/0JMdcxksDht+QLiON0jn0cDSLJ1CUcLUJol3t7f 6z4kN5sl/GliKR8fpHjCeE/RKe2XEJj0lKGkv1tCPPoK0uIeSNCLG7jAoOnVU5Yrn/Pl+y SKhAo3L2/6XmeJqC39yeerAkUjBkHDbr1NSHnibzqQJuM7tnPYZCF7ZP0/GL9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717457099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zafvitEOgF5mld5sjHSWRZF0NYguns43RcruL3VlP+g=; b=i+49gCMLWrGQ2olf0QT+rdl1809ipl0Wqh/rhwHcdXXic75ST1Bx25axeY228r7T3a3WGb qGRjEMT3CvTm9OCA== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH printk v2 13/18] proc: consoles: Add notation to c_start/c_stop Date: Tue, 4 Jun 2024 01:30:48 +0206 Message-Id: <20240603232453.33992-14-john.ogness@linutronix.de> In-Reply-To: <20240603232453.33992-1-john.ogness@linutronix.de> References: <20240603232453.33992-1-john.ogness@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit fs/proc/consoles.c:78:13: warning: context imbalance in 'c_start' - wrong count at exit fs/proc/consoles.c:104:13: warning: context imbalance in 'c_stop' - unexpected unlock Signed-off-by: John Ogness --- fs/proc/consoles.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/proc/consoles.c b/fs/proc/consoles.c index e0758fe7936d..7036fdfa0bec 100644 --- a/fs/proc/consoles.c +++ b/fs/proc/consoles.c @@ -68,6 +68,7 @@ static int show_console_dev(struct seq_file *m, void *v) } static void *c_start(struct seq_file *m, loff_t *pos) + __acquires(&console_mutex) { struct console *con; loff_t off = 0; @@ -94,6 +95,7 @@ static void *c_next(struct seq_file *m, void *v, loff_t *pos) } static void c_stop(struct seq_file *m, void *v) + __releases(&console_mutex) { console_list_unlock(); } -- 2.39.2