Jon Hunter e7226ccb1b gpu: nvgpu: Fix stack frame size warning
When building NVGPU for Linux kernels where the CONFIG_FRAME_WARN is set
to 1024, the following build error is observed ...

 drivers/gpu/nvgpu/common/init/nvgpu_init.c: In function
     ‘nvgpu_finalize_poweron’:
 drivers/gpu/nvgpu/common/init/nvgpu_init.c:773:1: error: the frame size
     of 1280 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

The problem is that nvgpu_finalize_poweron() function defines a large
table of function pointers, nvgpu_init_table, and cannot be declared
statically. To allow NVGPU to be compiled for Linux kernels that by
default warn if the stack frame size exceeds 1024, always set the
-Wframe-larger-than to 2048 for NVGPU.

Bug 200689205

Change-Id: I59b202801a9e5fecda1a9a166cddf54775131dbe
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2465820
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2021-01-06 17:34:10 -08:00
Description
No description provided
42 MiB