diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-06-02 19:26:55 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-06-19 09:35:50 +0100 |
commit | a9f8f2b2877ccb478e8e36607b00361cc5038eea (patch) | |
tree | dde24392ac1bbfa0b42489d3c89ec5d42c5deafa /arch/arm/kernel | |
parent | 7611b3358acbe9b95990ad63d66dd11efcac4594 (diff) | |
download | lwn-a9f8f2b2877ccb478e8e36607b00361cc5038eea.tar.gz lwn-a9f8f2b2877ccb478e8e36607b00361cc5038eea.zip |
ARM: 9301/1: dma-mapping: hide unused dma_contiguous_early_fixup function
The dma_contiguous_early_fixup() function is a global __weak stub
with an arm specific override, but the declaration is in an #ifdef.
If CONFIG_DMA_CMA is disabled, there is no caller and no prototype,
which adds a warning for the definition:
arm/mm/dma-mapping.c:261:13: error: no previous prototype for 'dma_contiguous_early_fixup' [-Werror=missing-prototypes]
Enclose the definition in the same #ifdef as the prototype to avoid
that and save a few bytes of .init.text.
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
0 files changed, 0 insertions, 0 deletions