Message ID | 20240208084512.3803250-2-lee@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-57647-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp29384dyd; Thu, 8 Feb 2024 00:48:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0aHHzvGSmqyWgFP/xZXw0k88nFrZTqyBPZGDh5bLcIbu2JpZCEivWAC4WIEzjkUH0xi00 X-Received: by 2002:a81:7604:0:b0:604:175d:734c with SMTP id r4-20020a817604000000b00604175d734cmr7772003ywc.9.1707382084853; Thu, 08 Feb 2024 00:48:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707382084; cv=pass; d=google.com; s=arc-20160816; b=NHElLwvimXjb11kckWHa9qe5xhOtuhXBRmIWfFCySts9PS+Pv/k9/4jD7Eq/6eZ3NX EC2CLaWjZOcVux2P4uYbwlPc7rDX14T6n+Q+c1oTbyd9nTYgNiEMvqdYMN5ECcwn+9Pj MdxiPxfmLtLL5+KHezneyU/xMhoegl9dn95822I9Dye4yF52LytqO8FsGLDp4MMaqaIF YE9vc02Coxquzrznm5dZkJdp8tBHvufSolvzEZqjX47ttN8nUnm308ByNoLmDyjuP9Ol bN/5KdPy4xNNMlAPsoYp9tEc4WSXQmrovYGHtpNq0DdU/Kcw+yFzwEsevZdjgRzd7C25 Zb7w== 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=vZnYln2f9Jr5Go51fq1pQjBRVBd+l+TYTcdqcPD19Fg=; fh=LPv8QpWX+qh1umJcD6gOvPu7OaUjtzW+N6oxIDolJ8M=; b=C0vYuXMYddyA/OsMj0cJHcUBpjeJQbi98JsILiZF80CGoXWhBvtab0/s+HKg8eYqiz s9lEwl6qGkCn9vz0JSULuHaDh64LpFJSqZni10w042PktFGx18e1uFi0mJJ6TWA6efrw pFjX2Zb+kY6VYyfqc+ml3o3UEvATwFTF5SmL8M1Ch+BBVKTqLcGJViSj2zNN4++kTE+n wjMe83SUrh14HVRNnzkKOq9eIxMlbmnVSvieODbIWx/VxqYcqhZKmXqeAPldgYswmpVU AIQQ7Bfel956cneWV+f0LgbANbRHiLxssg6ZgN/gJVdtqd0JeZme70woXibMOEiqAx72 fvCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KU3PEYfL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCV9FLbhaqTy8LHklcPo9p2SBOqJElVvt2UwWRkpZ5lDmjWxf9Yl2BlgAtkaRZE3QEJwblaH3xkzMKuK3dTxUTa0PJQxvA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g14-20020ac8480e000000b0042c40ef044csi2487019qtq.808.2024.02.08.00.48.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 00:48:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KU3PEYfL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9ED2F1C24DB3 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 08:48:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B10826DCEA; Thu, 8 Feb 2024 08:45:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KU3PEYfL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C02CC6BFD4; Thu, 8 Feb 2024 08:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381924; cv=none; b=JmzeBzGis5wlIITSZ5K6Z6J2Gv7NOhObLPPd5hiKKpLUv3rzKjm7KDse/vIU6nvakgKa4ZEoMCyiWLKOBMmJ2JhGISEr3jVufmdZoeI2ucn2x1KB7iJi1gRvtTwiQuyCXJG8g0fvDvtQyVkOOU+xNBQj38tBatTs3s3we/zqxp4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381924; c=relaxed/simple; bh=wv1edZDay1984m0Qu877d4pMp2VycX7eTW+TWnSEgGQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=liiQnLPXN9ko834KsN6N1YGPOCWVBHCbEiFzGawf2aTbK4ps9TK4P0+jYmoZqcER6hARLjvJo0Ls7Aa2NmIPEhTqX1/Wis4ED3jaUb7JvKonklqrrRLeSk9ocLSKbVfjCnkRX3YpT4y7m9r7OrlUgbxgFVmPbRrYQWO6XbfJOyY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KU3PEYfL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A033BC433F1; Thu, 8 Feb 2024 08:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707381923; bh=wv1edZDay1984m0Qu877d4pMp2VycX7eTW+TWnSEgGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KU3PEYfLT6P4J4Z+OLwcXn2yaoKj9oYGZt/jp0y6WWO8GaVbkWKi3tykEDq7QtCPC jlsBBIPRRHQHaZ1E1EkEsy51RAFNNuuY+NPszom6UcRh30mblvuBOgH9aoSgeK9P4v KzPpm0ApERis84nYdrb/0rI5ASwBIKDrxNpCf5pGtMp9qcBVgXYXRiF+DCK4zo6yjq cNyOveBeuFvaXZGwbzKDZHTFHkDPeXrGuLZfKz3Nks1XvKAmRFiiuSJT6L8O7eapPB D1yfoYzw2DgSfYelyXJjm46z6ehLXMNmW7EUAml+pHfg3PgZWQ3vzDcCGYDpl2RJlQ 2nGJSsnDocs7w== From: Lee Jones <lee@kernel.org> To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Adam Radford <aradford@gmail.com>, Joel Jacobson <linux@3ware.com>, de Melo <acme@conectiva.com.br>, Andre Hedrick <andre@suse.com> Subject: [PATCH 01/10] scsi: 3w-xxxx: Trivial: Remove trailing whitespace Date: Thu, 8 Feb 2024 08:44:13 +0000 Message-ID: <20240208084512.3803250-2-lee@kernel.org> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog In-Reply-To: <20240208084512.3803250-1-lee@kernel.org> References: <20240208084512.3803250-1-lee@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790319876772099412 X-GMAIL-MSGID: 1790319876772099412 |
Series |
scsi: Replace {v}snprintf() variants with safer alternatives
|
|
Commit Message
Lee Jones
Feb. 8, 2024, 8:44 a.m. UTC
Since 5a602de99797b ("Add .editorconfig file for basic formatting") my
editor has been forced to remove trailing whitespace from any file it
saves. Instead of fighting this recent kernel default, let's start
chipping away at fixing the issues.
Signed-off-by: Lee Jones <lee@kernel.org>
---
Cc: Adam Radford <aradford@gmail.com>
Cc: Joel Jacobson <linux@3ware.com>
Cc: de Melo <acme@conectiva.com.br>
Cc: Andre Hedrick <andre@suse.com>
---
drivers/scsi/3w-xxxx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Feb 08, 2024 at 08:44:13AM +0000, Lee Jones wrote: > Since 5a602de99797b ("Add .editorconfig file for basic formatting") my > editor has been forced to remove trailing whitespace from any file it > saves. Instead of fighting this recent kernel default, let's start > chipping away at fixing the issues. On, this is a fun addition to the codebase! I wonder how much churn it will actually create... > Signed-off-by: Lee Jones <lee@kernel.org> Regardless, yeah, let's clean them up when we hit them. Reviewed-by: Kees Cook <keescook@chromium.org>
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index 2c0fb6da0e608..13ddc97f5a623 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c @@ -1099,7 +1099,7 @@ static int tw_initconnection(TW_Device_Extension *tw_dev, int message_credits) command_packet->request_id = request_id; command_packet->status = 0x0; command_packet->flags = 0x0; - command_packet->byte6.message_credits = message_credits; + command_packet->byte6.message_credits = message_credits; command_packet->byte8.init_connection.response_queue_pointer = 0x0; command_que_value = tw_dev->command_packet_physical_address[request_id];