From d13299bfdf064f8b3e60774b728c359a4e96dce4 Mon Sep 17 00:00:00 2001 From: Roman Kiryanov Date: Fri, 31 Aug 2018 09:49:24 -0700 Subject: Mark translate_address static To make kbuild test robot happy. This function is not used outside of goldfish_pipe_v1. Bug: 116799743 Change-Id: Ie3334b39325ffd9515d21fae6c6b9d9d56d0a74e Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe_v1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/goldfish/goldfish_pipe_v1.c b/drivers/platform/goldfish/goldfish_pipe_v1.c index 4f6410ef5fb7..bfdf61a29973 100644 --- a/drivers/platform/goldfish/goldfish_pipe_v1.c +++ b/drivers/platform/goldfish/goldfish_pipe_v1.c @@ -237,7 +237,8 @@ static int transfer_pages(struct goldfish_pipe_dev *dev, return status; } -unsigned long translate_address(const struct page *page, unsigned long addr) +static unsigned long translate_address(const struct page *page, + unsigned long addr) { return page_to_phys(page) | (addr & ~PAGE_MASK); } -- cgit v1.2.3