• Harry Wentland's avatar
    drm/amd/display: Pass display_pipe_params_st as const in DML · 22667e6e
    Harry Wentland authored
    [Why]
    This neither needs to be on the stack nor passed by value
    to each function call. In fact, when building with clang
    it seems to break the Linux's default 1024 byte stack
    frame limit.
    
    [How]
    We can simply pass this as a const pointer.
    
    This patch fixes these Coverity IDs
    Addresses-Coverity-ID: 1424031: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1423970: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1423941: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1451742: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1451887: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1454146: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1454152: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1454413: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1466144: ("Big parameter passed by value")
    Addresses-Coverity-ID: 1487237: ("Big parameter passed by value")
    Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
    Fixes: 3fe617cc ("Enable '-Werror' by default for all kernel builds")
    Cc: Nick Desaulniers <ndesaulniers@google.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: amd-gfx@lists.freedesktop.org
    Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
    Cc: Arnd Bergmann <arnd@kernel.org>
    Cc: Leo Li <sunpeng.li@amd.com>
    Cc: Alex Deucher <alexander.deucher@amd.com>
    Cc: Christian König <christian.koenig@amd.com>
    Cc: Xinhui Pan <Xinhui.Pan@amd.com>
    Cc: Nathan Chancellor <nathan@kernel.org>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: llvm@lists.linux.dev
    Acked-by: default avatarChristian König <christian.koenig@amd.com>
    Build-tested-by: default avatarNathan Chancellor <nathan@kernel.org>
    Reviewed-by: default avatarLeo Li <sunpeng.li@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    22667e6e
dcn20_resource.c 125 KB