lkml.org 
[lkml]   [2018]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] vxfs: fix building with LTO
Date
When link-time optimizations are enabled, vxfs fails to build:

fs/freevxfs/vxfs_lookup.c: In function 'vxfs_readdir':
fs/freevxfs/vxfs_subr.c:50:1: error: inlining failed in call to always_inline 'vxfs_put_page': function not declared inline and code size would grow
vxfs_put_page(struct page *pp)
^
fs/freevxfs/vxfs_lookup.c:291:3: note: called from here
vxfs_put_page(pp);
^
fs/freevxfs/vxfs_inode.c: In function '__vxfs_iget':
fs/freevxfs/vxfs_subr.c:50:1: error: inlining failed in call to always_inline 'vxfs_put_page': function not declared inline and code size would grow
fs/freevxfs/vxfs_lookup.c: In function 'vxfs_lookup':
fs/freevxfs/vxfs_subr.c:50:1: error: inlining failed in call to always_inline 'vxfs_put_page': function not declared inline and code size would grow

This removes the 'inline' annotation that obviously doesn't do much
anyway.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
fs/freevxfs/vxfs_subr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/freevxfs/vxfs_subr.c b/fs/freevxfs/vxfs_subr.c
index e806694d4145..8e213cce586f 100644
--- a/fs/freevxfs/vxfs_subr.c
+++ b/fs/freevxfs/vxfs_subr.c
@@ -46,7 +46,7 @@ const struct address_space_operations vxfs_aops = {
.bmap = vxfs_bmap,
};

-inline void
+void
vxfs_put_page(struct page *pp)
{
kunmap(pp);
--
2.9.0
\
 
 \ /
  Last update: 2018-02-02 16:48    [W:0.034 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site