diff options
author | Arnd Bergmann <[email protected]> | 2023-05-16 21:35:47 +0200 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2023-05-18 11:56:18 -0700 |
commit | 4d312ac057da57b4a844ec8af14236e74b652efe (patch) | |
tree | 91349d0c3cbe9c84c8b132e9d28588d7d4a74554 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 3b939ba0c21115de99d8e2966eaa2c4e74733d00 (diff) |
x86/mm: Add early_memremap_pgprot_adjust() prototype
early_memremap_pgprot_adjust() is a __weak function with a local
prototype, but x86 has a custom implementation that does not
see the prototype, causing a W=1 warning:
arch/x86/mm/ioremap.c:785:17: error: no previous prototype for 'early_memremap_pgprot_adjust' [-Werror=missing-prototypes]
Move the declaration into the global linux/io.h header to avoid this.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Link: https://lore.kernel.org/all/20230516193549.544673-19-arnd%40kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions