From nobody Sat May 4 19:10:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1611743719; cv=none; d=zohomail.com; s=zohoarc; b=cvTuMGj8tZlcGEyeK6ToXPBEIOl6CCUUz3tLxbS7TpPbipNH6NY8fxXMrEG0r8eZRlDF2SkfOtl7K6Vn1wR70548V1OtGV7sVgWtAI3/5cWxWYCUJEN2ui1K1W1VpI/AD4N3jBx9dptZzXKq72NR7yNQQqD1wuc/oJMJuw62A94= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611743719; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=gopfihQU6ZEqXxgj+QutdHMiXc1rcfFmL/6KcRas2cA=; b=EPhbQtBqgt5RLLU5+BwHDnavZd1AN9zddi2WMnF1UTm9BUihZ3fVR8W3YgglfQCwHxRKbt19zSsKTLt5FFd47vdpxIu0lY+eLmg+3KJxbVgIFY+xUCFoedKs6MIvfBDUBPIIU9lH1hkGoy7TefkrIluHXHyzFY4ey3YNYOTRcVI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1611743719292599.3920549399988; Wed, 27 Jan 2021 02:35:19 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.75943.136942 (Exim 4.92) (envelope-from ) id 1l4iA7-0004ub-Uz; Wed, 27 Jan 2021 10:34:59 +0000 Received: by outflank-mailman (output) from mailman id 75943.136942; Wed, 27 Jan 2021 10:34:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l4iA7-0004uU-Ru; Wed, 27 Jan 2021 10:34:59 +0000 Received: by outflank-mailman (input) for mailman id 75943; Wed, 27 Jan 2021 10:34:58 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l4iA6-0004uM-Ht for xen-devel@lists.xenproject.org; Wed, 27 Jan 2021 10:34:58 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 6bdfdee2-3480-41a4-8539-b12f01b71552; Wed, 27 Jan 2021 10:34:55 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 54427AD57; Wed, 27 Jan 2021 10:34:54 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 6bdfdee2-3480-41a4-8539-b12f01b71552 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611743694; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gopfihQU6ZEqXxgj+QutdHMiXc1rcfFmL/6KcRas2cA=; b=B6JP3AvPgTg/QzDS6Lwy/RoAXENJNIMl01SZRYa5fQEr1CAI9p1Clrz/Smpe8tKNpbqWbf 4Esfh5YHFzYvucF2buSMSVuUply6CAhKjsGpO4HuZsLkMIfg3CfpTyyhXein4PGBtCCsJg 2Wj+djUYd4XyreIbOAEB7K7f0V69aHU= To: "xen-devel@lists.xenproject.org" Cc: Ian Jackson , Wei Liu , Andrew Cooper From: Jan Beulich Subject: [PATCH] libxenguest: drop now unused le32_to_cpup() from lz4 decompression Message-ID: <72d7e54f-e0df-03e6-0752-9d8937f666f2@suse.com> Date: Wed, 27 Jan 2021 11:34:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" While gcc doesn't warn about this because of it being static inline, clang does, causing the build to fail there because of -Werror. Fixes: d8099d94dfaa ("libxenguest: add get_unaligned_le32()") Reported-by: Andrew Cooper Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/tools/libs/guest/xg_dom_decompress_lz4.c +++ b/tools/libs/guest/xg_dom_decompress_lz4.c @@ -22,11 +22,6 @@ static inline uint_fast16_t le16_to_cpup return buf[0] | (buf[1] << 8); } =20 -static inline uint_fast32_t le32_to_cpup(const unsigned char *buf) -{ - return le16_to_cpup(buf) | ((uint32_t)le16_to_cpup(buf + 2) << 16); -} - #include "../../xen/include/xen/lz4.h" #include "../../xen/common/decompress.h" =20