mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
44a28012deed402f2f55f8b296b883424a868db5
MISRA Advisory Rule 5.9 states that identifiers that define objects or functions with internal linkage should be unique. While it is permissible for an inline function with internal linkage to be defined in a single header file the same is not true for data objects. This change moves the aperture_name[] string table to within the nvgpu_aperture_str() function to comply with this advisory rule. Because the size of the table is relatively small (< 40 bytes for the strings) the storage class is changed to automatic. Jira NVGPU-3178 Change-Id: I9efedc083511a8ecb0ca7e5fbf577030cddfd76b Signed-off-by: Scott Long <scottl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2241807 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided