Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp500268lqp; Thu, 4 Apr 2024 23:09:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3lo3MOls4emJZ3ErYsOIKSoPxG58L6GhUBKsJCfWJ1AAbXmFzlrpOdrR5Er4qMgyQfOkfToFjjZM+/6SLRHXXqy3I6J6GAxefybQVgw== X-Google-Smtp-Source: AGHT+IH7CY4QpO4R0ht2Xah/xv0tsKTK/15vI2M94GTc39ySLNXdWXrabeq0fLXRSz6h3K/0gj3e X-Received: by 2002:a17:902:d485:b0:1e2:9c3b:21d1 with SMTP id c5-20020a170902d48500b001e29c3b21d1mr722923plg.8.1712297398023; Thu, 04 Apr 2024 23:09:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712297398; cv=pass; d=google.com; s=arc-20160816; b=TgiX9jUWjKvBss7pC8YD7WmZHJFAPQOgfZguoHvWaoJUd0w6DnlDxEUlYnDBsm/Nhy M4Y0zuff+9QJ+n3059G134029WYEUYKSKnsFrZq4l0nsXRLDd/+Zv8xVdnD+cdtvLZBv z3utImuuQdvaN/kp7HG+tgQyH03ZQKqL/s98vWuMtug9xYLlzmYlyn7mj8nBcAGcsQVD Q6mjjKHM522DTITPw8EDyCpsi+ne/ioD0qbHc8188EjJwj8OlcjsNdnET8Ji/K1CopM+ iiF1EvCZFOHsEeV/TzmHKQdswD8Rbsldh6pgi061ZBw6zLctO706J44PZe1/tpzpQsCP IgUQ== 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=gHZyr4mC9ll8usWQyp7eM0xGwEasJdx+097lZeKIMaw=; fh=wet1jHxtCDJik+j0r9J7O6FCkuJ6/nC5qWF9PpiDg8k=; b=rk74CGMVut/v2RJJdG3aCdRt03YeMy58qkyrB7isJtmdEdEqH8eCkSgm5oX2zhHrhS b7aoQ3jlJjNVTCZ5IcbcbvNwYIlhk6sTqFK63aXIu/B7HMpgbkuF6kAs4XOrI+OU80aT +pRlAwhLGo12wywQDCyxwDT0t5u070kxHr4q2/iCoBLHsKngEnxVeh4a0ZGLxx+Sn6GI colv+s6lHqlY9CJt6wRjaK6qDSLyK0QFk7rv8hzIP+XNo0Xo9zHcOpzwUb8are+w6icL mmvyyNC8wWs4v9VcYfP/bmFCNNi4xhfONT1NPqXPq04YAh1SdaveL1Dndp2wlpq1Qz1X Bfgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E9CDEEBc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n5-20020a170902d2c500b001e237799047si789483plc.563.2024.04.04.23.09.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132441-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=@kernel.org header.s=k20201202 header.b=E9CDEEBc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132441-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5DD402827D8 for ; Fri, 5 Apr 2024 06:09:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A98312D05A; Fri, 5 Apr 2024 06:08:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E9CDEEBc" 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 CF9202D022; Fri, 5 Apr 2024 06:08:48 +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=1712297328; cv=none; b=UOBLZcw93kQXGH/oPK1WJedrYEzHHKuj0vf1MOl36yQ8Fg4+1zk9vmr/GdXoSOOAgZfLqoCZQicGgW/2CAUOQmFLiaG/OYhw62OTPEKc6/ATR9lIK6eVG62iC5d9mhx/7TC07N8lwV+L+4dO/5JZgL+xbeX5Mxcjh7wbX75VAUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712297328; c=relaxed/simple; bh=tJF+08Wovvyo19kq87yZF22HcvtylXgBS1IrMhly7rU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=keZDI95fbBfZ5CpqpWh9ddnCLHuDJMhdJhfFeA3/jgMisX4NvF89fjQ6BbGkICyCws49OQSO7EXXm+3SQsl9bg5fNM6rEDvuw1C66d4CFOO32QgsCnhQF7m7d/J1NdaTtFnZCiT4VtWY6qHDiNvLA2Cyv3gtIoebTcdxXSJ5Zqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E9CDEEBc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D8FFC43390; Fri, 5 Apr 2024 06:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712297328; bh=tJF+08Wovvyo19kq87yZF22HcvtylXgBS1IrMhly7rU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E9CDEEBcfyw2ffCm6aUYqXJA5qSm0YJrQ+aFa7UxK9hVuad9NnszikFvcmQIkjBPC xKpisKEvsutUwGrESLI8A2eJsbceUvcIFhChkZBe/SxGy75b9fAsNiq3DVxD2Ywf/z tq+xQ7gkUeOscD1kh9dY+daJpA7nSC+y/YB4t5xNNkLl4VKmwetPVs3+RMW1SjzKic OYz8zkGQLidRQEHBXpCSqHq2pZaenXzr/+qClBq6hcBQDcyB5L4nW2aEa8KCmdVX+s luj6J47bKbGHM48IdcuD4uwj1SGtFs0nukSQigbH4JxCf940+wcSagFIcKh7cW86XR tW5OB4EZe/tQA== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Stefani Seibold , Andrew Morton Subject: [PATCH 05/15] kfifo: rename l to len_to_end in setup_sgl() Date: Fri, 5 Apr 2024 08:08:16 +0200 Message-ID: <20240405060826.2521-6-jirislaby@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240405060826.2521-1-jirislaby@kernel.org> References: <20240405060826.2521-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit So that one can make any sense of the name. Signed-off-by: Jiri Slaby (SUSE) Cc: Stefani Seibold Cc: Andrew Morton --- lib/kfifo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/kfifo.c b/lib/kfifo.c index d5830960ab87..61e35550aea5 100644 --- a/lib/kfifo.c +++ b/lib/kfifo.c @@ -321,7 +321,7 @@ static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, { unsigned int size = fifo->mask + 1; unsigned int esize = fifo->esize; - unsigned int l; + unsigned int len_to_end; unsigned int n; off &= fifo->mask; @@ -330,10 +330,10 @@ static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, size *= esize; len *= esize; } - l = min(len, size - off); + len_to_end = min(len, size - off); - n = setup_sgl_buf(sgl, fifo->data + off, nents, l); - n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); + n = setup_sgl_buf(sgl, fifo->data + off, nents, len_to_end); + n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - len_to_end); return n; } -- 2.44.0