aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2021-08-11 13:59:48 +0000
committerJakub Kicinski <[email protected]>2021-08-12 21:51:44 +0000
commit676eec8efd8ed7f051ea84bfa9c1332e656b5c7d (patch)
treef55688b105f67acca49020add672c1131aacf35b /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parentMerge tag 'mlx5-updates-2021-08-11' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadkernel-676eec8efd8ed7f051ea84bfa9c1332e656b5c7d.tar.gz
kernel-676eec8efd8ed7f051ea84bfa9c1332e656b5c7d.zip
net: ipa: always inline ipa_aggr_granularity_val()
It isn't required, but all callers of ipa_aggr_granularity_val() pass a constant value (IPA_AGGR_GRANULARITY) as the usec argument. Two of those callers are in ipa_validate_build(), with the result being passed to BUILD_BUG_ON(). Evidently the "sparc64-linux-gcc" compiler (at least) doesn't always inline ipa_aggr_granularity_val(), so the result of the function is not constant at compile time, and that leads to build errors. Define the function with the __always_inline attribute to avoid the errors. We can see by inspection that the value passed is never zero, so we can just remove its WARN_ON() call. Fixes: 5bc5588466a1f ("net: ipa: use WARN_ON() rather than assertions") Reported-by: kernel test robot <[email protected]> Signed-off-by: Alex Elder <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions