Go to file
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
classes classes/image_types_digi: Image types for Digi ConnectCore modules 2018-12-13 07:19:57 -02:00
conf nitrogen7.conf: Update maintainer 2020-03-20 19:52:48 -03:00
recipes-bsp u-boot-boundary-fw-utils: Update aarch64 fw_env config 2020-03-19 16:54:31 -03:00
recipes-core init-ifupdown: ccimx6ulsbcpro: Add Wi-Fi interfaces to the interfaces file 2019-05-22 09:02:48 -03:00
recipes-kernel linux-boundary: Fix GCC9 compiler attribute related compile errors 2020-03-21 10:06:04 +01:00
.gitignore Initial skeleton 2012-04-27 15:20:53 -03:00
README README: use pull requests for contributing 2019-04-08 08:05:42 -03:00

OpenEmbedded/Yocto BSP layer for Freescale's ARM based platforms

This layer provides support for Freescale's ARM based platforms for use with OpenEmbedded and/or Yocto Freescale's BSP layer.

This layer depends on:

URI: git://git.openembedded.org/openembedded-core branch: master revision: HEAD

URI: git://git.yoctoproject.org/meta-freescale branch: master revision: HEAD

Contributing

Please submit any patches against the meta-freescale-3rdparty layer by using the GitHub pull-request feature. Fork the repo, make a branch, do the work, rebase from upstream, create the pull request.

For some useful guidelines to be followed when submitting patches, please refer to: http://openembedded.org/wiki/Commit_Patch_Message_Guidelines

Pull requests will be discussed within the GitHub pull-request infrastructure. If you want to get informed on new PRs and the follow-up discussions please use GitHub's notification system.

Mailing list:

https://lists.yoctoproject.org/listinfo/meta-freescale

Source code:

https://github.com/Freescale/meta-freescale-3rdparty