Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp500084lqp; Thu, 4 Apr 2024 23:09:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2B9HAQmpYoYCf/KKC/E2MP9ilQTP6G6PG9v7tppPIJkWMjQ76q5IrB64t/KFURO7A02ToAoIORR6O0EObPSY4OkJaUyAe7WbHyDd7/Q== X-Google-Smtp-Source: AGHT+IFMFdMIG4oIjsxyXKtSQZQ0Qv5BUbSLenAbaSUv2GVKxpVEphSvtXy+/SEEU7ubDgJVe7yi X-Received: by 2002:a05:6a20:9758:b0:1a7:3e78:cc7e with SMTP id hs24-20020a056a20975800b001a73e78cc7emr578403pzc.14.1712297364827; Thu, 04 Apr 2024 23:09:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712297364; cv=pass; d=google.com; s=arc-20160816; b=gaAxdVQHF7qQ40MdK6filVDoEIwYlKI9+tGsW4ncFGkpXrqGasQ932mrbHk7KRzfq3 kyyv5N+ofRVjKYZN9sxwjmbUpPXQdZTnhAyZc+TKIWohqUCuF+DY7ikd8zmQqi2tKCrg IPeA69eHkA41yctY/i7OrdwyOnrI7scG383Tq7F+rtAWA3Hjdx3dEIXP+I5b3UjscRxK 7zscA4mTljhX9wpPUkZJPGxX4+LQueFo8cF3CtaBGdGZrNlywMlTPxLaj18ji8wGLxRz OjGbwMWPqnqVRnXYl0n0K14ngdVZocIMVSBP74T5z/UCSXaBJ56YwHy+CsvFztIgIaMX SiMg== 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=ze4clDGNeOXLUarNAWt/JBrwUAwP2GHN3YSCfqzhjpY=; fh=wet1jHxtCDJik+j0r9J7O6FCkuJ6/nC5qWF9PpiDg8k=; b=kpUPY9SMCqki1vEdr5z2Xt3V0slwmOFppjfE/GwYARyqpYVBqqdlZJ8BqqjUZq3E+W L3drHcKBhO7nY4acb6vcCvvMxK04tSR/TtqF7xqVczNNY5ioIgaNE+fbiGDpNvhtI4ml ht0XVI/r/EPoBl5ytY+L0zBwVcMKtVrOS0D9Latjm5dNYcNuEAstbyh+aT/XMaAh2KsB r2/9AB4pdC5U0y0EUB5pK5G+5twlZpSdKEBwZpBLn8L2s6th1x1Bu4/ivXFqt+4uWNll ZEy/qfPVnvj0qyLeCbHpP56c5A7+PF/4zl5d1LJhLEkF39/zTa94m84U0TVQ8sBVeAfE x4GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lUYrmVhY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132437-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 y16-20020a17090264d000b001e27011a183si770926pli.22.2024.04.04.23.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:09:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132437-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=lUYrmVhY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132437-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 85A4128292D for ; Fri, 5 Apr 2024 06:08:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38FF523754; Fri, 5 Apr 2024 06:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lUYrmVhY" 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 5FBE222EF2; Fri, 5 Apr 2024 06:08:41 +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=1712297321; cv=none; b=QBorl35GrqS9cdQGVvGHGHAOg+eh0zZwf9yZRGPbXPUlsl7h8lSeukZhA0zmLAGrAk3SY6awf28kHSGcb65982N7TpDgh80g/4qgBr2W/m/MAbLNzzvLK6zW0oUASq5EklJupUI5vW0tLP8jWSxYkwEaHBd4uFvYwM8hPF4krDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712297321; c=relaxed/simple; bh=Ucf0yaa98ebsbPc/z4MUwkKuOaXzJW6HowXlsm7quf0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lPbn/OATX93WX8h3iltgQ+s1xcqlZgUhErOHLTomDKxyvMeRoHNAwjKwHMkR2GQZVm20scZJ/bJBbaprxlY6C9QbaMg+SG30D1uBluXHc8rq5fV957JN0ddEKzGu+7q446sjkIXJEF3STS2KfUcpThBnZFdgya9KfcY5xAwhIAc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lUYrmVhY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A712C433B2; Fri, 5 Apr 2024 06:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712297321; bh=Ucf0yaa98ebsbPc/z4MUwkKuOaXzJW6HowXlsm7quf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUYrmVhYsEzqYf9uFTSGvcQWYGCNXA+66IP/YMVvqloh7/tg9OOV6otqBPxSTfLs5 0oxVkc3BxRBJ4YeofTTPwAsMcpJmLqJcbzD2ntydTfDql7SA2YUDOXn+TlX/W+M7H1 L51qLIWyzhJbiEp77X2Kqg4o1q9mHsEkfZM+KHpwGQWBQ1tqRlNaxYU1ZfiGyAZ8ef Xz//8y9R8bIRtxmSmv8W21mCtFgOxVvnwlBwrLSTqsHScrbslHdzcUjkSFAHPI3k60 t7awOkjG9TcCL3HneNHIbLOoq/ZyYKTdmm+KPZuIegsDSq3uZ3Yn5v22Cl3bbhpHIV uOw+WRI56gqcQ== 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 01/15] kfifo: drop __kfifo_dma_out_finish_r() Date: Fri, 5 Apr 2024 08:08:12 +0200 Message-ID: <20240405060826.2521-2-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 It is the same as __kfifo_skip_r(), so: * drop __kfifo_dma_out_finish_r() completely, and * replace its (only) use by __kfifo_skip_r(). Signed-off-by: Jiri Slaby (SUSE) Cc: Stefani Seibold Cc: Andrew Morton --- include/linux/kfifo.h | 4 +--- lib/kfifo.c | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index 0b35a41440ff..bc7a1f5bb0ce 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h @@ -797,7 +797,7 @@ __kfifo_int_must_check_helper( \ const size_t __recsize = sizeof(*__tmp->rectype); \ struct __kfifo *__kfifo = &__tmp->kfifo; \ if (__recsize) \ - __kfifo_dma_out_finish_r(__kfifo, __recsize); \ + __kfifo_skip_r(__kfifo, __recsize); \ else \ __kfifo->out += __len / sizeof(*__tmp->type); \ }) @@ -879,8 +879,6 @@ extern void __kfifo_dma_in_finish_r(struct __kfifo *fifo, extern unsigned int __kfifo_dma_out_prepare_r(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, size_t recsize); -extern void __kfifo_dma_out_finish_r(struct __kfifo *fifo, size_t recsize); - extern unsigned int __kfifo_len_r(struct __kfifo *fifo, size_t recsize); extern void __kfifo_skip_r(struct __kfifo *fifo, size_t recsize); diff --git a/lib/kfifo.c b/lib/kfifo.c index 12f5a347aa13..958099cc4914 100644 --- a/lib/kfifo.c +++ b/lib/kfifo.c @@ -582,11 +582,3 @@ unsigned int __kfifo_dma_out_prepare_r(struct __kfifo *fifo, } EXPORT_SYMBOL(__kfifo_dma_out_prepare_r); -void __kfifo_dma_out_finish_r(struct __kfifo *fifo, size_t recsize) -{ - unsigned int len; - - len = __kfifo_peek_n(fifo, recsize); - fifo->out += len + recsize; -} -EXPORT_SYMBOL(__kfifo_dma_out_finish_r); -- 2.44.0