meta-freescale-3rdparty/recipes-kernel/linux
Carlos Rafael Giani 13d3b9e110 linux-boundary: Fix GCC9 compiler attribute related compile errors
These patches are originally from meta-freescale, commit 075681e8 , and
were modified slightly to apply to kernel 4.14.

This fixes errors while building other modules, especially
kernel-module-imx-gpu-viv, which otherwise produces compile errors like:

| [...]tmp/work-shared/nitrogen8m/kernel-source/include/linux/module.h:131:6: error: 'init_module' specifies less restrictive attribute than its target 'gpu_init': 'cold' [-Werror=missing-attributes]
|   131 |  int init_module(void) __attribute__((alias(#initfn)));
|       |      ^~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1445:1: note: in expansion of macro 'module_init'
|  1445 | module_init(gpu_init);
|       | ^~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1411:19: note: 'init_module' target declared here
|  1411 | static int __init gpu_init(void)
|       |                   ^~~~~~~~
| In file included from [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
|                  from [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:61:
| [...]tmp/work-shared/nitrogen8m/kernel-source/include/linux/module.h:137:7: error: 'cleanup_module' specifies less restrictive attribute than its target 'gpu_exit': 'cold' [-Werror=missing-attributes]
|   137 |  void cleanup_module(void) __attribute__((alias(#exitfn)));
|       |       ^~~~~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1446:1: note: in expansion of macro 'module_exit'
|  1446 | module_exit(gpu_exit);
|       | ^~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1437:20: note: 'cleanup_module' target declared here
|  1437 | static void __exit gpu_exit(void)
|       |                    ^~~~~~~~

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2020-03-21 10:06:04 +01:00
..
linux-advantech-4.9 linux-advantech: Update dms-ba16 Q7 Linux kernel 2018-11-08 16:30:42 -02:00
linux-boundary linux-boundary: Fix GCC9 compiler attribute related compile errors 2020-03-21 10:06:04 +01:00
linux-compulab-3.14.28 linux-compulab: add cm-fx6 3.14.28 kernel configuration files 2015-04-17 09:34:48 -03:00
linux-congatec-4.9.11 linux-congatec: 4.1.15 -> 4.9.11 2018-05-24 09:56:05 -03:00
linux-denx/m53evk linux-denx: Add linux-denx repository 2013-07-02 14:58:42 -03:00
linux-fslc linux-fslc: ccimx6som: Add support for wireless module variants 2019-05-22 09:02:48 -03:00
linux-fslc-lts-4.19 add support for linux-fslc-lts-4.19 2019-05-22 09:03:23 -03:00
linux-gateworks-imx-3.14 linux-gateworks-imx_3.14: bump to 1032ddf6 2017-04-25 10:33:36 -03:00
linux-karo-3.16 linux-karo: add recipe for Ka-Ro Linux kernel v3.16 (based) for TX6Q/U/S COM 2015-11-23 13:42:11 -02:00
linux-timesys-3.13/pcm052 linux-timesys: Add kernel 2015-10-28 14:33:03 -02:00
linux-toradex-4.4 linux-toradex: vf: update to a latest 4.4 based kernel 2018-07-18 13:16:30 -03:00
linux-toradex-4.9-1.0.x linux-toradex: imx: update to a 4.9-1.0.x based kernel 2018-07-18 13:16:30 -03:00
linux-variscite-4.1.15 linux-variscite/defconfig: enable HID input modules 2016-12-09 09:43:42 -02:00
linux-advantech_4.9.bb linux-advantech: Bump kernel version to 4.9.x 2018-06-08 10:40:52 -03:00
linux-boundary_4.14.x.bb linux-boundary: Fix GCC9 compiler attribute related compile errors 2020-03-21 10:06:04 +01:00
linux-compulab_3.14.28.bb Stop using linux-dtb.inc 2017-09-05 22:39:00 -03:00
linux-congatec_4.9.11.bb linux-congatec: 4.1.15 -> 4.9.11 2018-05-24 09:56:05 -03:00
linux-denx_3.9.bb linux-denx: Restrict recipe compatibility for m53evk 2014-08-14 22:31:24 -03:00
linux-denx.inc Stop using linux-dtb.inc 2017-09-05 22:39:00 -03:00
linux-fslc_%.bbappend linux-fslc: ccimx6som: Add support for wireless module variants 2019-05-22 09:02:48 -03:00
linux-fslc-lts-4.19.bbappend add support for linux-fslc-lts-4.19 2019-05-22 09:03:23 -03:00
linux-gateworks-imx_3.14.bb Stop using linux-dtb.inc 2017-09-05 22:39:00 -03:00
linux-karo_3.16.bb Stop using linux-dtb.inc 2017-09-05 22:39:00 -03:00
linux-timesys_3.13.bb Stop using linux-dtb.inc 2017-09-05 22:39:00 -03:00
linux-toradex_4.4.bb linux-toradex: vf: update to a latest 4.4 based kernel 2018-07-18 13:16:30 -03:00
linux-toradex_4.9-1.0.x.bb linux-toradex: imx: update to a 4.9-1.0.x based kernel 2018-07-18 13:16:30 -03:00
linux-variscite_4.1.15.bb Stop using linux-dtb.inc 2017-09-05 22:39:00 -03:00