Skip to content

Commit 57ea76f

Browse files
arndbRussell King (Oracle)
authored andcommitted
ARM: 9306/1: cacheflush: avoid __flush_anon_page() missing-prototype warning
The prototype for __flush_anon_page() is intentionally hidden inside the flush_anon_page() inline function to prevent it from being called from drivers. When building with 'W=1', this causes a warning: arch/arm/mm/flush.c:358:6: error: no previous prototype for '__flush_anon_page' [-Werror=missing-prototypes] Work around this by adding a prototype directly next to the function definition. Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 34bde7f commit 57ea76f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mm/flush.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ EXPORT_SYMBOL(flush_dcache_page);
354354
* memcpy() to/from page
355355
* if written to page, flush_dcache_page()
356356
*/
357+
void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr);
357358
void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr)
358359
{
359360
unsigned long pfn;

0 commit comments

Comments
 (0)