ANDROID: KVM: Include prototype for page_relinquish before definition

Fixes build failure on -Werror=missing-prototypes.

At the same time, make the header file more resilient to ordering by
declaring 'struct page'.

Bug: 240239989
Change-Id: I84d069bde5ff03d1afa55d25c01448b0d43042da
Signed-off-by: Keir Fraser <keirf@google.com>
This commit is contained in:
Keir Fraser
2022-11-16 10:44:02 +00:00
parent e357586f51
commit 4a31e02b6c
2 changed files with 3 additions and 0 deletions

View File

@@ -7,6 +7,8 @@
#ifndef __ASM_MEM_RELINQUISH_H
#define __ASM_MEM_RELINQUISH_H
struct page;
void page_relinquish(struct page *page);
#endif /* __ASM_MEM_RELINQUISH_H */

View File

@@ -5,6 +5,7 @@
*/
#include <linux/arm-smccc.h>
#include <linux/mem_relinquish.h>
#include <linux/memory.h>
#include <linux/mm.h>
#include <linux/types.h>