From nobody Sun Nov 16 16:18:08 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1600855352; cv=none; d=zohomail.com; s=zohoarc; b=TU2lLalUQX8sl8mZNQjArvS1SZLiNwTp/4t3Mzza2IaJKsRlCLi/+r/Q4jSLJMCm16hKZTnmM8gpyzBMmV0i5IZuUztDIWgm41duRmO6XNqqg34iNkQ7IWtTU8XoUXxn/MJTEmZcTYaaeDT4IF6pVQuGSDat1ZEYyx8lblzi0TE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600855352; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=VaJU4qce4d8kLY5vBvpzDPXaE03+xeWvm32Nm0kkdv0=; b=G27/dB5Ml1T2A2UxFnwGvBNHFbsj7UPYNMosmq/5mXxJLl9R8v9UnrZqhlHWaGEeM7dLIkM0BJr0WzmHn84MxRg7Rl5zIf4AM6td94Yfv9aOagkdlu4HrETIktblUY0rCaVpyvzLq3SnAUUT4Q7mdBdyBOqOau39xNpurI+1h58= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1600855352108991.4829348283912; Wed, 23 Sep 2020 03:02:32 -0700 (PDT) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-84-LXYgJS_lN9mxpj2ehUPDYQ-1; Wed, 23 Sep 2020 06:02:29 -0400 Received: by mail-wm1-f72.google.com with SMTP id l26so1178279wmg.7 for ; Wed, 23 Sep 2020 03:02:28 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id t188sm8029162wmf.41.2020.09.23.03.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 03:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600855350; 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=VaJU4qce4d8kLY5vBvpzDPXaE03+xeWvm32Nm0kkdv0=; b=eXsE5p9o2Y/mhwigQXXTcBKkyNLKqZSZAe+wX4STOmqseToe0HJuOTubpzYxm8Z7BhSfBd /bnclZyFwLPtQPGvqt0NzEZt1vxs7Btrcwwhgzil5rqUu8llPdSu4HWnCLu+89BNWgK7RZ v3yBpZslUi9wNiyuDdl9kQ5kEI9JRyQ= X-MC-Unique: LXYgJS_lN9mxpj2ehUPDYQ-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=VaJU4qce4d8kLY5vBvpzDPXaE03+xeWvm32Nm0kkdv0=; b=f+CIepRoHW8A//5vuGnbZXTeyZkLV5OtPfxB8w99yy4K2Xe9/i1bpb73ljR3IAGboy 9cmq0XDGGv1cXXIQLOKPCrdRXpDYg97eLRoo17qUONTWiSZFzmrAO6NdhaDSAr61RmOE 6Y3cA90RrMAw447y6jfO/opTSDLgInYsJLVecU4lTyAn3BGnWBtVQPkdGXvw5KgtYgYS vdMALkDhg82MnQKl7cJPNpLzV4geg6icpg+0nQdpsFipe+JhYX/XnfC1/VR59lovwYEu QcUhaV62AQ2xJIv+X0oM2uIY/FxoT8kUH9YETLyDOfvzICeUpIUeWDW5EimMyJzdaCN+ ODZA== X-Gm-Message-State: AOAM532ar3+CQkuSrKO4tTaN65GQBJztqCtKHKhN7hbFKtZlEaZIsnyy WIQNfXMnORIgrBUeaORSIPmVFmKLcEImkIZGeClDzRy57agQmMLSiZX9ZZD/rxbn86htcC75+kQ CMEucZkkqPDm6jw== X-Received: by 2002:a5d:5307:: with SMTP id e7mr10083454wrv.215.1600855347524; Wed, 23 Sep 2020 03:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyErCwKgS8P5jJGkmT3fVvMkXsnbfsZMC3MQP86hUlkn2JWmNiVPlc8a9KPYjiOzhfMoa6EIA== X-Received: by 2002:a5d:5307:: with SMTP id e7mr10083433wrv.215.1600855347379; Wed, 23 Sep 2020 03:02:27 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/4] qemu/bswap: Remove unused qemu_bswap_len() Date: Wed, 23 Sep 2020 12:02:17 +0200 Message-Id: <20200923100220.674903-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200923100220.674903-1-philmd@redhat.com> References: <20200923100220.674903-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"; 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"). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- 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