xen/common: device_tree: Fix MISRA C 2012 Rule 8.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 22 Jun 2022 15:15:57 +0000 (18:15 +0300)
committerJulien Grall <jgrall@amazon.com>
Thu, 23 Jun 2022 18:44:48 +0000 (19:44 +0100)
commit7e1ed5e9341c2820c40d1a58aa35545d604311c3
tree08a17a8c62079239612cd16b10a95f0f25a6f343
parentdb3382dd4f468c763512d6bf91c96773395058fb
xen/common: device_tree: Fix MISRA C 2012 Rule 8.7 violation

The function __dt_n_size_cells() is referenced only in device_tree.c.
Change the linkage of the function from external to internal by adding
the storage-class specifier static to the function definition.

This patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation
warning.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/device_tree.c