Skip to contentSkip to conversation

vxfs: fix building with LTO

PATCH In review Arnd Bergmann 2 participants 2 messages Feb 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vxfs: fix building with LTO

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.

---
 fs/freevxfs/vxfs_subr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/freevxfs/vxfs_subr.c +1 -1
index e806694d4145..8e213cce586f 100644
@@ -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);
Signature · 1 line
2.9.0