From patchwork Fri Jul 19 15:16:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 813401 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp804126wro; Fri, 19 Jul 2024 08:18:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWZvYTx4ZmBoZe4zpThWhbDAWCWHwYO60RVAg9m50qALvAkwxlsEQzceTguAloSdgjbcoH9ymI0F9sf8YLFs3Jd X-Google-Smtp-Source: AGHT+IG/MmfaGgdsM63S09bOrlpBDDT8cPhgmmSUqrtenfWnMZ2Mm82SOmF4aO9aBc8Yo4txdjsh X-Received: by 2002:a05:6830:6e87:b0:704:4b6f:ac87 with SMTP id 46e09a7af769-708e37a8d7cmr11448856a34.17.1721402281660; Fri, 19 Jul 2024 08:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721402281; cv=none; d=google.com; s=arc-20160816; b=bdOOtdqM2VP5VCTXt/E6S43lQ9DimrFMzN8F1vkmLK5ovTYKA0ZeWmr+IiH+JiHi8B qu6L0BzaBT6L9HZ0v5GcE/uLKOgYV8BX0sG2wODFoxTOWKAoO9pmFq3WPcMr4HuZSRq0 uSgpb9ABZiFtAmE8yM+ysWJekkm4Xn4Q3NWWSH13TCrBiaA5tedJVOtGaODhU8UIrtIv C/J2ylUv1EvZpyoMRuYXJYMoHibMzSYMkGchhePxEClN3QWDnNdbmrDvEeD28vl6MVEA hBAFoU13Cu0jcJbPVb+Hj+nc8IO8eqZb1s79FfJlysffPOKy2G+B3sP5US6ttdE5xrpF SeAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=juUywzcruZeR8Sw6FIIM6mtEtRuZk97PZ7ZGojKT+QY=; fh=QmHiwcn5gLMBc2EmvTT2nv5wJfeGeF9cJn3Qf80yaAc=; b=ahS9mM0pujzlJec0lh51VugH5xU57HHRs9Y60kXY9dRlelRj6u4fAJm4LI8nH491RQ 3YY8ZV9moidaspQGui03+PfFkAjprv8rdcETnSkVfSLsOc3yp4ZZvtS3TRufml0iJDl9 hCzIM/cdK/U5+5EYX94g8Or4quvHxoeUJO8JjtSXxbuxUiosNTio1wG+Omly+y1w3gS7 R2MVodpJEAedwrzvK5rMmNlDmqW4TviCXf8YkB+tzGVEsxRZEoXv3oS0vI27/tZCbpDx MLPZT0rxR1Y5dWzDUoq/CWfDn26GHLlNpfkF/VC4YN/hVEPvX1X3GKDxUyEl2mZIoWAB 0VMQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SJ2TyNRr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4927938cdc8si363755137.425.2024.07.19.08.18.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jul 2024 08:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SJ2TyNRr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUpLd-0006m7-6z; Fri, 19 Jul 2024 11:16:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUpLX-0006kp-JB for qemu-devel@nongnu.org; Fri, 19 Jul 2024 11:16:38 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sUpLV-0005tg-SP for qemu-devel@nongnu.org; Fri, 19 Jul 2024 11:16:35 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2eee1384e0aso27241231fa.1 for ; Fri, 19 Jul 2024 08:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721402191; x=1722006991; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=juUywzcruZeR8Sw6FIIM6mtEtRuZk97PZ7ZGojKT+QY=; b=SJ2TyNRregccXeYkb/Ij/ZKq+Qe0LX8NfIXiguiqtwymprWsOTSYQhBd2BWShztKX1 wX8iUNM8F5gL9YzJbiY95wIK5AuYuVDKrQSBhssvAuzt5SYlkTki3BwJusj/S5UfW8C/ c5QXtIumDGNmkySPgNEo/ZK6JUj0zPjYPo2gtPdjrsy/NrQMfobtCeuc3sSVD6MR6KAo YTCdfQvAWloBGnpncnZlXbkxh0rfaYpfPiMHi+ED+TCzBYb6JhJN4PNvuwD/LTAGhWw2 Izz7bpQv1P+5Sy2pfnOyml3CPHbfuwCa0sohbDCKov+Oiw69x1VHX7/560L325Acbizp Glzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721402191; x=1722006991; 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=juUywzcruZeR8Sw6FIIM6mtEtRuZk97PZ7ZGojKT+QY=; b=oS/F7HbNourHmpl5eSIe+rsc8Kw6eRjoYmZBLalEaksA/erRXQlaLcjTAjE3cOSy0O hi7F14IBI5ucsktgTYKlQ05a6zsdfuNsKiSegrsPCgDyXjxk1bq3bFhIT1ZD436SWQAK c3a1ThrXeRkdM8q74xHotpwcGP2UHpSJo4jONJ3Ey2J5ItOJu9xBnJcHR/OlGFsg0S0Q bEbLeLM/QpIek0HmfKjODm2TAeOR1MwcmA4ox3rVe8TO8dIbXtZng532f+jGTFdnKkZM JJtz+hO5L1QxOlBRgsw/sZmWI0FpvEa0YP0++b7a3692/a5/2TMWmzx9kHWNkWWftOlo 2glQ== X-Gm-Message-State: AOJu0YwZTHES3y63L+CjvONaNH+VOJ8P7o3bLRBS/3/dkP6NAWogmHUl VzXBjGP0I8P+AoY/esxoIShXr/u4FNEtcS6upTLqnOuGLVJWRh4VUrQ8pbUlCkPaEtZrJrTlzOs + X-Received: by 2002:a2e:9bd5:0:b0:2ee:699b:466 with SMTP id 38308e7fff4ca-2ef1681bac5mr508201fa.36.1721402191269; Fri, 19 Jul 2024 08:16:31 -0700 (PDT) Received: from localhost.localdomain ([176.187.209.227]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2a3c159sm56237465e9.8.2024.07.19.08.16.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jul 2024 08:16:30 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Mark Cave-Ayland , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Philippe =?unknown-8bit?q?Mathieu-Daud=C3=A9?= Subject: [PATCH 0/3] util/fifo8: Introduce fifo8_change_capacity() Date: Fri, 19 Jul 2024 17:16:25 +0200 Message-ID: <20240719151628.46253-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=philmd@linaro.org; helo=mail-lj1-x232.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Preliminary series to PL011 FIFO work: - Clarify doc in qemu_chr_fe_* - Introduce fifo8_change_capacity() Philippe Mathieu-Daudé (3): chardev/char-fe: Document returned value on error util/fifo8: Use fifo8_reset() in fifo8_create() util/fifo8: Introduce fifo8_change_capacity() include/chardev/char-fe.h | 3 +++ include/qemu/fifo8.h | 10 ++++++++++ util/fifo8.c | 22 ++++++++++++++-------- 3 files changed, 27 insertions(+), 8 deletions(-)