Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2590279lqb; Tue, 28 May 2024 05:00:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxLREWSFNBr9fk64xqMUw/JIVMGbFa1Dy/jNmeR66Xz5So9/RIxYd4c8zbp5m9Hg0WK4UUhPFBHl0jMfspG01mVgPqaefSLRiZQv8y7A== X-Google-Smtp-Source: AGHT+IE4+jNTv1grg2il3z4mrCN6Zh1EcNl6aWhGRWsFmJuao4jAXFzwBwP/ry3E0Y9nthEmG5z3 X-Received: by 2002:a17:906:4e82:b0:a5f:ae29:6a53 with SMTP id a640c23a62f3a-a62651159dcmr715630866b.66.1716897657768; Tue, 28 May 2024 05:00:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897657; cv=pass; d=google.com; s=arc-20160816; b=0ZfSZ8APGXwqaijDXUiM4GOGxFTwwAPye6L/3n3amGmyxOqNp+toQnf81v51SYQbGF 6/8oXILtWxy1rr0ymSGiT9JKUD67g96l8jfWbH2QxKT/8h4pUdvuav1IuvxfwzT5BKj8 uTZWry26o5jjKXK49KAAtF0ZUul3vnJhQsaG6UVDx9xSI69rymoomq2/D4aRztxNYH5o 7vIpytYEQ+yG7M2levZHPZbULXkyJ6aTjH1dARty1b6A0VAfnZqDsbPG2Equl53CBGF2 ZJ9026aXc9BFiIYsiw7zYEjr9E636GqeM8JEUuhFAL7Rqj2nYW8hdBa60xuNyOFGAn1Q eNew== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=Vd47idOkVXMEAeeUtocPVrfuJGOdG0xjElnNSFv+0/A=; fh=NFpWEsTDN8+frdSPLDed1i0bgzCl9ugp5oWuqLC45oE=; b=nwKrDgqK0HHWh0cFgSOk3Niw/JJ3kiY0NMAM+sxPvPfepxHUIM7X47VY3Be4IicAW4 jrkNoZ5NirKeAi0EuWTRZGkPLuPsJcpxvQPYV5jlmS2JEZCp8tGS9u8manIeufHpOyV5 KwFVtikqXC/vs6mMxSxG0vIoz9rlvfi3byz+dDk1vPRcH399YugAzLOcjd0cMnSWbUli UMZGPLygmR78380TCJHLRe/3rb32HuKyPEUjDMpyPYqph80cighmzV1AKdf2dvrbaskJ ZqAbt6hb/r2QlIrgfpScdvlc8EJAIe47IplD5awgQVEluZ+esX/U2JmXezXZ4IprSqCT yaPg==; 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=epIAW6la; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-192241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192241-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc6432dsi498878466b.494.2024.05.28.05.00.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=epIAW6la; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-192241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192241-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 6D4801F24472 for ; Tue, 28 May 2024 12:00:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75E7716D4C8; Tue, 28 May 2024 12:00:36 +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="epIAW6la" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 F2DAB16D32E for ; Tue, 28 May 2024 12:00:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897635; cv=none; b=BwpwY2Bkp/TdEdVzKsAaSy7hXJxMklDCgne0qiS9pzL09PtMn1i9ep3QTLnYJYduUIiJ/2maPksWhI2bt14sZ7lgWa4cKYzFSLtCNS8ifR9o/myHKSx43SgbKedyW0mjY8JcUynRtDV2dF8tyjjwStdMLZfOOX/Brb5IgTy6PFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897635; c=relaxed/simple; bh=r2qGhKgIPxmZe1bCE3EZ7bsyWeKHkaPXMLK/hUlbeWE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PV3RA1Rr6rP6GU3BEpASZ69r174fLTYprgloySdQ9zNuAyX/+ZtRA8Sznz4KvZ1Pc2txcrPCI0gT+k8pc/Lkv5QNi4UgQwd/+IXsHN4a/+YM8rKP2reB5BqqJ3FFgGUpYfzG4Rhmz1SLKsYgj1sn91urEZgJlUSSxRK0uAENx3Q= 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=epIAW6la; arc=none smtp.client-ip=209.85.218.43 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-ej1-f43.google.com with SMTP id a640c23a62f3a-a626776cc50so84190066b.3 for ; Tue, 28 May 2024 05:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1716897632; x=1717502432; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Vd47idOkVXMEAeeUtocPVrfuJGOdG0xjElnNSFv+0/A=; b=epIAW6la0hQFqVdFHL7npFAImvZ6vijzR0p8KTPD3pmydhe3dMT5Wliwt3R0FMfkit gXxJa9uolvRsPASL5O+3PTrF5CTezDlqu4sMhF2FhjIJlBXz1yUGP8ws9eQ74q/xSYrV 8so0khWokUK9IAY6D4kok4ffDX6YBMDPbhAgF4QHE2vvFe0eGybMf3CgOziI4ZY5VLgQ ifKoJAw5it0JChWQr4AnUa3ITPQQ2NuIAVhC0Ao4OouEKuOb7lNad583FYa58acIaZnp Y8qD5ghcm6Drr/QwerzBpZ5PX1dJ6QLpqlX+JITCSICL5TKLs+Xzjr6sgWxJDU4vrIrt a65Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716897632; x=1717502432; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Vd47idOkVXMEAeeUtocPVrfuJGOdG0xjElnNSFv+0/A=; b=C6YqBv6/HBjwxPpXmjqeyJT9nHdCLQBgg4BEDWfE3eMMnDx3XowJbQ62doQbuDxOtu JH7uHHGW2f+o84LaDVtJDLe2UVW9ZISDqQiy/dKeVZwA90DCWm+cxvKCNAPw0Ru+7Xa7 M8QPlBKdrU4vOtStr0T+jumT2AS8vA5xqYPA3iT5X04ED2ZnkvKRZ/xq7owiWujLCMNM E4ou9IX/aevk55hDd5LXr8bHLpHlpzuqzs8cLS3J8jdO9frtYblB/6aHJW4YyCWVSJdH 8XvVb8WLhYv4+bkmgOhQuxPDNWSqNutM3+0m3HMOhwFRaMNfa5ontFERXjNxpTHWxerw Nyig== X-Gm-Message-State: AOJu0YyomJhcDi5e/Jt2EgeTKFpGEJ5Rzev0+6tU818ufEuFvE7Gw9jQ I8jBiX9rQQM6hvv8V1zO91OEO/mQz/tWIRHV1wO9brNeNL8yx5Og8E1/tMh7JyM= X-Received: by 2002:a17:906:fe06:b0:a5c:d67a:e8ef with SMTP id a640c23a62f3a-a62642d49bdmr1033839966b.31.1716897632047; Tue, 28 May 2024 05:00:32 -0700 (PDT) Received: from fedora.fritz.box (aftr-62-216-208-100.dynamic.mnet-online.de. [62.216.208.100]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a63534935f9sm27970566b.146.2024.05.28.05.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:00:31 -0700 (PDT) From: Thorsten Blum To: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Cc: linux-kernel@vger.kernel.org, Thorsten Blum Subject: [RESEND PATCH] lockdep: Use str_plural() to fix Coccinelle warning Date: Tue, 28 May 2024 14:00:09 +0200 Message-ID: <20240528120008.403511-2-thorsten.blum@toblux.com> X-Mailer: git-send-email 2.45.1 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) Acked-by: Waiman Long Signed-off-by: Thorsten Blum --- 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.45.1