From patchwork Tue Jun 4 20:13:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13685848 X-Patchwork-Delegate: herbert@gondor.apana.org.au Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 56E3814B06E for ; Tue, 4 Jun 2024 20:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717532080; cv=none; b=J5eTF/ezlPYidZw/jwH1rpB4jY90HbIXvDmyPQBq91PG9exQecciASSH7gdERdLUmSNJJMuQB6ent4zlQfHJWDeVRbzSAw8FM5MlY+AymT469c4iYczjZiLds7TlOy7/DTFKj+rOx7O/7UKbBnV9fyvwtl1qdlZ31p1IWU9bP2E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717532080; c=relaxed/simple; bh=U17ajrYHmKdbtsG3hqJxp6fpYyi+RunRtHPSfX9Ggrk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=C321bJP3lyPCCd+cel7FPXtoxSdATnXwGIe02TO/j+9QRe1+CEwu/0opwsAcuYdudJgjDlTwSPoqVfD02tLqVHEoXP1hZBn3hn0tLWB0tq5x+uo0QP2XIfLj4fPdHxrfdG156Oe3Gvo0IqArDybsORD0uDxDHoRfYeh7bb+NtxA= 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=t0dLhl+H; arc=none smtp.client-ip=209.85.208.53 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 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="t0dLhl+H" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-57a30b3a6cbso1878150a12.1 for ; Tue, 04 Jun 2024 13:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1717532078; x=1718136878; 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=A7GVtUk4MKIiXkiZRNH9EfUE8gMvmK5/gt2D4FPc2AY=; b=t0dLhl+HxwJSe6+RoxjPG+FqzH9eCPa+NIXlj4TcpvlQ5B5yh32WEsgtYIxfU1/hjp pfS/g9xAdGDU8vm05HOmF9tz/Z3KKXpe8+46vwCmR7LiNH133P0ksIFp6pskLe/z+Nnr O/7+h3Y5bvZZNQ8UAvDyHjrw0G6g6rZPLI+Fo37y4fxS5pAWYb79fdHDvDkpvvQTLNZv 2MY40O19rwojJ0JOipDvRg3z2cLVKsiCzY5El2GzxkHy7GGKWYDE0GKCxABghugZo3y6 hToeI9nTnFgg1OFErvUYli4f1IKxjBzOAO9+LlhQ695arl5KUcNu1QaSV3TwOhuX1+gi /ZJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717532078; x=1718136878; 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=A7GVtUk4MKIiXkiZRNH9EfUE8gMvmK5/gt2D4FPc2AY=; b=YMRUY3iU2qcERyKGsyA3eMV1aupLKMjKcLVcidcxBJdpMM5dbhqVQILz0QMk7T0XMC dsp/IrRSbVyliRZLdVWlgHCtWIaObio6DlLZEyY999qw7xkgeQXPmq+rEjNhgw1MeLyJ LmJ47xirV9XlIHwv8qnM/GcqSMM1IpvBVeu+xPyotz/VMup80yGH2eEv5M2Oy7bsO84W EGbLWOJ3UD4EJuUFel0P02zCDm44xRI5N01sheSPPbqsG4Ymtnv3Pvbqze3IwcbtKoJC hakxK1pXz9Be3Vd1PuKrkijcoDvznMve0ABihW/ff9mxeG072vEV3GF/6tsPR7Ua9Vdx feXw== X-Gm-Message-State: AOJu0YyycdiXQPwtkuXQ+QyCzveAIjaEoILVELWAHmBh1pR/pK2vcFIr Lja8T/4shG2HHCJkHA5cqXQb3LWwtRE0SGU5G0beyh3+Y2Jwx15XCJfgX3sY+X0= X-Google-Smtp-Source: AGHT+IFHFfZ1S3gZMG+FikAyDnlbofzMieBA+8KbDVzQeJM7cL8PGdpd9PZxMIBJjxiYCQulgAvObw== X-Received: by 2002:a50:d541:0:b0:57a:1c9:bf65 with SMTP id 4fb4d7f45d1cf-57a8bca02a3mr321001a12.31.1717532077500; Tue, 04 Jun 2024 13:14:37 -0700 (PDT) Received: from debian.fritz.box. (aftr-82-135-80-160.dynamic.mnet-online.de. [82.135.80.160]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a5ef86458sm4703411a12.78.2024.06.04.13.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:14:37 -0700 (PDT) From: Thorsten Blum To: dan.j.williams@intel.com, herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Thorsten Blum Subject: [RESEND PATCH] raid6test: Use str_plural() to fix Coccinelle warning Date: Tue, 4 Jun 2024 22:13:52 +0200 Message-Id: <20240604201351.257964-1-thorsten.blum@toblux.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fixes the following Coccinelle/coccicheck warning reported by string_choices.cocci: opportunity for str_plural(err) Signed-off-by: Thorsten Blum --- crypto/async_tx/raid6test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c index d3fbee1e03e5..3826ccf0b9cc 100644 --- a/crypto/async_tx/raid6test.c +++ b/crypto/async_tx/raid6test.c @@ -11,6 +11,7 @@ #include #include #include +#include #undef pr #define pr(fmt, args...) pr_info("raid6test: " fmt, ##args) @@ -228,7 +229,7 @@ static int __init raid6_test(void) pr("\n"); pr("complete (%d tests, %d failure%s)\n", - tests, err, err == 1 ? "" : "s"); + tests, err, str_plural(err)); for (i = 0; i < NDISKS+3; i++) put_page(data[i]);