Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A70C4E00DB1; Fri, 3 Jun 2016 00:50:10 -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.70 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-bn1on0070.outbound.protection.outlook.com [157.56.110.70]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1131BE00DB7 for ; Fri, 3 Jun 2016 00:50:02 -0700 (PDT) Received: from BY2PR03CA006.namprd03.prod.outlook.com (10.255.93.23) by BLUPR0301MB1586.namprd03.prod.outlook.com (10.162.214.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.6; Fri, 3 Jun 2016 07:50:01 +0000 Received: from BL2FFO11FD055.protection.gbl (10.255.93.4) by BY2PR03CA006.outlook.office365.com (10.255.93.23) with Microsoft SMTP Server (TLS) id 15.1.492.11 via Frontend Transport; Fri, 3 Jun 2016 07:50:00 +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 BL2FFO11FD055.mail.protection.outlook.com (10.173.161.183) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 07:50:00 +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 u537ng1X018473; Fri, 3 Jun 2016 00:49:57 -0700 From: Zhenhua Luo To: Date: Fri, 3 Jun 2016 15:49:37 +0800 Message-ID: <1464940180-18357-10-git-send-email-zhenhua.luo@nxp.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1464940180-18357-1-git-send-email-zhenhua.luo@nxp.com> References: <1464940180-18357-1-git-send-email-zhenhua.luo@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131094138007337741; (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)(199003)(189002)(9170700003)(11100500001)(189998001)(8936002)(8676002)(86362001)(586003)(2950100001)(110136002)(50466002)(92566002)(4326007)(81166006)(104016004)(6806005)(5008740100001)(19580405001)(19580395003)(36756003)(77096005)(105606002)(2906002)(5003940100001)(106466001)(229853001)(50986999)(85426001)(47776003)(48376002)(76176999)(50226002)(15975445007)(33646002)(230783001)(87936001)(2351001)(8666004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB1586; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD055; 1:PsVxtGNIbMlQvWs3+LmeMBB26sx1UAXDZeXvOjoSvlF1dLFueuuIQ1L719thmlnAfT8QGkPxtJqAj/FeUUed1PB/aujOfA0Qv9D42wcyZ4wmmYYJTjnRX63bZOb8SJxBSGWdfZ2ddumJKWGi0y03cdoAb7xJjwdNHsC09tXwLMBDw663/+3ZnInkAnCXUkStbf2jsFmax1Ji2HbMS2shoxZbtPiONdQuwjNKiF/JPT6HdH0Wax+TkKd3m9pi/Y7+ZTdmLlQTP8JuLxyzAid+9I+h1QzEvb68UG51eael1yE7E99T0NK/8e8noT7+8MXqh5YZmqu4My+fcaZcos1BV9ZazPDJV2wcVkreohsoadylhgJESGNgkMFQZq/uW1p2ZFCj9Z63Q0AMTC3A4m9QFGPaFSceo7Spt7SEPyY/JCYogH1hZgDl4JUPjKAW8VGRfaaGZ9ATN6eOLiH26Rd9NWiDC747fmMlygZsEGqWrSaCy71spUMWhlKGMvHcH4sUmFtGPYYm6+kUsPb9zZB4QiFu1WDy86Y6GgTcXADmQgXFkyTkceGNZK6LaEJPpgLitVOQHljTvZs9AD6q7XuylJyXMlm9USwLWtgUJA62UAIDLCa9MyCwpJ2Hg2RM9WiHV1rIYzRcKZAp9BJmLRk6Rw2359pIZTxNOY8H17uBGkAeerKrO4F6i0qo0A9s1GJZ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d4007707-e79c-4936-d9b0-08d38b83aa84 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1586; 2:/pzUDVdCI9v3oC/3Ro9znTAoH4PL237EMhJO1AbJWolgEdmVYIhLSa/tHvxMxxm/yn8m0XBp2Q2oe8SsY1TLPL6wMMwizGVwpu5N3vdvF3BJwTdAC7T0v8CSd8GZsf9evhISKXU4YmkVeqw1VRuA4st2rJWyNkXobEAKT67wm3ZzOKLYytApXEUYOketd6+q; 3:mHcdLNvPIRDaTvYFYytOMpl2hEaLWrhgRrvzUTh6e5j0OdJ22e1bdQt0yJmurNdm2gNoLt+zVBgR6o8jT1wkNm/LDtwPa1Ut6Ravdm9NuJJTwY5E/LoN17coPpb5bf6EPJ+npg396kzxAvbnUqUhwKDjEYm25yRxUIHCgZWuz93jhVNjuVKd/s7lttTkk1rXZ7FHMO0AtcpbrfCHKqGndhMZySV6hf6Cn7ceosI+q6I= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0301MB1586; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1586; 25:HZ9OjuJDWQ7+F69Dk2cr7edCKk9yaglEaH35aZaXhLdmeMLShHWho/wOjv+RDCOfOhaJ6oZ7Swzj0Bw3vPBk1ROENBUqN5fFx9OHOzYS91mRB2Xm7t/dIKTbuhLek6RWjZMCfvhdCxtX0vVs++FOdhi0bf+tit4uaA71JqGpvkOsl+vRQJz4pbhXGJTnhwK/0NhlCPPMBGWAXNf6+VUNreHp5EWfCrGNzCwfStbYyMKqcnhieG4KuEQ3zTqomSo//i7h2ECKwKn+8OeKNg/4e2Jd1Fh60TPErXmBFHUry172T0m0S5EVQOuZq0sP6JF6d9EEpU7KP+5pLhf6Fj/XlG4gYyeaHVgjAXd5QFUtY5fuSfRkRYWJ7DFmjvayLTE21Usk3u1N05UC1hakkt9ZtSbKYWfcKgLi+yYVqojftofWf7MFobWMZwU4W+MoocR/QemSuDVJT/2f4tPIbrhigTlesANpkws2Lnh64Lh8k232YqCcfgGqNGmstZ4hSgA7l7CQCPAMyXasCuwZmnokv9zVYGwIIr8Rpr+AAM3LtBxhYVfAeT25A+5DfwSV+9JpDiWw3tJgEqih8ASNlWytdFOCx7tYjA2KgRy2dwy5xPfG31S3nf5MdoCfrnRW0QJ0uYP+otntIIEKfnBUAyraL4fexBsNWHqrcGBX7Fa/KMDYOR9f3J+8ljcfAGHZqqI/YD5zRk6DQoA7gqbkDGhXj1GfJAo3QkR9OtPxvDd6NxJOYp4R60jysjC3Qn2STWDib8igiCXGgGWqqXOaJrhkxBHJI1zc+oQPZZ0EY3NJpq1OxD35CXN2M0yElW6bIZFr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(22074186197030)(185117386973197)(101931422205132)(183786458502308)(46150409022019); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13023025)(13024025)(13017025)(8121501046)(13015025)(5005006)(10201501046)(3002001)(6055026); SRVR:BLUPR0301MB1586; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR0301MB1586; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1586; 4:7f91l5NdaeyZVlr+Rs4IgrHT9Oml/Qj7twthb/97IpKKxeXI5ASQbNPBnAKu1X1Wu/uHmuJcdJBHHr/YYLb0HVvExYkVSSMI/GYnMSpkMBigfYh4r1Amcr8EYEpAN8BrFv+oa6lHtdwlbl4L15irqjA7kGUASgCnNOesWchV54jPIfdpYVojEcwrNo1BfeoRvM5j4ixL1UWIo3bQmYpAeewvVVmBYlah2eGflkhYrWEY4b4Qf1Dp90S2QpPtIN+A/l3o2g9gNRXzLQWpfouHVe6+7xMILbiHRWDGc1uwsIlowCD1jg9zpjSD62am1Duu6sVi85ucy4a/H/RQn/RdCDcgmZg4bgM0mqxehTVLW+eSpjZsM5lfPhjOauN95BU1Vfv+MXYBGW85lvct+ZXE16Hg1t2FBSy7d7uizD3K1dJ9L5C+2niJ11fN1kX4rEfArrmeme/rJKiFPR2yjBRR9NhC3Vznp4Dg5FTCgEOc/zFiUSmlTUBw9arMVfmlinF9kAIZX5drsdfhz37XxqrndHUZvZf9+jcbF2vx7U7tr4mHdlNygR6z+nD0zIQidhYrrChIXxHXV13/iFhrJKqqeJFYisR//W8/uEdRml6NgTixolfeCsmk6WKOmk2jBstla0f96cneRD7STVbO22IwUwnj31YWSORy6A1gJ57T8qk= X-Forefront-PRVS: 0962D394D2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB1586; 23:t56UnzZXS6qZd5F2bmpmpC31g3tiGYlbDZ51841?= =?us-ascii?Q?AqidcCsgVQYrqCbvSGDa6Q31ezJ0UT5lsLZQe4Ev0D3IEmyBo96T7mmmu02k?= =?us-ascii?Q?sSDlIoyahHK8XZtz+wrcuC4XtyotVv4+wjfiomRFVj22ji1ie2xFO2KhYpfM?= =?us-ascii?Q?ZgH6vDtkYCcqjtcJ+oe+GupG0n75Ggt5Db68qaPnT/Q2xhAIB2Kqyu6SGwqr?= =?us-ascii?Q?AYOz02XpWd5TI1U40FLZGHHsiZTjdiExDsFJmMIhKIuJu6fF3m+SdT5acINs?= =?us-ascii?Q?y2xeTJ3F9hATipcRzLVvX5nVnIyG5itW4s+y63tk+q0eVMNLj79IkWO7lt/2?= =?us-ascii?Q?ZVplBkDGtt2y2zVYSst7vCSVZvu5DfNpGKVnS6zFChk9Pj3pbGPgGuEYlTqX?= =?us-ascii?Q?CyuYpO0So0Oy80nPZ6FiYSOo3SXJK8pMqMUmDR/FaJhL3+xri4Blor15jQLS?= =?us-ascii?Q?MwpXwy/I4yHNYdEuQ6f+MHx6Iul48pzaY0skd/T3coPt6fF1sH78yC2R/Toy?= =?us-ascii?Q?s6+jwW5ZfMhCKh2deT5lyTlbFt/oNWuL2QsGbHdRrbypzR73FIdt/6F2djqz?= =?us-ascii?Q?EBP6L1d9mbENvALp+Cmm7IAfqpuHHeaLKcUYNTw+QEEViWxjsAsHKjTaP8qk?= =?us-ascii?Q?R86q44okOpBQX4l9xYtnUR1Ozwgp+14FknwitoQytZ6XmCwCDvuf/5/1FkPo?= =?us-ascii?Q?TrMft/bY1W5WT8DQBLdrurOmKmyLBj90OVTuYJo3+QAgjObFyBf54dNEBSlj?= =?us-ascii?Q?G/xTw7+hANpzxI/oKq1F699dFeuWHRPomGy9+E06yunqzAGmnkzVhvyXCE2d?= =?us-ascii?Q?sgmJvwI9p5lJxupxCdWGVHnJYfKrbsiT5BSbDTb4AsqksZjD5aML4RwDfqVv?= =?us-ascii?Q?CqGN//9KOcLZdd8uIuu7KvByFzUagREDwuBMcpxB8nABKEu63Y6IQhYWtSjl?= =?us-ascii?Q?CG041Oh2QlSdjMQVpVhNFUUHXN+Ls/hOeawyvNHefto2zT8DeeaecNlZ7qno?= =?us-ascii?Q?iYrdtwWDAsXLBOxLQZnKTA3f6HBEEw22xsRN9fCs/sAP4Uc6LK3UVuo3aPfw?= =?us-ascii?Q?U10PgclL18e2j2Z9MuvT2JpCQZGpydAavrLuunOXs2B18tltOqjb1tB1PYFy?= =?us-ascii?Q?1ovjTm/UWg8B3RNUwcxM+/vBG+G8xwNAbKlqCD2sQfKpX1977MnIWZw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1586; 5:CfVuOlR4/Nyywg/ajcvW9muVPYahkOlgm1rpVBtdDRgZOTNrwSV3AshrjOSZPLOxEeZsyV54z69vkm4N58sfHE7gPkU6cn68gF0FUi6611vBvetdX9q5buG9Jk5+o91xZl3KTkPsxheJ5FJSFmjd69gIpA9zEFI0RjjkBVAEzUQ=; 24:eml1YbOKyMaf1pcimgkrW4yHJ7OsL6RjxH/9n5MGX/Yj5yki2EhxTQkD5avaPaxq3QVjaVEZvEMSTjXJOs2tIKLUZMFXhqtTxjQIiie4Bu8=; 7:nXz7ipt9TNignHmtrTxwG6BFWKJ5zRffsPgb+9IOMY3hq2sSpL8E5z3as2CwM7NQG5T2v22cQXovnrAznXCXfg1m5DyDrSgTFcPrszmA3ZGIXS8SDaNjDJBH54dd4I3AdSUeQ9eW63RATNxb8AjtBMqmIMJsQgLFHY6cwJ6Yu4kOAtyRYgxkGZut1IeqtF+xBDOpDGaT6UZAM0c/lpZNPcMuIYVHmTK2Ky0hPsAHxw4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 07:50:00.4997 (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: BLUPR0301MB1586 Subject: [meta-freescale-layer][PATCH 09/12] linux-qoriq: 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: Fri, 03 Jun 2016 07:50:10 -0000 Content-Type: text/plain Signed-off-by: Zhenhua Luo --- .../fix-the-compile-issue-under-gcc6.patch | 103 +++++++++++++++++++++ .../module-remove-MODULE_GENERIC_TABLE.patch | 77 +++++++++++++++ recipes-kernel/linux/linux-qoriq_3.12.bb | 2 + 3 files changed, 182 insertions(+) create mode 100644 recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch create mode 100644 recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch diff --git a/recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch b/recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch new file mode 100644 index 0000000..910ef18 --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch @@ -0,0 +1,103 @@ +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 +--- + arch/powerpc/kernel/Makefile | 2 -- + include/linux/compiler-gcc6.h | 66 +++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 66 insertions(+), 2 deletions(-) + create mode 100644 include/linux/compiler-gcc6.h + +diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile +index c326675..45f0494 100644 +--- a/arch/powerpc/kernel/Makefile ++++ b/arch/powerpc/kernel/Makefile +@@ -4,8 +4,6 @@ + + CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' + +-subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror +- + ifeq ($(CONFIG_PPC64),y) + CFLAGS_prom_init.o += $(NO_MINIMAL_TOC) + endif +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 + diff --git a/recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch b/recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch new file mode 100644 index 0000000..5a67155 --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq/module-remove-MODULE_GENERIC_TABLE.patch @@ -0,0 +1,77 @@ +module: remove MODULE_GENERIC_TABLE + +MODULE_DEVICE_TABLE() calles MODULE_GENERIC_TABLE(); make it do the +work directly. This also removes a wart introduced in the last patch, +where the alias is defined to be an unknown struct type "struct +type##__##name##_device_id" instead of "struct type##_device_id" (it's +an extern so GCC doesn't care, but it's wrong). + +The other user of MODULE_GENERIC_TABLE (ISAPNP_CARD_TABLE) is unused, +so delete it. + + + +Signed-off-by: Rusty Russell +Signed-off-by: Zhenhua Luo + +Upstream-Status: Backport +--- + include/linux/isapnp.h | 4 ---- + include/linux/module.h | 19 ++++++++----------- + 2 files changed, 8 insertions(+), 15 deletions(-) + +diff --git a/include/linux/isapnp.h b/include/linux/isapnp.h +index e2d28b0..3c77bf9 100644 +--- a/include/linux/isapnp.h ++++ b/include/linux/isapnp.h +@@ -56,10 +56,6 @@ + #define ISAPNP_DEVICE_ID(_va, _vb, _vc, _function) \ + { .vendor = ISAPNP_VENDOR(_va, _vb, _vc), .function = ISAPNP_FUNCTION(_function) } + +-/* export used IDs outside module */ +-#define ISAPNP_CARD_TABLE(name) \ +- MODULE_GENERIC_TABLE(isapnp_card, name) +- + struct isapnp_card_id { + unsigned long driver_data; /* data private to the driver */ + unsigned short card_vendor, card_device; +diff --git a/include/linux/module.h b/include/linux/module.h +index 54aef1b..a9f6812 100644 +--- a/include/linux/module.h ++++ b/include/linux/module.h +@@ -83,15 +83,6 @@ void sort_extable(struct exception_table_entry *start, + void sort_main_extable(void); + void trim_init_extable(struct module *m); + +-#ifdef MODULE +-#define MODULE_GENERIC_TABLE(gtype,name) \ +-extern const struct gtype##_id __mod_##gtype##_table \ +- __attribute__ ((unused, alias(__stringify(name)))) +- +-#else /* !MODULE */ +-#define MODULE_GENERIC_TABLE(gtype,name) +-#endif +- + /* Generic info of form tag = "info" */ + #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info) + +@@ -142,8 +133,14 @@ extern const struct gtype##_id __mod_##gtype##_table \ + /* What your module does. */ + #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description) + +-#define MODULE_DEVICE_TABLE(type,name) \ +- MODULE_GENERIC_TABLE(type##__##name##_device, name) ++#ifdef MODULE ++/* Creates an alias so file2alias.c can find device table. */ ++#define MODULE_DEVICE_TABLE(type, name) \ ++ extern const struct type##_device_id __mod_##type##__##name##_device_table \ ++ __attribute__ ((unused, alias(__stringify(name)))) ++#else /* !MODULE */ ++#define MODULE_DEVICE_TABLE(type, name) ++#endif + + /* Version of form [:][-]. + Or for CVS/RCS ID version, everything but the number is stripped. +-- +2.5.0 + diff --git a/recipes-kernel/linux/linux-qoriq_3.12.bb b/recipes-kernel/linux/linux-qoriq_3.12.bb index 0e6b8ab..37e088e 100644 --- a/recipes-kernel/linux/linux-qoriq_3.12.bb +++ b/recipes-kernel/linux/linux-qoriq_3.12.bb @@ -7,6 +7,8 @@ SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v1.9.x \ file://0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch \ file://0003-use-static-inline-in-ARM-lifeboot.h.patch \ file://0001-powerpc-Align-TOC-to-256-bytes.patch \ + file://fix-the-compile-issue-under-gcc6.patch \ + file://module-remove-MODULE_GENERIC_TABLE.patch \ " SRCREV = "43cecda943a6c40a833b588801b0929e8bd48813" -- 2.4.11