From nobody Tue Feb 10 05:27:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1601299186; cv=none; d=zohomail.com; s=zohoarc; b=WYc4j24eNzIiXiqije/3KOdiRbz5OLz8N80tSgvh2CnDQvyEfKo8FdltK+81zbv4QhhZqV8/9X3lClyvNaHfp6u6yGofTKW0WgeCLJlwq1av/CdG9VITSP1bM84CYhk2kBjJUhZgQ8o+rJyWJb5YAkjIn1TdwQl9XgQ0K3idLlU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601299186; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=hl9slfH0zxQ134l7Pfr//jBOIgk547l+qxt5CXwb7Qs=; b=RLpll1pbO+/jNAnvhdWoFvPBKk5k3hl8bNaIveZ1HFo0/eRIoS5nmOpOjr57KnlBh8+QhQGHxdvBlwo/Bmal+AXMNEc9KNydJIZTMZ/PT/cC0YsVrUee0ZOze37vm7ufmMfkll4jAsoyZrPdnSx7ebtPHyxyZt8vFaBHAmIuQP8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1601299186714785.9448347008647; Mon, 28 Sep 2020 06:19:46 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-gdOMtqzAO3-ElM4_QaToOw-1; Mon, 28 Sep 2020 09:19:43 -0400 Received: by mail-wr1-f71.google.com with SMTP id l15so404615wro.10 for ; Mon, 28 Sep 2020 06:19:43 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id b64sm1344104wmh.13.2020.09.28.06.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 06:19:41 -0700 (PDT) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601299185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hl9slfH0zxQ134l7Pfr//jBOIgk547l+qxt5CXwb7Qs=; b=O3EVSfB84UVLxgT23LlsnN+DiqrhTpHgI7gzknF9HICuW7WnwghitD5OyGMc2Jh2bJy+S+ T3vlxNedLxznctnFO2Up+sEE61awueC3SQYADo0cEbZnOfzQHHmvY/7aLlQSMhAQ3CJYwT +G9b4FPgD7HeUq8htvZKG1Y0S+3ihvg= X-MC-Unique: gdOMtqzAO3-ElM4_QaToOw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hl9slfH0zxQ134l7Pfr//jBOIgk547l+qxt5CXwb7Qs=; b=HaH55O0luTS2kEBHqt/g4OaPrtQJdo8Aphc2oXy0K/yHR2s/vVoJ+tpeZ7S43t8sgZ bGj2+COelD7v8ZK+BybpCeFpGjHKZmfQXO6ChOEuenrpcCPr+eRRKnQUhYFkFQYUuly1 KSkMjeGAU02V3kIlpeg5mhnRJn/e3m9HhTwNu70zua5rLx1llyzqYwVBxBBjH8Iee6lU yp0ZyzSJgOVnkFvye6gWQfBKDd3ZB8wCAbc0MC9couHS5caWpVlKDj0E6HcoVAkUjf2R cPxPvTP3+kEi9Qd0b4Tiz8j70eIhkryLQxcLpIrfAxScSdeyrg/nLsUN5pPFef4T0I2L sLNg== X-Gm-Message-State: AOAM532blgh2vzDZ7KLIQfLdN2R6CeXh9W3Bc5lqrvbDGfbQwdqUcM5N /am5KnY9j/Z4PsTStklfXn0heU7YboDzAJ7d7dIU87z/rkNDFITsEJtkk98iLWfUzAABIxyJmnN 96IxYU9DZX1JomQ== X-Received: by 2002:a1c:55c3:: with SMTP id j186mr1633389wmb.77.1601299182704; Mon, 28 Sep 2020 06:19:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYoCu1W8ZOZC50kwm5Zi6PF3g8Wmc0+2rWOCbNTMdTYqqf1+PiCnHb4SkFJYiiU4evQRThQg== X-Received: by 2002:a1c:55c3:: with SMTP id j186mr1633363wmb.77.1601299182508; Mon, 28 Sep 2020 06:19:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Kamil Rytarowski Subject: [PATCH v2 1/8] qemu/bswap: Remove unused qemu_bswap_len() Date: Mon, 28 Sep 2020 15:19:27 +0200 Message-Id: <20200928131934.739451-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200928131934.739451-1-philmd@redhat.com> References: <20200928131934.739451-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Last use of qemu_bswap_len() has been removed in commit e5fd1eb05ec ("apb: add busA qdev property to PBM PCI bridge"). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/bswap.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index 1d3e4c24e41..8b01c38040c 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -169,12 +169,6 @@ CPU_CONVERT(le, 16, uint16_t) CPU_CONVERT(le, 32, uint32_t) CPU_CONVERT(le, 64, uint64_t) =20 -/* len must be one of 1, 2, 4 */ -static inline uint32_t qemu_bswap_len(uint32_t value, int len) -{ - return bswap32(value) >> (32 - 8 * len); -} - /* * Same as cpu_to_le{16,32}, except that gcc will figure the result is * a compile-time constant if you pass in a constant. So this can be --=20 2.26.2