From patchwork Fri Mar 9 13:07:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 131105 Delivered-To: patch@linaro.org Received: by 10.80.194.209 with SMTP id u17csp1001839edf; Fri, 9 Mar 2018 05:09:05 -0800 (PST) X-Google-Smtp-Source: AG47ELtqPAPVsHdGJDott4r2gsz0ERLHdS5wF5SUCbTVw05NaXHgUtdm8JZqWy1gGtagq96wkq7W X-Received: by 10.80.230.153 with SMTP id z25mr37907810edm.61.1520600945709; Fri, 09 Mar 2018 05:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520600945; cv=none; d=google.com; s=arc-20160816; b=D9I0JaqMufuAzau72Qb3dhMpb+pFEMceDFvj6U4NJlr1M/Jaggzdx1i365rmODfGlt z2fW3srNvAj8OhHShoKr5UgGtGk2zMZ07sijpzqp9yh54zjQNSeiXZrI98HCbO5VwGZ8 V1EK5dIvJf70urXYwCBPLvuoPQfZJGnq0/DBghpuahs9AzuGHce+3BT2kbsi4tNAAMIJ XBh7o9v6tAoP/ikrF9gz1hwp41bZ44Qiq4DV1ZvGyqy+08EelrxhwUrLCxLCCicnhaB5 OHti+pBm5D3QLBmZDKX9CQuUGxYJmILS2v0p8ogYX3Eh2/nvX4zmqxc7vNHDS2567ATA IZuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=T8bh2QxGkeDJsR0awfnaWO5bNBuo+hVJEKxJdhMjXSo=; b=JjKZ7M4u5uNEifzAbkhlQN+jUjZK0b2d6OCUJcpJQukJTF3f2IBRaTnmFoUhEhdBV/ RRFh2fhj4IIy8QsdDpCIiPNXeIyNjeDLS7gIHSzf8UtDbSthMuxPweVG7CEFPVGZ5aW/ X8hlX8TAlaPmpF+SswP6uXYPpFFWn5oNC9nw34mQfG0crhzdYhgSJQ21ysPaRsezyIM9 83L5m+pxTbtEfyHBzBbxCjNCbBhOERWjEM63W1kBIfVQo+jhPG+hnRKTFqgDaY/GKlJt twkY1Ul2xsG6x8SWcR6ClBbTk1MaV+2RdKOUJENphGpiagU6tfYgpAldkyIEYCcRs0mD FpKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XCKw80yT; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id t10si1210431edj.291.2018.03.09.05.09.05; Fri, 09 Mar 2018 05:09:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XCKw80yT; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 4CFEAC21D56; Fri, 9 Mar 2018 13:08:22 +0000 (UTC) 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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 762CBC21DFD; Fri, 9 Mar 2018 13:07:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EFC26C21DFB; Fri, 9 Mar 2018 13:07:30 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id C917CC21DA1 for ; Fri, 9 Mar 2018 13:07:26 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id z81so3784349wmb.4 for ; Fri, 09 Mar 2018 05:07:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IVYCEeDeNrGFBMrIxSFgFu/f4Y54PmrpgfqgqJ1hTIM=; b=XCKw80yTCPeXA2Vt8vM6VoZWyosQy5WVI4BuGc1v3+nQpyrqAXJevLx9zWFwr+TNSU 8LRGX5hfsFNUuh8mJMs5K4Mo+dqLYX9fEXvGM/whTWa2UlV56WB0V83HTUsYAeTdfwN9 p9kXautdGJ4SDgQXHF64kQSBeyyg1yESXFWF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IVYCEeDeNrGFBMrIxSFgFu/f4Y54PmrpgfqgqJ1hTIM=; b=S4uu4AjGTmjtL82GyPVUS8xceqJmHJ3OEh14Q7f0A6JmT2oLoVrcKocVmPXPlDfpHv LJ/1grSmE+f4P9r0P3zuqmIJOrzEGo30ca0pLEQGL0Ppw34AbgLnfhUQVIeUpZ7hQXpB LOolLurjUf4OeoY7g2+1MepKYNV+msEIIHHFakO2Kt8gcl4GrdTCMQ/Wz7VX3fGPkGVJ dyxeiIuG1YfQzrfmxj139LceKvEucmS+UDDNlv4971SsGeWIzmgjrrxOqLf0bg8gEvEG zpSpzoKxmmuXtUTrB7RxNhGD6QPsKKE6tUstE2KPL/SdbkUpesHslRTngXTM/A8sLAhU 4vUA== X-Gm-Message-State: APf1xPAnhblr7NKmKVdA5kwiTpB3qCLRBPQrPcy0sqUDNPwF7oz59l7P EeaUMOEhfpInQP2UOJYfAlPpk+9Jc4w= X-Received: by 10.80.185.34 with SMTP id m31mr36018381ede.214.1520600845848; Fri, 09 Mar 2018 05:07:25 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id b11sm827527edc.10.2018.03.09.05.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 05:07:25 -0800 (PST) From: Bryan O'Donoghue To: U-Boot@lists.denx.de Date: Fri, 9 Mar 2018 13:07:20 +0000 Message-Id: <1520600841-8810-3-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520600841-8810-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520600841-8810-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Breno Lima , Fabio Estevam , Utkarsh Gupta Subject: [U-Boot] [PATCH 2/3] imx: hab: Make usage of packed attribute consistent X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" commit cd2d46003ce1 ("arm: imx: hab: Add IVT header definitions") declares struct ivt_header as "__attribute__((packed))". commit ed286bc80e9d ("imx: hab: Check if CSF is valid before authenticating image") declares struct hab_hdr with __packed. This patch makes the __packed convention consistent. Signed-off-by: Bryan O'Donoghue Cc: Utkarsh Gupta Cc: Breno Lima Cc: Fabio Estevam Reviewed-by: Fabio Estevam --- arch/arm/include/asm/mach-imx/hab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h index a522cba..ce9a44d 100644 --- a/arch/arm/include/asm/mach-imx/hab.h +++ b/arch/arm/include/asm/mach-imx/hab.h @@ -22,11 +22,11 @@ #define IVT_HEADER_V1 0x40 #define IVT_HEADER_V2 0x41 -struct ivt_header { +struct __packed ivt_header { uint8_t magic; uint16_t length; uint8_t version; -} __attribute__((packed)); +}; struct ivt { struct ivt_header hdr; /* IVT header above */