From patchwork Fri Mar 9 13:07:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 131103 Delivered-To: patch@linaro.org Received: by 10.80.194.209 with SMTP id u17csp1000817edf; Fri, 9 Mar 2018 05:08:14 -0800 (PST) X-Google-Smtp-Source: AG47ELtP4U9ULLugPdlSTZevyTUpgVA1jdd24s9ghkN89Qrb0Hfz7RLdF/NaFJOA9PTi3O2gaiAW X-Received: by 10.80.221.7 with SMTP id t7mr38126515edk.192.1520600894652; Fri, 09 Mar 2018 05:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520600894; cv=none; d=google.com; s=arc-20160816; b=0UYl2q+o5sJvku+9bg7jw4uAU1HR7XvqPV2R5UhjNiOno+hrE4TEK9M/8UwCDw52l8 v7yRkBe4L6NFjm/RytLvNdPG6gv4glswWKuDsR9gXzlYvwjb1ri0Y5489N95kzb3WWbg ixlWvBnvKfaQYCftByYqxDEDMy/rgN+PY5zC5q8kLWSYFuF9uaE0N1DEW6Xq//oOiFcE YQx25WtqegMgFDjFSHXILkeo+D7SykkRxjanm4shhL24PCRjGRTMRl+Mcx3slxkVy9ff 70+YX0/3Ci/WgVmbDsRd5MU/zy8xYsTdhYBSY1ik2vY2tjlInIwJX9aUwyodIc1UGqG9 qwhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=epiGDk0vkrkbjgbKIeG6EajL1c5LvdKjfoaoYEzZFag=; b=MN0CfS2oj0i/75pN+tNG9/JX6FmweDGR/vMwbp/6BR+lJuCEzmthEycW8o4OmWVNfu r5qufStzIH8ZeG7ksvJ+cYWmqWYiqRBn1stqRX5P+zCg2Y+fAc2IATu25Ia9kULa4+4R +svlj8A9SBQv5nzI4fEA8PQl00qg7pPfHPrP6AoyDIcETqIFW1wriIzjfQyOgwVVFmxt iYPbzGoyQksQUc51I1NG3uNc55sagjdHGiR3KF3qHXl8cJQz55r6DEDxHS870qKFCLZd JTTns1+9SUF4pg7EiYCQVGd8AlcMrC2H7OVGw1It8MszQF9Ej2CQycqCcesnbBrUAQ8A YwMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iOoxc8Mh; 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 6si1023180edm.266.2018.03.09.05.08.14; Fri, 09 Mar 2018 05:08:14 -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=iOoxc8Mh; 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 3F8EDC21C38; Fri, 9 Mar 2018 13:07:44 +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 B335AC21DEC; Fri, 9 Mar 2018 13:07:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 07413C21DAF; Fri, 9 Mar 2018 13:07:26 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 8E97EC21BE5 for ; Fri, 9 Mar 2018 13:07:25 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id 188so3801053wme.1 for ; Fri, 09 Mar 2018 05:07:25 -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 :mime-version:content-transfer-encoding; bh=bUt3ScAS7hxAzcdUPpuxT7TOu8Aeb49WlrFtDzAm+qE=; b=iOoxc8MhpH8DoLWOViZ+jDzou2VoJOgLSbM+6cySZDn9a0sNW67KyN2yygZ8amQ+dL jI3WPhg5q5T5tlhjhDwl9HyMq20XFYx5XzB65yaOIHdyu+mRSpzmcJg/OG18JsamRmK1 A9INoUiNt0KnthPqN2+vUnFDv0SO+IX6lBLkA= 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:mime-version:content-transfer-encoding; bh=bUt3ScAS7hxAzcdUPpuxT7TOu8Aeb49WlrFtDzAm+qE=; b=TAfFvNtt5PwiX+o3PC7mAvr2G2lgAUQ06Qo3HgrM+xN1WsRqGiIWy9jvyrh0PBDR8D X1G9eo0lUVecvOYj4Vbt1cZmwpkapa7VQPF2jiWPX4l5qaYjb/7DXhWzSu5BN7cEn4y+ 8M5ikuixMUKbT/PVBayqhjvOLD3jja5QwhJiSMnQZCEyt7WhQRzXLE4jGE1ti9x8DWA6 0QHVnq9RCwm/DytytYsUlqhlDVZvqCObLV71YNDrX9XrAkY9DvxcIefgdD+ZEbtArd6m xE17yYEZ0KmMbjBIdfc6j0vupGupy3D5D03m/kgMYXzaWzr1It1nGjPJBVU8OZCvE3Dk Q5bg== X-Gm-Message-State: APf1xPAf6gcM0Rd72D1Pemb8ziUv2treTwU/7UQcWperlFUWiCDlrBNg HUlbY5cCl2RYhdcznTXxab396hCMDKw= X-Received: by 10.80.206.22 with SMTP id y22mr36512014edi.137.1520600844911; Fri, 09 Mar 2018 05:07:24 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id b11sm827527edc.10.2018.03.09.05.07.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 05:07:24 -0800 (PST) From: Bryan O'Donoghue To: U-Boot@lists.denx.de Date: Fri, 9 Mar 2018 13:07:19 +0000 Message-Id: <1520600841-8810-2-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> MIME-Version: 1.0 Cc: Breno Lima , Fabio Estevam , Utkarsh Gupta Subject: [U-Boot] [PATCH 1/3] imx: hab: Fix usage of packed attribute 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" commit ed286bc80e9d ("imx: hab: Check if CSF is valid before authenticating image") makes use of "__packed" as a prefix to the "struct hab_hdr" declaration. With my compiler "gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)" we get: ./arch/arm/include/asm/mach-imx/hab.h:42:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token struct __packed hab_hdr { Fix this problem by including 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h index 561de9c..a522cba 100644 --- a/arch/arm/include/asm/mach-imx/hab.h +++ b/arch/arm/include/asm/mach-imx/hab.h @@ -9,6 +9,7 @@ #define __SECURE_MX6Q_H__ #include +#include /* * IVT header definitions