aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2019-07-31 09:09:24 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2019-08-04 11:16:59 +0200
commit1ab56d0a2eeee92ee464add5405cccc40d5e7944 (patch)
tree3d544a3af7dcfa4fb55a8816df967270770b5b94
parentea07974849d1306f0b5d0a616bcfc0733976f90a (diff)
ANDROID: fix up 9p filesystem due to CFI non-upstream patchesASB-2019-08-05_4.9-p
I don't know why this suddenly stopped building, but the 9p filesystem was not properly updated for the CFI patchset. The change itself (changing the type of filler_t) seems to not be fully correct, but given that the patchset is not merged upstream yet, it's hard to determine if that really is true or not. This patch fixes the build, which is the main issue here. Bug: 67506682 Cc: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I7fcdb37998e187d06e75de5d8cb053757365b970
-rw-r--r--fs/9p/vfs_addr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c
index e45b1a0dd513..d618c20f272c 100644
--- a/fs/9p/vfs_addr.c
+++ b/fs/9p/vfs_addr.c
@@ -49,9 +49,9 @@
* @page: structure to page
*
*/
-static int v9fs_fid_readpage(void *data, struct page *page)
+static int v9fs_fid_readpage(struct file *data, struct page *page)
{
- struct p9_fid *fid = data;
+ struct p9_fid *fid = (struct p9_fid *)data;
struct inode *inode = page->mapping->host;
struct bio_vec bvec = {.bv_page = page, .bv_len = PAGE_SIZE};
struct iov_iter to;
@@ -293,7 +293,7 @@ start:
if (len == PAGE_SIZE)
goto out;
- retval = v9fs_fid_readpage(v9inode->writeback_fid, page);
+ retval = v9fs_fid_readpage((struct file *)v9inode->writeback_fid, page);
put_page(page);
if (!retval)
goto start;