From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31A0AC433F5 for ; Thu, 7 Apr 2022 12:56:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 78E0D83DD4; Thu, 7 Apr 2022 14:56:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=nic.cz header.i=@nic.cz header.b="ukmLMmi0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0CB283DD3; Thu, 7 Apr 2022 14:56:19 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7E99583DCD for ; Thu, 7 Apr 2022 14:56:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPS id 1B6F413FBF3; Thu, 7 Apr 2022 14:56:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1649336177; bh=FYEAl5/Z4JkFWb0z8RwiRzk4XcZxJ6A0uel7BSoQzLQ=; h=Date:From:To:Cc:Subject:From; b=ukmLMmi0YwX3QTXT5hIWVlOiOmJFT8rQX8y+nbzuOXe8teQAWtF+8rCSnCdIPQNJY /+2PZw8fw//IN2gcdqQHE9yRRc4x38IlCRUS0UP3pHMwP0/aV9nDhWWsnvKzyRQmYP HEJULTTeU42iMcf/hgBzARYuvERXV4ToK+XjNk5s= Date: Thu, 7 Apr 2022 14:56:16 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Qu Wenruo , u-boot@lists.denx.de Subject: Re: [PATCH] btrfs: Fix compilation on big endian systems Message-ID: <20220407145616.0e9affca@thinkpad> In-Reply-To: <20220407125103.5074-1-pali@kernel.org> References: <20220407125103.5074-1-pali@kernel.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Thu, 7 Apr 2022 14:51:03 +0200 Pali Roh=C3=A1r wrote: > Fix following two compile errors on big endian systems: >=20 > CC fs/btrfs/btrfs.o > In file included from include/linux/byteorder/big_endian.h:107, > from ./arch/powerpc/include/asm/byteorder.h:82, > from ./arch/powerpc/include/asm/bitops.h:8, > from include/linux/bitops.h:152, > from include/uuid.h:9, > from fs/btrfs/btrfs.c:10: > fs/btrfs/conv-funcs.h: In function =E2=80=98btrfs_key_to_disk=E2=80=99: > include/linux/byteorder/generic.h:90:21: error: =E2=80=98__cpu_to_le16=E2= =80=99 undeclared (first use in this function); did you mean =E2=80=98__cpu= _to_le16p=E2=80=99? > #define cpu_to_le16 __cpu_to_le16 > ^~~~~~~~~~~~~ > fs/btrfs/conv-funcs.h:79:10: note: in expansion of macro =E2=80=98cpu_to_= le16=E2=80=99 > __u16: cpu_to_le16, \ > ^~~~~~~~~~~ >=20 > CC fs/btrfs/compression.o > In file included from ./arch/powerpc/include/asm/unaligned.h:9, > from fs/btrfs/compression.c:16: > include/linux/unaligned/access_ok.h:6:19: error: redefinition of =E2=80= =98get_unaligned_le16=E2=80=99 > static inline u16 get_unaligned_le16(const void *p) > ^~~~~~~~~~~~~~~~~~ > In file included from fs/btrfs/ctree.h:16, > from fs/btrfs/btrfs.h:12, > from fs/btrfs/compression.c:8: > include/linux/unaligned/le_byteshift.h:40:19: note: previous definition o= f =E2=80=98get_unaligned_le16=E2=80=99 was here > static inline u16 get_unaligned_le16(const void *p) > ^~~~~~~~~~~~~~~~~~ >=20 > Include file asm/unaligned.h contains arch specific macros and functions > for unaligned access as opposite to linux/unaligned le_byteshift.h which > contains macros and functions specific to little endian systems only. >=20 > Signed-off-by: Pali Roh=C3=A1r Reviewed-by: Marek Beh=C3=BAn