{"id":813645,"url":"http://patchwork.ozlabs.org/api/patches/813645/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170913220546.19560-4-robdclark@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","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":"<20170913220546.19560-4-robdclark@gmail.com>","list_archive_url":null,"date":"2017-09-13T22:05:26","name":"[U-Boot,v3,03/21] efi: add some missing __packed","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"9ef583e94fa3d79f70e42f30382c47774f24ff8b","submitter":{"id":18760,"url":"http://patchwork.ozlabs.org/api/people/18760/?format=json","name":"Rob Clark","email":"robdclark@gmail.com"},"delegate":{"id":3400,"url":"http://patchwork.ozlabs.org/api/users/3400/?format=json","username":"agraf","first_name":"Alexander","last_name":"Graf","email":"agraf@suse.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170913220546.19560-4-robdclark@gmail.com/mbox/","series":[{"id":2990,"url":"http://patchwork.ozlabs.org/api/series/2990/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=2990","date":"2017-09-13T22:05:23","name":"efi_loader: enough UEFI for standard distro boot","version":3,"mbox":"http://patchwork.ozlabs.org/series/2990/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813645/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813645/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":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"GNXX2JoC\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xswsV2TZ3z9sNw\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 08:13:17 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid CC0FCC2261F; Wed, 13 Sep 2017 22:06:58 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9120DC225AB;\n\tWed, 13 Sep 2017 22:06:41 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 19711C2258E; Wed, 13 Sep 2017 22:06:04 +0000 (UTC)","from mail-qk0-f194.google.com (mail-qk0-f194.google.com\n\t[209.85.220.194])\n\tby lists.denx.de (Postfix) with ESMTPS id 941D5C22534\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 22:06:00 +0000 (UTC)","by mail-qk0-f194.google.com with SMTP id c69so937787qke.5\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 15:06:00 -0700 (PDT)","from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\tl11sm10122669qke.19.2017.09.13.15.05.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 13 Sep 2017 15:05:58 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=czY6WGJALjtWSa/9yiEE+o7Vi2maM01LVTuVMqv+lKA=;\n\tb=GNXX2JoCj5hLIC/ZqHrwk3yrGWpsIG8FgiVlDbb+XSdJOVE5xxAhQxhsPWz5tm1j4V\n\tGNzFetKLyRiaGDYgjCk+oTFRk4AVIUswlZeHNt8I9DA0nNPYXmi5C3Mg8C3AglistLd1\n\tAMywEGWu0kNYWT6SGoGrb+KrY64F6gvRSJbEQ9hhZkJiYieqjqnokmcTuclvOMorbv5T\n\t57K29OUvwaJ/MBc8nLHbxeTcy8N5uKMfAAgZKRy+zyRMoYPrV8mRcx8wnzxqTYvjnl8T\n\tGuILZ9MtJHfuMv6s6lmeWoE55cQxR21SrIj3hkYFNFlwJYDsWQhNs0/bvooMscR4jYHa\n\t8CAA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=czY6WGJALjtWSa/9yiEE+o7Vi2maM01LVTuVMqv+lKA=;\n\tb=Mg5t31/7CAr+mQ+Fl7r/7L/WE7213xeSZ+tGv6apraiNWRA1kgvKDgg05tZpf14lgy\n\tJshaFJIfcifneQbRWGDUCGZ/KsKY2FEm86ZWWZwYN0XT60+9dcex07JdR0FxAhnML3y9\n\tBTnrY3t8CfhzDP6HWFHSNF5ehRLf35BQJ9iT4DCQJitOh3fhTWlSIKbab3SpGcyfwILN\n\tI08/sOhMqes8CExMZnh2Q4zTay8/dzmCUBXnmuDzvq4Uhtwz4qPMScYMQG89Rl33WzOJ\n\tmVk2cOWHwmd01ngfw+JDXWqByQn2sI4sV5BS8JJpYD+u9bqyNuMLFFqjtR62W4Mf87xd\n\tl3EQ==","X-Gm-Message-State":"AHPjjUhbxookEyXyEYVObjJNW2FZUyRhsJtxg2osS4htU2aOclW3p0mL\n\tGcxcDTObjQ8KXKc0gTA=","X-Google-Smtp-Source":"AOwi7QDyuNnPOCgejgFDI+XLCF8dDPqlSuuRLrFTN0w0zCFSQVy+hTVGhQce3zzKr3lmIrXy2cA6aA==","X-Received":"by 10.55.163.201 with SMTP id m192mr25312833qke.27.1505340359227;\n\tWed, 13 Sep 2017 15:05:59 -0700 (PDT)","From":"Rob Clark <robdclark@gmail.com>","To":"U-Boot Mailing List <u-boot@lists.denx.de>","Date":"Wed, 13 Sep 2017 18:05:26 -0400","Message-Id":"<20170913220546.19560-4-robdclark@gmail.com>","X-Mailer":"git-send-email 2.13.5","In-Reply-To":"<20170913220546.19560-1-robdclark@gmail.com>","References":"<20170913220546.19560-1-robdclark@gmail.com>","Cc":"Heinrich Schuchardt <xypron.glpk@gmx.de>, Peter Jones <pjones@redhat.com>","Subject":"[U-Boot] [PATCH v3 03/21] efi: add some missing __packed","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://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\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"All of the device-path related structures should be packed.  UEFI\ndefines the device-path as a byte-aligned data structure.\n\nSigned-off-by: Rob Clark <robdclark@gmail.com>\n---\n include/efi_api.h | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)","diff":"diff --git a/include/efi_api.h b/include/efi_api.h\nindex ec1b321e8e..175341348e 100644\n--- a/include/efi_api.h\n+++ b/include/efi_api.h\n@@ -284,11 +284,11 @@ struct efi_device_path {\n \tu8 type;\n \tu8 sub_type;\n \tu16 length;\n-};\n+} __packed;\n \n struct efi_mac_addr {\n \tu8 addr[32];\n-};\n+} __packed;\n \n #define DEVICE_PATH_TYPE_MESSAGING_DEVICE\t0x03\n #  define DEVICE_PATH_SUB_TYPE_MSG_MAC_ADDR\t0x0b\n@@ -297,7 +297,7 @@ struct efi_device_path_mac_addr {\n \tstruct efi_device_path dp;\n \tstruct efi_mac_addr mac;\n \tu8 if_type;\n-};\n+} __packed;\n \n #define DEVICE_PATH_TYPE_MEDIA_DEVICE\t\t0x04\n #  define DEVICE_PATH_SUB_TYPE_FILE_PATH\t0x04\n@@ -305,7 +305,7 @@ struct efi_device_path_mac_addr {\n struct efi_device_path_file_path {\n \tstruct efi_device_path dp;\n \tu16 str[32];\n-};\n+} __packed;\n \n #define BLOCK_IO_GUID \\\n \tEFI_GUID(0x964e5b21, 0x6459, 0x11d2, \\\n","prefixes":["U-Boot","v3","03/21"]}