Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 76EE0E00D13; Thu, 2 Jun 2016 06:38:35 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [157.56.110.76 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0076.outbound.protection.outlook.com [157.56.110.76]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5FEA9E00D06 for ; Thu, 2 Jun 2016 06:38:30 -0700 (PDT) Received: from BN3PR0301CA0017.namprd03.prod.outlook.com (10.160.180.155) by SN1PR0301MB1600.namprd03.prod.outlook.com (10.162.130.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.2; Thu, 2 Jun 2016 13:38:26 +0000 Received: from BN1AFFO11FD031.protection.gbl (2a01:111:f400:7c10::196) by BN3PR0301CA0017.outlook.office365.com (2a01:111:e400:4000::27) with Microsoft SMTP Server (TLS) id 15.1.501.7 via Frontend Transport; Thu, 2 Jun 2016 13:38:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD031.mail.protection.outlook.com (10.58.52.185) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Thu, 2 Jun 2016 13:38:25 +0000 Received: from sweet.ap.freescale.net (sweet.ap.freescale.net [10.193.20.55]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u52DcLD9013358; Thu, 2 Jun 2016 06:38:23 -0700 From: Zhenhua Luo To: Date: Thu, 2 Jun 2016 21:38:15 +0800 Message-ID: <1464874698-13315-2-git-send-email-zhenhua.luo@nxp.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1464874698-13315-1-git-send-email-zhenhua.luo@nxp.com> References: <1464874698-13315-1-git-send-email-zhenhua.luo@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131093483056690829; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(6806005)(586003)(110136002)(8666004)(85426001)(8676002)(4326007)(33646002)(5008740100001)(11100500001)(81166006)(2906002)(104016004)(50466002)(189998001)(19580405001)(19580395003)(2950100001)(48376002)(87936001)(92566002)(229853001)(15975445007)(76176999)(77096005)(2351001)(5003940100001)(230783001)(105606002)(47776003)(50226002)(8936002)(86362001)(36756003)(106466001)(50986999)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1600; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; CAT:NONE; LANG:en; CAT:NONE; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD031; 1:AyQrDmk3mydniVaT3FIDJIs9Tm+y8kwdJxzOUvYNcXk0O9e5LCdVDIKMLqQDRv80O1OIeelaw9PBHLHq9W4J2WIGhqHJQKC8ml5Seso/2DMt+WSaho1Z+9tAFPJ+CA8oGH5FYVvmrqdY5flpfJsBdfq59hVBUI9LogGNT8bchZ4DAeci1Dw/XZUWRkCchge730FR3j5wkgYmLE5SFYHVma2M4l8uM2mbTD9cFkS1qAynRuj2jBbMWy8Cpfmayflc4Houf85fDRCSOrlLHt0koFpmi2N0uYlZviRKGhgVlPAfSlUZbPBSeMtcILCf2u7bK/dwBdQRp9Ea9bXNlv/GUHyrl2DE9oyo21M7SlFcmwJA//CEkiBDhK/LlSnIWSy39UtXWvuz33vrZM9byz3BRf31fwoKCc3dkFT5TXkwFitxLaRjWh+vDgHR63PiHcx7pAfGtNWvzMQ7ETVH//73j11oP5TiwNaCTjnNEm2zfuNej68RXwxMjBOTwP6SOxQ3MFK7lqaC+mUBKDxuTIimaotV16TcXnEjVyZNpHIwiesqu5QMyTGgNyge/F7j8w4AcUILqsOYsPDipzaw9anOq52Cme/jwziS3t9T04RDVmJHADYaTUrXOoToZxCew2FkTZFeiS10RFJAutXA7OmHgxYb6UvM6FPEDitsWbjbfy5MaI40r64aWdlA81GtUG3d MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: be5546f8-5a63-46a0-152c-08d38aeb2c6b X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1600; 2:Zz3MJIt/eXFnS6WFTMRTCJqU3yo4EdkKKqalgh8okHMFtcJSdD/tJFWI1EQMQrqeHyTY1SmZMnX4CtuRms2FV138+DQC66wVOyN74LyXGNOd3AjP0id1nG5IgNxMce90Fkg8ygqMTe73Xc1qT5LlMGZXs/NSyCNeGQi9Ukw9EO7XVmhKUg9/XddR2g5gzaSW; 3:F+O7NT5OmksMmr52Y00NlfQ0HhbXPoF5IjvHZ1DctlXgEGOSMfxWcdcocOaI9LRfRNyLX6r82sYUXvCdkO5TO+kN8pqUOf+FQRlNTGWHtmTm07VfLrNwShM9tQ+cxTQt/ssg67LjhQc8nr6JVB7Hj8hDrOZz0IxE5CEPViLZtK4Q+CXbKXYE2MUbpokICjL6vdnGGZn04o4Gn5hNABTzgV3EMh2irakWXnUJaB2itSc=; 25:MX53kXe91UmYviIpoMJEsIYvpDB51kJHm4o01sb0GaAx/DEhFKSHL37JYWAX0+VU2E7cwHZ4tS2tBWylagZGzJ5hVpeGt1A4Ey2Tu2Xln1h93mih4a+r31tJdZgENHe5FprZtHgMS0KgVZ0FKsamMJ4xABP8lVcu3IwICJtW4U8WswipAGvpzHejMAY1UJvQt1TSK0xQv1F5HJ8kOV90fwhImbNa75aKwKKteGa2KkSOIuSpfII0KbStxcCN5V7kf9Hw27OLWjv/BVSCPV7QyZitCPNq/IotrjN3TzUvN4dAnY4S8D95MdgXgIuiIEvf9Zp2xDLzmdUON/ZkNrY6W+hTALwiBGlXyE/2Vs7wibXvKHiiU8PfPQxDxdOKHql6C/cqtl4lHZa86lUhLdKQ9c0ajMvpUeAHPSiXUbLMKoA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1600; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(22074186197030)(185117386973197)(183786458502308); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(13017025)(13018025)(13015025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:SN1PR0301MB1600; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB1600; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1600; 4:t0ACpwX9RKH1tlMBsH744RmQIn4dtv3jnhYNn/yoQwEnDKoYbHpxQ89RqBulsyxDHnfZInwnwGGLWthuizsixNNdgZj/gAeWknrhSYc8tgQy8GKuHf9VHEJ6pclNBgWhGoFj12MtZl1RW5LVaQmUAUsnXAjBY0wGrZuvU2UZ0evpUYhIJTLKuRXvd/0V8jV8WOgOXQi/MMSvuaDnnpoPG77TldVLtiactjViF/in5MitwTkAPwYtTSxnbeLMhkUt7QQ3KZNw3zOYGsaMQ0+HPq7/W5fFC07WzcfCwB5eCCzKWn4G0dC0F5ItHOpyxcHMDkSXmpXVwV0YKjWi74sNFf4pkNMrhjGzQdVpgmfbVdU1c2EegHGSpUZAYIUVDOfKIylrs2XB+7t6MTdDYFuLS74M6u2xJ67cjCp2a/3Nds/Lg859VXpGUxWTePNr4KFwKkdwMHyuQrlfi6Rks6pi5T1SOKfBDo5Eq62U02DPu5N1WuISG8ElULXbGE3bSsJoRHZ+J25sWYnsytZ9PN4HheLl9JWf5xuvsi06+l0LdVjTXaNY1uGrp/z2ObmpWcFitdKZkaWWujYk/NaOs9Z65w== X-Forefront-PRVS: 0961DF5286 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1600; 23:jvPJbu2/OlXQczgYtQOiFgbaE6dSMtRWLJyB/QO?= =?us-ascii?Q?NGAHdpfpVCajakTSx3MfEcRfisb3RcPMhgGNjyw1dr5PBTsFKBgSr2FqdfQD?= =?us-ascii?Q?aOWuZuyp/aeJXbaf6mUed+8J0H4h4KembxviCoTWD9pcfzMUhMjwirjxwDOq?= =?us-ascii?Q?TbJsfx06DaTQMFFrtCFeGDYrfK0TAUo0jUb70wzyeKuuxDi1s+uZZc7h15S8?= =?us-ascii?Q?n2teWcPtOrPQckqmw5lVT0O63WIJVWGW2oQTznmEhi6OoIrsAYipv6UVYkG8?= =?us-ascii?Q?FaNKO+8Yz03l3RL5Lmc46fVygcYUH9ph0Q5+BY6PXfmdIkUKiM0Q59tN6HVb?= =?us-ascii?Q?kZUqFV6jU1th0A7Mk624efCETzwQC06I6hbSc4Wfhuw/3kGv/xRadmGDdqYM?= =?us-ascii?Q?3/x0+WdIZqbUgIn1gUpeP/yZziia1WLOp9oX0tLlYp3kZ6GDtc2ncwzYz9/U?= =?us-ascii?Q?EugJEVegFQk4s+qTfHBLe4yn0d3oTQ3tu7oBLF0Frfsm1jDPrGv3FhxRL0aM?= =?us-ascii?Q?rQU25dH1LYHFi8SyG5NFMA9EHUAGoTHztfwxTD1HCIJ2zxgQWahZcrVYqk6a?= =?us-ascii?Q?BhCrs4RseOWV5ckd96oG6yk4+M44Nbl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M2KOfO20XkQhOkjQnxABZwDjyDiUGBmdQboj+uk3fSAagxwac38ySddQoIdLoaXj2TE9plvQHH8FQf0aXBeU8=; 24:UPCYWNs4RJI6+g0/ifzkj6/59PQk8d9fAb+KqibZfAfx8QaWYiXAzIn9jLuhSI5h97GLCYO8rFf69iC/4qi7liMi2pQA4XqWzWC70rTKljo=; 7:FJiNlQaCtXwAjXzwxs+ZkVkZpGKpbj1om/ppUkkSYMKXfvHGrsaiMXDjKl7hbMK8bKVG/7MP+lZhvporGeM7EZ7B6L+CNhKzApiSpMSKT1LOgvoFuZk89v+V1WGHHxXiBsPm5tXlLnRav93MhcDKf01OvdyqdlImNYnQD58En/6QOBA52yZBLvKE3GwKiSuy SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2016 13:38:25.3882 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1600 Subject: [meta-fsl-arm][PATCH 2/5] linux-ls1: fix build issue under gcc6 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2016 13:38:35 -0000 Content-Type: text/plain Signed-off-by: Zhenhua Luo --- recipes-kernel/linux/linux-ls1.inc | 1 + .../Fix-the-compile-issue-under-gcc6.patch | 92 ++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 recipes-kernel/linux/linux-ls1/Fix-the-compile-issue-under-gcc6.patch diff --git a/recipes-kernel/linux/linux-ls1.inc b/recipes-kernel/linux/linux-ls1.inc index a1007b8..85b5391 100644 --- a/recipes-kernel/linux/linux-ls1.inc +++ b/recipes-kernel/linux/linux-ls1.inc @@ -12,6 +12,7 @@ SRC_URI += " \ file://0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch \ file://0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch \ file://0003-use-static-inline-in-ARM-lifeboot.h.patch \ + file://Fix-the-compile-issue-under-gcc6.patch \ " KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" diff --git a/recipes-kernel/linux/linux-ls1/Fix-the-compile-issue-under-gcc6.patch b/recipes-kernel/linux/linux-ls1/Fix-the-compile-issue-under-gcc6.patch new file mode 100644 index 0000000..3d080b6 --- /dev/null +++ b/recipes-kernel/linux/linux-ls1/Fix-the-compile-issue-under-gcc6.patch @@ -0,0 +1,92 @@ +From 5d39bd421fc093e2c852316080538cef85a9e1a0 Mon Sep 17 00:00:00 2001 +From: yocto +Date: Thu, 2 Jun 2016 00:18:33 -0500 +Subject: [PATCH] Fix the compile issue under gcc6 + +Fix the following build error: +| .../include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc6.h: No such file or directory +| #include gcc_header(__GNUC__) + +Signed-off-by: Zhenhua Luo + +Upstream-Status: Pending +--- + include/linux/compiler-gcc6.h | 66 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 66 insertions(+) + create mode 100644 include/linux/compiler-gcc6.h + +diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h +new file mode 100644 +index 0000000..cdd1cc2 +--- /dev/null ++++ b/include/linux/compiler-gcc6.h +@@ -0,0 +1,66 @@ ++#ifndef __LINUX_COMPILER_H ++#error "Please don't include directly, include instead." ++#endif ++ ++#define __used __attribute__((__used__)) ++#define __must_check __attribute__((warn_unused_result)) ++#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) ++ ++/* Mark functions as cold. gcc will assume any path leading to a call ++ to them will be unlikely. This means a lot of manual unlikely()s ++ are unnecessary now for any paths leading to the usual suspects ++ like BUG(), printk(), panic() etc. [but let's keep them for now for ++ older compilers] ++ ++ Early snapshots of gcc 4.3 don't support this and we can't detect this ++ in the preprocessor, but we can live with this because they're unreleased. ++ Maketime probing would be overkill here. ++ ++ gcc also has a __attribute__((__hot__)) to move hot functions into ++ a special section, but I don't see any sense in this right now in ++ the kernel context */ ++#define __cold __attribute__((__cold__)) ++ ++#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) ++ ++#ifndef __CHECKER__ ++# define __compiletime_warning(message) __attribute__((warning(message))) ++# define __compiletime_error(message) __attribute__((error(message))) ++#endif /* __CHECKER__ */ ++ ++/* ++ * Mark a position in code as unreachable. This can be used to ++ * suppress control flow warnings after asm blocks that transfer ++ * control elsewhere. ++ * ++ * Early snapshots of gcc 4.5 don't support this and we can't detect ++ * this in the preprocessor, but we can live with this because they're ++ * unreleased. Really, we need to have autoconf for the kernel. ++ */ ++#define unreachable() __builtin_unreachable() ++ ++/* Mark a function definition as prohibited from being cloned. */ ++#define __noclone __attribute__((__noclone__)) ++ ++/* ++ * Tell the optimizer that something else uses this function or variable. ++ */ ++#define __visible __attribute__((externally_visible)) ++ ++/* ++ * GCC 'asm goto' miscompiles certain code sequences: ++ * ++ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 ++ * ++ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. ++ * Fixed in GCC 4.8.2 and later versions. ++ * ++ * (asm goto is automatically volatile - the naming reflects this.) ++ */ ++#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) ++ ++#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP ++#define __HAVE_BUILTIN_BSWAP32__ ++#define __HAVE_BUILTIN_BSWAP64__ ++#define __HAVE_BUILTIN_BSWAP16__ ++#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ +-- +2.5.0 + -- 2.4.11