From nobody Fri May 10 17:24:15 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=1701770910; cv=none; d=zohomail.com; s=zohoarc; b=GwXHGlEWhZdgRfYCherM2OLrnAkHDOaKH3D6iBXTx8K2IcON3f8/Wk5eJvbltNsuC/C/Z51opzOJAdBlS1J+010P5kvKNF98jAEsMD4TXsqELl1x8T0QMAq+/JaeXJzMUgBf3hYSTStrK61PgQFJS+X4MttFEIni9v+H8NpmZPk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701770910; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2fYQv/39LJ/pI8k7gLnqlsK8l/cey3HS0JyD9skuDbw=; b=HLgKfZUMaEhpz21m2inlWQX/Td87BAxWhql2XoLlhjSfADhcoHYEPB901zQTqxRxsMHhyUVnSuzfGvYSxHUWkzcdugB1OztBbZLHtZFNxXjksSuFnm32CdVW9awwRfC7i3sHyIWBM0GY5/2JBAEx+SgP56PTjBxEYorlkFoUDg8= 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) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1701770910100529.0070102419894; Tue, 5 Dec 2023 02:08:30 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.647513.1010710 (Exim 4.92) (envelope-from ) id 1rASLY-00060p-BX; Tue, 05 Dec 2023 10:08:08 +0000 Received: by outflank-mailman (output) from mailman id 647513.1010710; Tue, 05 Dec 2023 10:08:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rASLY-00060i-8q; Tue, 05 Dec 2023 10:08:08 +0000 Received: by outflank-mailman (input) for mailman id 647513; Tue, 05 Dec 2023 10:08:06 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rASLW-0005zz-Le for xen-devel@lists.xenproject.org; Tue, 05 Dec 2023 10:08:06 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 2e91f1bd-9356-11ee-98e5-6d05b1d4d9a1; Tue, 05 Dec 2023 11:08:05 +0100 (CET) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0121122060; Tue, 5 Dec 2023 10:08:04 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id B7DD3138FF; Tue, 5 Dec 2023 10:08:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id ArWzK4P2bmX6MAAAn2gu4w (envelope-from ); Tue, 05 Dec 2023 10:08:03 +0000 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: 2e91f1bd-9356-11ee-98e5-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1701770884; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2fYQv/39LJ/pI8k7gLnqlsK8l/cey3HS0JyD9skuDbw=; b=px9YmtebgyHlc7a5wrtMn8qltRRRoBjVOspgyMydzA1AQvl3txfWWUPkmgs7arLdbA5l3P zGPza2ljlKaI2LIoPT3HjEP+7Y1Q2h5YS7mkn+9rtHjO+2/D8HdtBlbo2f3RFO3ZfWlCmn pj7BictQ/LKTnzHgMMjdupkqtG4Fx3A= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu , Arnd Bergmann Subject: [PATCH 1/2] xen: make include/xen/unaligned.h usable on all architectures Date: Tue, 5 Dec 2023 11:07:55 +0100 Message-Id: <20231205100756.18920-2-jgross@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231205100756.18920-1-jgross@suse.com> References: <20231205100756.18920-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Flag: NO Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spamd-Result: default: False [-3.30 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[9]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[arndb.de:email,suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[99.99%] X-Spam-Score: -3.30 X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1701770911982100001 Content-Type: text/plain; charset="utf-8" Instead of defining get_unaligned() and put_unaligned() in a way that is only supporting architectures allowing unaligned accesses, use the same approach as the Linux kernel and let the compiler do the decision how to generate the code for probably unaligned data accesses. Update include/xen/unaligned.h from include/asm-generic/unaligned.h of the Linux kernel. The generated code has been checked to be the same on x86. Signed-off-by: Arnd Bergmann Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 80= 3f4e1eab7a Signed-off-by: Juergen Gross --- xen/include/xen/unaligned.h | 121 +++++++++++++++++++++++++----------- 1 file changed, 86 insertions(+), 35 deletions(-) diff --git a/xen/include/xen/unaligned.h b/xen/include/xen/unaligned.h index 0a2b16d05d..325d9f875f 100644 --- a/xen/include/xen/unaligned.h +++ b/xen/include/xen/unaligned.h @@ -1,12 +1,4 @@ -/* - * This header can be used by architectures where unaligned accesses work - * without faulting, and at least reasonably efficiently. Other architect= ures - * will need to have a custom asm/unaligned.h. - */ -#ifndef __ASM_UNALIGNED_H__ -#error "xen/unaligned.h should not be included directly - include asm/unal= igned.h instead" -#endif - +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __XEN_UNALIGNED_H__ #define __XEN_UNALIGNED_H__ =20 @@ -15,67 +7,126 @@ #include #endif =20 -#define get_unaligned(p) (*(p)) -#define put_unaligned(val, p) (*(p) =3D (val)) +/* + * This is the most generic implementation of unaligned accesses + * and should work almost anywhere. + */ + +#define __get_unaligned_t(type, ptr) ({ \ + const struct { type x; } __packed *__pptr =3D (typeof(__pptr))(ptr); \ + __pptr->x; \ +}) + +#define __put_unaligned_t(type, val, ptr) do { \ + struct { type x; } __packed *__pptr =3D (typeof(__pptr))(ptr); \ + __pptr->x =3D (val); \ +} while (0) + +#define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) +#define put_unaligned(val, ptr) __put_unaligned_t(typeof(*(ptr)), (val), (= ptr)) + +static inline u16 get_unaligned_le16(const void *p) +{ + return le16_to_cpu(__get_unaligned_t(__le16, p)); +} + +static inline u32 get_unaligned_le32(const void *p) +{ + return le32_to_cpu(__get_unaligned_t(__le32, p)); +} + +static inline u64 get_unaligned_le64(const void *p) +{ + return le64_to_cpu(__get_unaligned_t(__le64, p)); +} + +static inline void put_unaligned_le16(u16 val, void *p) +{ + __put_unaligned_t(__le16, cpu_to_le16(val), p); +} + +static inline void put_unaligned_le32(u32 val, void *p) +{ + __put_unaligned_t(__le32, cpu_to_le32(val), p); +} + +static inline void put_unaligned_le64(u64 val, void *p) +{ + __put_unaligned_t(__le64, cpu_to_le64(val), p); +} + +static inline u16 get_unaligned_be16(const void *p) +{ + return be16_to_cpu(__get_unaligned_t(__be16, p)); +} + +static inline u32 get_unaligned_be32(const void *p) +{ + return be32_to_cpu(__get_unaligned_t(__be32, p)); +} =20 -static inline uint16_t get_unaligned_be16(const void *p) +static inline u64 get_unaligned_be64(const void *p) { - return be16_to_cpup(p); + return be64_to_cpu(__get_unaligned_t(__be64, p)); } =20 -static inline void put_unaligned_be16(uint16_t val, void *p) +static inline void put_unaligned_be16(u16 val, void *p) { - *(__force __be16*)p =3D cpu_to_be16(val); + __put_unaligned_t(__be16, cpu_to_be16(val), p); } =20 -static inline uint32_t get_unaligned_be32(const void *p) +static inline void put_unaligned_be32(u32 val, void *p) { - return be32_to_cpup(p); + __put_unaligned_t(__be32, cpu_to_be32(val), p); } =20 -static inline void put_unaligned_be32(uint32_t val, void *p) +static inline void put_unaligned_be64(u64 val, void *p) { - *(__force __be32*)p =3D cpu_to_be32(val); + __put_unaligned_t(__be64, cpu_to_be64(val), p); } =20 -static inline uint64_t get_unaligned_be64(const void *p) +static inline u32 __get_unaligned_be24(const u8 *p) { - return be64_to_cpup(p); + return p[0] << 16 | p[1] << 8 | p[2]; } =20 -static inline void put_unaligned_be64(uint64_t val, void *p) +static inline u32 get_unaligned_be24(const void *p) { - *(__force __be64*)p =3D cpu_to_be64(val); + return __get_unaligned_be24(p); } =20 -static inline uint16_t get_unaligned_le16(const void *p) +static inline u32 __get_unaligned_le24(const u8 *p) { - return le16_to_cpup(p); + return p[0] | p[1] << 8 | p[2] << 16; } =20 -static inline void put_unaligned_le16(uint16_t val, void *p) +static inline u32 get_unaligned_le24(const void *p) { - *(__force __le16*)p =3D cpu_to_le16(val); + return __get_unaligned_le24(p); } =20 -static inline uint32_t get_unaligned_le32(const void *p) +static inline void __put_unaligned_be24(const u32 val, u8 *p) { - return le32_to_cpup(p); + *p++ =3D val >> 16; + *p++ =3D val >> 8; + *p++ =3D val; } =20 -static inline void put_unaligned_le32(uint32_t val, void *p) +static inline void put_unaligned_be24(const u32 val, void *p) { - *(__force __le32*)p =3D cpu_to_le32(val); + __put_unaligned_be24(val, p); } =20 -static inline uint64_t get_unaligned_le64(const void *p) +static inline void __put_unaligned_le24(const u32 val, u8 *p) { - return le64_to_cpup(p); + *p++ =3D val; + *p++ =3D val >> 8; + *p++ =3D val >> 16; } =20 -static inline void put_unaligned_le64(uint64_t val, void *p) +static inline void put_unaligned_le24(const u32 val, void *p) { - *(__force __le64*)p =3D cpu_to_le64(val); + __put_unaligned_le24(val, p); } =20 #endif /* __XEN_UNALIGNED_H__ */ --=20 2.35.3 From nobody Fri May 10 17:24:15 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=1701770927; cv=none; d=zohomail.com; s=zohoarc; b=NC3AbsMI5jeBa+Ki7gkZXNZqSf1/gZOVO9DpRlEaNTPA8IL8Hismcyv9IhCjXF6nC28fWU8bT+/J9VsR03epQ9CN9dPILTQvNPvQqNOF4BFtElqiJkTZHqrqUvtyVD9kVgkwbB4N6qDgeiog/g41wKlrA5SSrkoRnUrVKRMthMM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701770927; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lq6Aix92m1tHhsIqJbDqfDfy3efyJN8pLKRv9vH1cNQ=; b=QrOo6gumyjDzAzgXE2LVotX1vDdNv65a9lrNHAT3v/u7Zhb4lYRzYBmOnSiK89mp3klFbXkdUurGC6Rfi0Jvzy0JbIO82hrCqdgcZHtncWrH3EoRcUHxE2tue4gBWuES5To1NZTO2sy8jtfQaedY5N6XleEacwdJQtvzN9PAXzY= 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) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1701770927495848.793697806216; Tue, 5 Dec 2023 02:08:47 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.647514.1010720 (Exim 4.92) (envelope-from ) id 1rASLc-0006In-I7; Tue, 05 Dec 2023 10:08:12 +0000 Received: by outflank-mailman (output) from mailman id 647514.1010720; Tue, 05 Dec 2023 10:08:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rASLc-0006Ie-FJ; Tue, 05 Dec 2023 10:08:12 +0000 Received: by outflank-mailman (input) for mailman id 647514; Tue, 05 Dec 2023 10:08:10 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rASLa-0005zz-OG for xen-devel@lists.xenproject.org; Tue, 05 Dec 2023 10:08:10 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 313a06f1-9356-11ee-98e5-6d05b1d4d9a1; Tue, 05 Dec 2023 11:08:10 +0100 (CET) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9440122060; Tue, 5 Dec 2023 10:08:09 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 559D3138FF; Tue, 5 Dec 2023 10:08:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id T0yiE4n2bmUIMQAAn2gu4w (envelope-from ); Tue, 05 Dec 2023 10:08:09 +0000 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: 313a06f1-9356-11ee-98e5-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1701770889; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lq6Aix92m1tHhsIqJbDqfDfy3efyJN8pLKRv9vH1cNQ=; b=pBEvvnH2FkEEI5TtKI0Dx+Q692w8oeck2k9zDaBZ2cXJy/i6X6dALwo1gCQQ71/NWJBxxj LNRNJpXIiq456Piw0CZupK/zz3tOMn8b6ThMWH4T3S5f2t4DuPNh7SJzR42FvfbzVpC/F/ AJRCnLHEmH7+gK8w+1OGcER8dOcO36A= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu , George Dunlap , Julien Grall , Stefano Stabellini Subject: [PATCH 2/2] xen: remove asm/unaligned.h Date: Tue, 5 Dec 2023 11:07:56 +0100 Message-Id: <20231205100756.18920-3-jgross@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231205100756.18920-1-jgross@suse.com> References: <20231205100756.18920-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Flag: NO Authentication-Results: smtp-out1.suse.de; none X-Spam-Score: 4.80 X-Spam-Level: **** X-Spamd-Result: default: False [4.80 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_SPAM(5.10)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[9]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1701770928127100001 Content-Type: text/plain; charset="utf-8" With include/xen/unaligned.h now dealing properly with unaligned accesses for all architectures, asm/unaligned.h can be removed and users can be switched to include xen/unaligned.h instead. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- xen/arch/x86/include/asm/unaligned.h | 6 ------ xen/common/lz4/defs.h | 2 +- xen/common/lzo.c | 2 +- xen/common/unlzo.c | 2 +- xen/common/xz/private.h | 2 +- xen/common/zstd/mem.h | 2 +- xen/lib/xxhash32.c | 2 +- xen/lib/xxhash64.c | 2 +- 8 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 xen/arch/x86/include/asm/unaligned.h diff --git a/xen/arch/x86/include/asm/unaligned.h b/xen/arch/x86/include/as= m/unaligned.h deleted file mode 100644 index 6070801d4a..0000000000 --- a/xen/arch/x86/include/asm/unaligned.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __ASM_UNALIGNED_H__ -#define __ASM_UNALIGNED_H__ - -#include - -#endif /* __ASM_UNALIGNED_H__ */ diff --git a/xen/common/lz4/defs.h b/xen/common/lz4/defs.h index 10609f5a53..6d81113266 100644 --- a/xen/common/lz4/defs.h +++ b/xen/common/lz4/defs.h @@ -10,7 +10,7 @@ =20 #ifdef __XEN__ #include -#include +#include #else =20 static inline u16 get_unaligned_le16(const void *p) diff --git a/xen/common/lzo.c b/xen/common/lzo.c index a87c76dded..cc03f0f554 100644 --- a/xen/common/lzo.c +++ b/xen/common/lzo.c @@ -97,7 +97,7 @@ #ifdef __XEN__ #include #include -#include +#include #else #define get_unaligned_le16(_p) (*(u16 *)(_p)) #endif diff --git a/xen/common/unlzo.c b/xen/common/unlzo.c index 74056778eb..bdcefa95b3 100644 --- a/xen/common/unlzo.c +++ b/xen/common/unlzo.c @@ -34,7 +34,7 @@ =20 #ifdef __XEN__ #include -#include +#include #else =20 static inline u16 get_unaligned_be16(const void *p) diff --git a/xen/common/xz/private.h b/xen/common/xz/private.h index e6814250e8..2299705378 100644 --- a/xen/common/xz/private.h +++ b/xen/common/xz/private.h @@ -13,7 +13,7 @@ #ifdef __XEN__ #include #include -#include +#include #else =20 static inline u32 get_unaligned_le32(const void *p) diff --git a/xen/common/zstd/mem.h b/xen/common/zstd/mem.h index 2acae6a8ed..ae1e305126 100644 --- a/xen/common/zstd/mem.h +++ b/xen/common/zstd/mem.h @@ -23,7 +23,7 @@ #ifdef __XEN__ #include /* memcpy */ #include /* size_t, ptrdiff_t */ -#include +#include #endif =20 /*-**************************************** diff --git a/xen/lib/xxhash32.c b/xen/lib/xxhash32.c index e8d403e5ce..32efa651c5 100644 --- a/xen/lib/xxhash32.c +++ b/xen/lib/xxhash32.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include =20 /*-************************************* * Macros diff --git a/xen/lib/xxhash64.c b/xen/lib/xxhash64.c index 481e76fbcf..1858e236fe 100644 --- a/xen/lib/xxhash64.c +++ b/xen/lib/xxhash64.c @@ -43,7 +43,7 @@ #include #include #include -#include +#include #endif =20 /*-************************************* --=20 2.35.3