Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1614486/?format=api
{ "id": 1614486, "url": "http://patchwork.ozlabs.org/api/patches/1614486/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20220407125103.5074-1-pali@kernel.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20220407125103.5074-1-pali@kernel.org>", "list_archive_url": null, "date": "2022-04-07T12:51:03", "name": "btrfs: Fix compilation on big endian systems", "commit_ref": "c4bbbed3718330acfe50a599b4851cbec62b7b66", "pull_url": null, "state": "accepted", "archived": false, "hash": "710c1f1c38686473720147ba2d2ff13879d36825", "submitter": { "id": 78810, "url": "http://patchwork.ozlabs.org/api/people/78810/?format=api", "name": "Pali Rohár", "email": "pali@kernel.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20220407125103.5074-1-pali@kernel.org/mbox/", "series": [ { "id": 294020, "url": "http://patchwork.ozlabs.org/api/series/294020/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=294020", "date": "2022-04-07T12:51:03", "name": "btrfs: Fix compilation on big endian systems", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/294020/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1614486/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1614486/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "bilbo.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=t+hyXwHY;\n\tdkim-atps=neutral", "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"t+hyXwHY\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org", "phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4KZ1VL5ZCsz9sGf\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 7 Apr 2022 22:51:54 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3EBCE82F70;\n\tThu, 7 Apr 2022 14:51:47 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 9717383046; Thu, 7 Apr 2022 14:51:45 +0200 (CEST)", "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id B08E08209C\n for <u-boot@lists.denx.de>; Thu, 7 Apr 2022 14:51:42 +0200 (CEST)", "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by dfw.source.kernel.org (Postfix) with ESMTPS id 075696155F;\n Thu, 7 Apr 2022 12:51:41 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 19EBBC385A7;\n Thu, 7 Apr 2022 12:51:40 +0000 (UTC)", "by pali.im (Postfix)\n id 8C0AE7E4; Thu, 7 Apr 2022 14:51:37 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,\n SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no\n version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1649335900;\n bh=urIt4dc1P+upXcyrVu6qQHUMUCv0caujC+GwmzDtjCg=;\n h=From:To:Cc:Subject:Date:From;\n b=t+hyXwHYOKpffIsTCtzggIwLBrU7md1WkA9A1UXKBXwAZDgp44UUjnXlyTaTqO9Vk\n 77eezg7G977DGLvb1YvLbvfGYA+YOhJFRmRm4dsWtptEnUnvnbjvxiXmgNTlI54RlK\n q5y3e3ddR5iay9pwuLjoEzLs8o7UIACyasLNEluJzrxGHVoYZmbFRBORYybQX0RqDY\n ZmmI4qZXIWk7ZQqARc4+ynt4hXLCGmFhNHYvvzi061QdiaT+ekQHIGCDkYLC/Sf1jE\n pWvrYiF6+Ndy5u4vBEW7N9np60cYhCCYkB4HiNpK+eXcDELEmxRVy7bTJpEGNLwD8/\n JHRyWV+QCZbaA==", "From": "=?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>", "To": "Marek Behun <marek.behun@nic.cz>,\n\tQu Wenruo <wqu@suse.com>", "Cc": "u-boot@lists.denx.de", "Subject": "[PATCH] btrfs: Fix compilation on big endian systems", "Date": "Thu, 7 Apr 2022 14:51:03 +0200", "Message-Id": "<20220407125103.5074-1-pali@kernel.org>", "X-Mailer": "git-send-email 2.20.1", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.5 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Fix following two compile errors on big endian systems:\n\n CC fs/btrfs/btrfs.o\nIn file included from include/linux/byteorder/big_endian.h:107,\n from ./arch/powerpc/include/asm/byteorder.h:82,\n from ./arch/powerpc/include/asm/bitops.h:8,\n from include/linux/bitops.h:152,\n from include/uuid.h:9,\n from fs/btrfs/btrfs.c:10:\nfs/btrfs/conv-funcs.h: In function ‘btrfs_key_to_disk’:\ninclude/linux/byteorder/generic.h:90:21: error: ‘__cpu_to_le16’ undeclared (first use in this function); did you mean ‘__cpu_to_le16p’?\n #define cpu_to_le16 __cpu_to_le16\n ^~~~~~~~~~~~~\nfs/btrfs/conv-funcs.h:79:10: note: in expansion of macro ‘cpu_to_le16’\n __u16: cpu_to_le16, \\\n ^~~~~~~~~~~\n\n CC fs/btrfs/compression.o\nIn file included from ./arch/powerpc/include/asm/unaligned.h:9,\n from fs/btrfs/compression.c:16:\ninclude/linux/unaligned/access_ok.h:6:19: error: redefinition of ‘get_unaligned_le16’\n static inline u16 get_unaligned_le16(const void *p)\n ^~~~~~~~~~~~~~~~~~\nIn file included from fs/btrfs/ctree.h:16,\n from fs/btrfs/btrfs.h:12,\n from fs/btrfs/compression.c:8:\ninclude/linux/unaligned/le_byteshift.h:40:19: note: previous definition of ‘get_unaligned_le16’ was here\n static inline u16 get_unaligned_le16(const void *p)\n ^~~~~~~~~~~~~~~~~~\n\nInclude file asm/unaligned.h contains arch specific macros and functions\nfor unaligned access as opposite to linux/unaligned le_byteshift.h which\ncontains macros and functions specific to little endian systems only.\n\nSigned-off-by: Pali Rohár <pali@kernel.org>\n---\n fs/btrfs/btrfs.h | 2 +-\n fs/btrfs/ctree.h | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/fs/btrfs/btrfs.h b/fs/btrfs/btrfs.h\nindex 7d8b395b2646..a52587e0637a 100644\n--- a/fs/btrfs/btrfs.h\n+++ b/fs/btrfs/btrfs.h\n@@ -9,7 +9,7 @@\n #define __BTRFS_BTRFS_H__\n \n #include <linux/rbtree.h>\n-#include \"conv-funcs.h\"\n+#include \"ctree.h\"\n \n extern struct btrfs_info btrfs_info;\n extern struct btrfs_fs_info *current_fs_info;\ndiff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h\nindex 219c410b189f..55112318a330 100644\n--- a/fs/btrfs/ctree.h\n+++ b/fs/btrfs/ctree.h\n@@ -13,7 +13,7 @@\n #include <compiler.h>\n #include <linux/rbtree.h>\n #include <linux/bug.h>\n-#include <linux/unaligned/le_byteshift.h>\n+#include <asm/unaligned.h>\n #include <u-boot/crc.h>\n #include \"kernel-shared/btrfs_tree.h\"\n #include \"crypto/hash.h\"\n", "prefixes": [] }