Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1931168lqt; Sun, 21 Apr 2024 16:18:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWF9Mb78QmEX/AH9hZg2U6hlnZMyy7nxn3olvFEWfbGqpaTltiGw92coVK2gEUWDAY2Lcd/uFwSGgS+F1bnJBlUitmdyUrgjGRWvS1Ocg== X-Google-Smtp-Source: AGHT+IHjONwIP2uxTuir5PuTHaYUmWUk7PclLuT2+34psKvt3bhBYvseKH81dn6m7TDvwuWVh4CL X-Received: by 2002:a05:6512:398c:b0:51b:2f81:7361 with SMTP id j12-20020a056512398c00b0051b2f817361mr1629300lfu.57.1713741530796; Sun, 21 Apr 2024 16:18:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713741530; cv=pass; d=google.com; s=arc-20160816; b=c8M2CLD3MEx0QeR5atmODCELvIIofpeoUw0gG2zDpe9IpTCT8t1Uhl8wOcS09NCdma w5kD23X0C4XTo8SG0XbKft8vNfxjkvhbUG8kEChxgFGxpBXaRDNhAEpRO8THism3DIaJ Z60YhPJpa/wyIZYSRBJRfQbMyWOIkZRRG69x7Q/RqNm3WrI8SZFod57OcpP1umRArG0d JFFPIFdhFtCwMosLqZUJ8xREvU6110SIthnzgG2operx7RT1xQKxq9ur5r51t4LOJWoh ozrl2GKtj0ERf06R6lW9S3xJJWbh0Rv0ONqqZndlFGSBCjEzpn9nrRgjd7hraFLFlzaw A07w== 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:from:dkim-signature; bh=PWBuK7qeNlFWu7rmYrrR+LglSXjPogokNYMEE0Z/71E=; fh=syuhxQokPucYaORj4RaHPW5RYCRW/Rys8yk8Xmj/VGA=; b=gb4jvITsfIdD2O8XbXGMlVq0YG6U81K4fFMTBTM7NgVVJ0lP3QKdW4bir8rtJ3klxo B4q9p1Tg0RsvrkhzeLakBXqPjTabXsqkBK86QnuQ9u7GgqFcXD9ngp1n24gcx7FETpL4 szsh9Gbw+FiXvoyOmo4XRjRrxZsy9JV6b3Rc60UoX1oXqZbll5nuFlm18f5w140Do/D1 5VQ6g+0T//0JWYSzd95hOso35ZDsGnRoqBO3vFGvknIlM+vGTJmYZSXbU6myXIzA1w+6 sMLZlKsvmZ9t6RoNLGrIFviJ7EZblm8q0ZaJW1+0nkrwj7L9JLZuCuPReLqZwFCHg3Rb T0cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=lDCQsaSe; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-152651-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152651-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jg25-20020a170907971900b00a52122ea65csi5399577ejc.459.2024.04.21.16.18.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 16:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152651-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=lDCQsaSe; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-152651-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152651-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 84CFF1F212F0 for ; Sun, 21 Apr 2024 23:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1042745035; Sun, 21 Apr 2024 23:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b="lDCQsaSe" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C35CC1DDE9 for ; Sun, 21 Apr 2024 23:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713741523; cv=none; b=PqBwSWVZ7SsCbud3x8+iiBOe86hAX6GfZ5R2RliQ+aFNoI6vJsDq6G3TL79fnJlisHsK+Euc/0exNIgUA69AkB//6uZU3qahJ37Y/Mywz7j/FETYlPoLWAgqO3gcuTGTcFY871cEllfUJnF/cS2Me6rn2OKr9xTlQ8m+H64m1uM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713741523; c=relaxed/simple; bh=CTyarZ1awuxFYwd99GIUJv3pxap0WzEGyctYTHZyS+8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EJc5IOAyvcS2Z7ulX5oGTW1O5fmQoTYQU6z+OxNfZ8X+RXxiZkG7my9aFGCeJu8hq7Z3uAZ8ZA8Bm3uckZqfphLF6Ff5euqbxcYxyn9VfCk9bKDS0lt/ArB8JmesbxqSNxOxyEitF/Cvd73S/IFw+ghAgIB68wEwmAlXhkvtoaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com; spf=none smtp.mailfrom=toblux.com; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b=lDCQsaSe; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=toblux.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-343c891bca5so2933835f8f.2 for ; Sun, 21 Apr 2024 16:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1713741520; x=1714346320; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PWBuK7qeNlFWu7rmYrrR+LglSXjPogokNYMEE0Z/71E=; b=lDCQsaSePfGgcNx03ffWdQJIBp36GYk8EF+iJvx3W3T0NZs1A5pAQ5HqnYsNBFHMW7 CQ3SlFROT+ehJGjU38eri2IJAJN61LxGMEl1uqZl7NkryGgcSd9R8Q6n+2G4qyRPWlWV I9MXB0st6McZGOGAOn/rzRioe29MLXHPEKFmW+eUSUQRqYzQei/dGd2LjsoVLkvD151R nmnAN3FmRQn5ZQv8y7bpWf4URd/84/isjcGVji/1Z9AGzBVimhmR6H4vroJQZ95z5etV MwDRV/lxFWVxehNT5Y2CSVKVmbvJpa3nlmdM1E/OcsTiXZ00p5smGZ356BJdpUgYEKa1 Niag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713741520; x=1714346320; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PWBuK7qeNlFWu7rmYrrR+LglSXjPogokNYMEE0Z/71E=; b=FqTV+fHMr8nnu2lPL2WUwFt3R7giQSpCeKSB15D/Pm7beFPRLvkVDpRYIr7EGMKcOy p6oUuzNh8cfZ4NV6z7xOZ1dC5sBR+HIDCeTUjpxqAwSyKJYaMrak7eZrJ1ugQ6hsP4kn 3e87IJTcpksO8fa0dhPaymsdy+V/28Iv2kXaVA5DlESPdFkQKI1zwITMx81nBmBVZrQg oRD0nkZ2cJe98FO5aZXA0nUovNPatBQHxXv61miK+ybzVeFscMJWjDUdoqg3fC3qf7Cl ZmShFtlrIwTzFAc2O69THwjgO3d1ptcmpZQ+61kPImttsN3d9uTWI5qCWplBUViA0AiF XJAQ== X-Forwarded-Encrypted: i=1; AJvYcCXO3ASM4jo8oyIb+M5sZzFqnleEeChr3s4Itqwkdo+fFdX/BYQiJER1NL8YK426CCUDqO1D8CUrAuVz1Hoyt0j5sKv3k3cakBZzgIi0 X-Gm-Message-State: AOJu0YzRGInv8iv1ajyUhHf0aCYlYZGznNWHMUUprvRHBXIC/iFUPIRe EFfqEorjAoGRZmQIwz6gpUed+ChIPB3bUKNZNpiO6s01b4mKedKEdx2PdPVX+Zc= X-Received: by 2002:adf:e3cb:0:b0:33e:7f51:c2f9 with SMTP id k11-20020adfe3cb000000b0033e7f51c2f9mr7621909wrm.49.1713741520066; Sun, 21 Apr 2024 16:18:40 -0700 (PDT) Received: from fedora.fritz.box (aftr-82-135-80-212.dynamic.mnet-online.de. [82.135.80.212]) by smtp.gmail.com with ESMTPSA id v18-20020a5d43d2000000b0034a25339e47sm9549282wrr.69.2024.04.21.16.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 16:18:39 -0700 (PDT) From: Thorsten Blum To: longman@redhat.com Cc: boqun.feng@gmail.com, linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, thorsten.blum@toblux.com, will@kernel.org Subject: [RESEND PATCH] lockdep: Use str_plural() to fix Coccinelle warning Date: Mon, 22 Apr 2024 01:17:56 +0200 Message-ID: <20240421231755.955755-2-thorsten.blum@toblux.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <9b15de60-b593-4b0c-bacc-ebe79de5d541@redhat.com> References: <9b15de60-b593-4b0c-bacc-ebe79de5d541@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fixes the following Coccinelle/coccicheck warning reported by string_choices.cocci: opportunity for str_plural(depth) Signed-off-by: Thorsten Blum Acked-by: Waiman Long --- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 151bd3de5936..31d7720c9b8d 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -786,7 +786,7 @@ static void lockdep_print_held_locks(struct task_struct *p) printk("no locks held by %s/%d.\n", p->comm, task_pid_nr(p)); else printk("%d lock%s held by %s/%d:\n", depth, - depth > 1 ? "s" : "", p->comm, task_pid_nr(p)); + str_plural(depth), p->comm, task_pid_nr(p)); /* * It's not reliable to print a task's held locks if it's not sleeping * and it's not the current task. -- 2.44.0